-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (112 loc) · 2.01 KB
/
style.css
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
/*Navbar project*/
* {
box-sizing: border-box;
}
html,body{
height: 100%;
}
body{
margin: 0;
background: #f0f2f5;
}
button{
display: grid;
place-items: center;
background: transparent;
color: #606770;
border: 0;
}
button > i {
font-size: 20px;
}
.navbar{
position: fixed;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: space-between;
height: 72px;
width: 100%;
padding: 0 20px;
border-bottom: 1px solid #e8e8e8;
background: #fff;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.navbar-logo, .navbar-avatar {
height: 40px;
width: 40px;
border-radius: 50%;
}
.navbar-end{
display: flex;
gap: 6px;
flex: 0 0 178px;
}
.icon-button{
width: 40px;
height: 40px;
border-radius: 50%;
background: #f0f2f5;
}
.navbar-badge{
position: absolute;
top: 8px;
right: 54px;
background: #e41e3f;
color: #f9f9f9;
font-size: 12px;
padding: 1px 4px;
border-radius: 10px;
}
.navbar-center{
display: flex;
flex: 1 1 auto;
padding: 0 10px;
}
.navbar-center > button {
height: 72px;
padding-top: 4px;
border-bottom: 4px solid transparent;
flex:1 1 auto;
}
.navbar-center > button.active {
border-bottom-color: #1a74e5;
}
.navbar-center > button.active > i {
color: #1a74e5;
}
.navbar-center > button > i {
font-size: 24px;
}
.navbar .navbar-end:last-child > button > i{
color: #050505;
}
@media (width <= 600px){
.navbar-end{
flex: 0 0 auto;
}
.navbar-center > button{
display: none;
}
.navbar-center > button:last-child {
display: block;
position: absolute;
left: 110px;
top: 50%;
translate: 0 -50%;
}
}
@media (width <= 400px){
.navbar .navbar-end:last-child > button:nth-child(n+2){
display: none;
}
.navbar-badge{
right: 10px;
}
}
@media (width <= 250px){
.navbar .navbar-end:last-child > button:first-child{
display: none;
}
}