-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstyle.css
84 lines (72 loc) · 1.18 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
*{
margin: 0;
padding: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
list-style: none;
text-decoration: none;
}
.middle{
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, -35%);
}
.menu{
width: 400px;
border-radius: 8px;
overflow: hidden;
}
.item{
border-top: 1px solid black;
overflow: hidden;
}
.btnlist{
text-align: center;
font-weight: bold;
display: block;
padding: 16px 20px;
background: #e0e3dc;
color: black;
position: relative;
}
.btnlist:before{
content: "";
position: absolute;
width: 14px;
height: 14px;
background: #aeb0ac;
left: 10%;
/*bottom: -10px;*/
transform: rotate(45deg);
}
.smenu {
background: #c4ccba;
overflow: hidden;
transition: max-height 0.3s;
max-height: 0;
}
.smenu a{
display: block;
padding: 16px 26px;
color: black;
font-size: 14px;
margin: 4px 0;
position: relative;
}
.smenu a:before{
content: "";
position: absolute;
width: 6px;
height: 100%;
background: black;
left: 0;
top: 0;
transition: 0.3s;
opacity : 0;
}
.smenu a:hover:before{
opacity: 1;
}
.item:target .smenu{
max-height: 10em;
}