WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2020-12-30 595fba4627ff38e9759ad0e345dea55c31a605ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
 * nav-bar
 * @author Tevin
 */
 
@import "../../common/sassMixin";
 
.c-nav-bar {
    position: relative;
    .at-nav-bar {
        background-color: #2093df;
    }
    .at-nav-bar__left-view,
    .at-nav-bar__right-view,
    .at-nav-bar__title {
        color: #fff;
    }
    .at-nav-bar__left-view {
        &:active {
            background-color: rgba(#F0F0F0, 0.5);
            transition: background-color 0s;
        }
    }
    .at-nav-bar__container {
        width: 100%;
        text-align: right;
        &:active {
            background-color: rgba(#F0F0F0, 0.5);
            transition: background-color 0s;
        }
        .at-icon-bullet-list {
            margin-right: 6PX;
            pointer-events: none;
        }
    }
    .at-nav-bar__container--hide {
        display: none;
    }
    .c-nav-bar-drop {
        @include position(absolute, n n 0 0, 10);
        .inner {
            @include position(absolute, 0 n n 0);
            padding: 0.3rem;
            .arrow {
                @include position(absolute, 0.15rem n n 0.65rem);
                width: 0;
                height: 0;
                border-top: 0.6rem solid #f2f4f7;
                border-right: 0.6rem solid transparent;
                transform: rotate(45deg);
            }
            .box {
                position: relative;
                z-index: 2;
                width: 4rem;
                padding: 0.2rem 0;
                background-color: #f7f8fa;
                border-radius: 0.1rem;
                box-shadow: rgba(#000, 0.1) 0 1PX 1PX 1PX;
                .item {
                    padding: 0 0.45rem;
                    text-align: center;
                    line-height: 1.6rem;
                    font-size: 0.65rem;
                    @include ellipsis(100%);
                    box-sizing: border-box;
                    border-bottom: #edf0f8 1PX solid;
                    transition: background-color 0.3s;
                    &:active {
                        background-color: #fff;
                        transition: background-color 0s;
                    }
                    &:last-child {
                        border: none;
                    }
                }
            }
        }
    }
}