-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.css
More file actions
88 lines (77 loc) · 1.21 KB
/
Copy pathpage.css
File metadata and controls
88 lines (77 loc) · 1.21 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 {
height: 100vh;
justify-content: flex-start;
}
aside {
font-size: 25px;
background-color: #ccc;
width: 15vw;
padding: 10px 0px;
position: fixed;
top: 0;
left: 0;
z-index: 0;
height: 100vh;
}
aside ul {
padding: 20px 0;
list-style: none;
}
aside ul li {
padding: 10px;
border-bottom: 1px solid black;
font-weight: 500;
overflow: hidden;
position: relative;
z-index: 0;
cursor: pointer;
}
aside ul li::before {
content: "";
position: absolute;
top: 0;
left: 0;
background-color: #bbb;
opacity: 90%;
z-index: -1;
width: 100%;
height: 100%;
transform: translateX(-100%);
opacity: 1;
transition: transform 0.3s ease;
}
aside ul li:hover::before {
transform: translateX(0);
}
aside ul li.active {
background-color: #bfbfbf;
}
.mainFrame {
position: absolute;
right: 0;
top: 0;
width: 85vw;
height: 100vh;
}
@media only screen and (max-width: 1055px) {
aside {
font-size: 20px;
}
}
@media only screen and (min-width: 925px) {
aside {
font-size: 18px;
}
}
@media only screen and (max-width: 925px) {
aside {
display: none;
}
.mainFrame {
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
}
}