-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (101 loc) · 1.75 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Georgia, 'Times New Roman', Times, serif;
}
.header{
width: 100%;
height: 100vh;
background-image: url(background2.png);
background-position: center;
background-size: cover;
}
.side-nav{
width: 110px;
height: 100%;
position: fixed;
top: 0;
left: 0;
padding:30px 15px;
background: rgba(255,255,255,0.2) ;
backdrop-filter: blur(5px);
display: flex;
justify-content: space-between;
flex-direction: column;
transition: width 1s;
}
.user{
display: flex;
align-items: center;
justify-content: space-between;
width: 60px;
font-size: 12px;
padding: 10px;
border-radius: 8px;
margin-left:auto ;
margin-right: auto;
overflow: hidden;
}
.user div{
display: none;
}
.user h2{
font-size: 12px;
font-weight: 500;
white-space:nowrap;
}
.user-img{
width: 30px;
border-radius: 50%;
margin: auto;
}
.star-img{
width: 20px;
display: none;
}
ul{
list-style: none;
padding: 0 15px;
}
ul li{
margin: 20px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
ul li img{
width: 30px;
margin-right: 0px;
}
ul li p{
white-space: nowrap;
display: none;
}
.side-nav:hover{
width: 250px;
}
.side-nav:hover .user div{
display: block;
}
.side-nav:hover .user{
width: 100%;
background: rgba(255,255,255,0.2);
backdrop-filter:blur(5px);
}
.side-nav:hover .star-img{
display: block;
}
.side-nav:hover .user-img{
margin: 0;
}
.side-nav:hover ul li p{
display: block;
}
.side-nav:hover ul li img{
margin-right: 10px;
}
.side-nav:hover ul li{
justify-content: flex-start;
}