WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2024-03-12 465a30a58746c7ab410aef08949b43626ceb3bb0
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**
 * nav-bar
 * @author Tevin
 */
 
@import "../../common/sassMixin";
 
.c-nav-bar {
    position: relative;
    .at-nav-bar {
        background-color: #2093df;
        .at-nav-bar__left-view {
            padding: 9PX 0;
            .at-icon {
                padding-left: 9PX;
                font-size: 55px;
            }
        }
        .at-nav-bar__title {
            font-size: 42px;
        }
    }
    .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-icon {
            display: block;
        }
        .at-nav-bar__text {
            display: none;
        }
    }
    .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-right {
        @include position(absolute, 0 n n 0, 10);
        padding: 9Px 9Px;
        @include flexbox(inline, center center);
        &::before {
            display: block;
            width: 0;
            white-space: nowrap;
            overflow: hidden;
            font-size: 55px;
            font-family: iconfont;
            font-style: normal;
            font-weight: 400;
            font-variant: normal;
            line-height: 1;
            text-transform: none;
            text-rendering: auto;
            content: "";
        }
    }
    .c-nav-bar-drop {
        @include position(absolute, n n 0 0, 10);
        .inner {
            @include position(absolute, 0 n n 0);
            padding: 14px;
            .arrow {
                @include position(absolute, 7px n n 30px);
                width: 0;
                height: 0;
                border-top: 28px solid #f2f4f7;
                border-right: 28px solid transparent;
                transform: rotate(45deg);
            }
            .box {
                position: relative;
                z-index: 2;
                width: 200px;
                padding: 9px 0;
                background-color: #f7f8fa;
                border-radius: 5px;
                box-shadow: rgba(#000, 0.1) 0 1PX 1PX 1PX;
                .item {
                    text-align: center;
                    line-height: 80px;
                    font-size: 36px;
                    @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;
                    }
                }
            }
        }
    }
}