-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
105 lines (89 loc) · 1.39 KB
/
main.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
background: #1a313a;
}
.side-bar {
position: absolute;
width: 60px;
height: 100vh;
background: #fff;
overflow: hidden;
transition: 0.5s;
}
.side-bar:hover {
width: 300px;
}
.side-bar ul {
position: relative;
height: 100vh;
}
.side-bar ul li {
list-style: none;
}
.side-bar ul li:hover {
background: #f3f3f3;
}
.side-bar ul li a {
position: relative;
display: flex;
white-space: nowrap;
text-decoration: none;
}
.side-bar ul li a .icon {
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 60px;
height: 60px;
font-size: 1.5em;
color: #333;
}
.side-bar ul li a .text {
position: relative;
height: 60px;
display: flex;
align-items: center;
font-size: 1em;
color: #333;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.side-bar ul li.logo {
margin-bottom: 50px;
}
.side-bar ul li.logo:hover {
background: #fff;
}
.side-bar ul li.logo .icon {
font-size: 2em;
}
.side-bar ul li.logo .text {
font-size: 1.2em;
font-weight: 500;
}
.side-bar ul .bottom {
position: absolute;
bottom: 0;
width: 100%;
}
.side-bar ul .bottom .imgBx {
position: relative;
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
}
.side-bar ul .bottom .imgBx img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}