-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebartheme.css
More file actions
88 lines (74 loc) · 1.4 KB
/
sidebartheme.css
File metadata and controls
88 lines (74 loc) · 1.4 KB
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
body {
background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/p4xqq8eb.png);
background-attachment: fixed;
background-size: cover;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.bigbox {
position: relative;
width: 100%;
height: 50px;
}
.bigbox input {
display: none;
}
.bigbox label {
position: fixed;
top: 10px;
left: 200px;
font-size: 20px;
padding-left: 20px;
cursor: pointer;
transition: all .5s;
}
.bigbox ul {
position: fixed;
top: 0;
left: 00px;
width: 210px;
height: 100vh;
background-color: #2b3044;
transition: all .5s;
}
.bigbox ul li {
width: 100%;
height: 25px;
margin-bottom: 10px;
list-style: none;
}
.bigbox ul li:first-child {
display: flex;
align-items: center;
margin-top: 40px;
}
.bigbox ul li:first-child span {
color: #fff;
font-size: 16px;
white-space: nowrap;
}
.bigbox ul li a {
display: flex;
align-items: center;
height: 100%;
width: 100%;
color: #d2d2d2;
text-decoration: none;
transition: all .5s;
}
.bigbox ul li a span {
font-size: 14px;
}
.bigbox ul li a:hover {
color: #fff;
background-color: rgb(47, 183, 204);
}
.bigbox input:checked+label {
left: 120;
}
.bigbox input:checked~ul {
left: -240px;
}