slideBar.scss 4.66 KB
Newer Older
1
$barHeight: 56px;
2
3
4
5
/* drowdown and select default bgcolor */
$drowBgColor: #f2f2f2;
/* drowdown and select hover bgcolor */
$drowHoverBgColor: #e2e2e2;
Lijiao's avatar
Lijiao committed
6

7
8
9
10
11
/* refresh button */
.fresh{
    border: none;
    color: #fff;
    font-size: 16px;
12
    padding: 0 8px;
13
14
15
}
.fresh:hover{
    color: #fff;
16
    background-color: #006cb5;
17
18
}

19
.dropdown{
20
21
    /* make dropdown content box position in blue bar bottom */
    padding-bottom: 14px;
22
23
    .down-icon{
        font-size: 20px !important;
Lijiao's avatar
Lijiao committed
24
        padding-right: 6px;
25
    }
26
}
27

28
.interval{
29
    display: inline-block;
30
31
    font-size: 16px;
    color: #fff;
32
33
34
35
36
37
    .ant-form{
        display: inline-block;
    }
    form .ant-select{
        width: 166px;
    }
38
39
40
41
42
43
44
45
46
47
    .ant-select-selection{
        background-color: transparent;
        border: none;
        color: #fff;
        outline: none;
        font-size: 16px;
    }
    .ant-select-arrow{
        color: #fff;
    }
48
49
50
51
52
53
54
55
    
    .fresh{
        margin-right: 10px;
    }
    .ant-btn-ghost{
        padding: 0 10px;

    }
56
    .ant-btn-ghost[disabled]{
57
        background-color: #005b98;
58
59
        color: #fff;
    }
60
    
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
}
/* set select bgcolor */
.ant-select-dropdown-menu{
    background-color: $drowBgColor;
}
.ant-select-dropdown-menu-item:hover{
    background-color: $drowHoverBgColor;
}
.ant-select-dropdown-menu-item-active{
    background-color: transparent;
}
/* set dropdown bgcolor */
.ant-dropdown{
    .ant-dropdown-menu{
        padding: 0;
        background-color: $drowBgColor;
        border-radius: 0;
Lijiao's avatar
Lijiao committed
78
79
80
81
        .ant-dropdown-menu-item{
            font-size: 16px;
        }
        .ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu:hover{
82
83
84
85
86
            background-color: $drowHoverBgColor;
        }
    }
}

Lijiao's avatar
Lijiao committed
87
88
89
90
91
92
93
94
95
.ant-dropdown-menu-sub{
    padding: 0;
    background-color: $drowBgColor;
    border-radius: 0;
    .ant-dropdown-menu-item:hover{
        background-color: $drowHoverBgColor;
    }
}

96
97
98
99
100
.menu-list{
    position: relative;
    top: 13px;
}

Lijiao's avatar
Lijiao committed
101

102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
.ant-dropdown{
    .menuModal{
        position: relative;
        top: 12px;
    }
}
.ant-select-selection-selected-value{
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.ant-dropdown-menu-submenu-title{
    font-size: 16px;
}
.ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover{
    background-color: transparent;
}
.nav{
    width: 95%;
    height: $barHeight;
    margin: 0 auto;
    line-height: $barHeight;
    
    /* mobile start*/
    .left{
        text-align: left;
        /* more menu */
        font-size: 18px;
        color: #fff;
        a, a:visited{
131
            color: #fff;
132
133
134
135
136
137
138
            text-decoration: none;
        }
        .more-mobile{
            margin-right: 10%;
            font-size: 22px;
            position: relative;
            top: 1px;
139
        }
140
        .more-mobile:hover{
141
142
143
            cursor: pointer;
        }
    }
144
145
146
147
148
149
150
    .center{
        text-align: center;
        img{
            height: 38px;
        }
    }
    .right{
151
        text-align: right;
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
        button{
            margin-top: 12px;
        }
    }
    /* mobile end */

    /* tabelt mode */
    .tabelt-left{
        height: $barHeight;
        .tabelt-img img{
            position: relative;
            top: -5px;
        }
    }
    .tabelt-right{
        text-align: right;
    }
    
    /* desktop mode */
    .desktop-logo{
        position: relative;
        top: -3px;
    }
    .desktop-right{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        text-align: right;
        line-height: $barHeight;
        font-size: 16px;
        color: #fff;
        a{
            color: #fff;
            text-decoration: none;
        }
        img{
            width: 20px;
            margin-right: 8px;
        }
Lijiao's avatar
Lijiao committed
189
190
191
192
193
        /* ? icon style */
        .question{
            width: 14px;
            margin-right: 4px;
        }
194
195
196
197
198
199
200
201
202
203
204
        .feedback{
            font-size: 16px;
            margin: 0 20px;
        }
        .version{
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 16px;
        }
        .margin-icon{
            margin-left: 8px;
        }
205
206
    }
}
Lijiao's avatar
Lijiao committed
207

208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/* public style in nav in threee mode*/
.more{
    color: #fff;
    font-size: 24px;
}
.more:hover{
    cursor: pointer;
}

/* overview and detail tabs common style */
a.common-tabs{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #b8c7ce;
    text-decoration: none;
}
.common-tabs:visited, .high-light:hover{
    color: #fff;
    text-decoration: none;
}
.common-tabs:hover, .high-light{
    color: #fff;
    border-bottom: 1px solid #fff;
}
.left-right-margin{
    margin-left: 20px;
    margin-right: 20px;
Lijiao's avatar
Lijiao committed
235
}
236
237
238
.left-margin{
    margin-left: 20px;
}