-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
113 lines (107 loc) · 1.9 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;
font-family: roboto, sans-serif;
}
.main{
height: 100vh;
background-image: url("photo.jpg");
background-size: cover;
}
.btn1{
font-size: 20px;
font-weight: 700;
position: absolute;
left: 16px;
line-height: 60px ;
cursor: pointer;
}
.slidebar {
color: white;
text-decoration: none;
position: fixed;
left: -300px;
height: 100vh;
width: 250px;
box-shadow: 0 0 6px rgba(255,255,255,0.5);
background-color: rgba(255,255,255,0.1);
transition: all 0.5s linear 0s;
}
.slidebar .logo{
width: 100%;
position: absolute;
box-shadow: 0 2px 4px rgba(255,255,255,0.5);
line-height: 60px;
height: 60px;
}
.slidebar .logo a{
text-decoration: none;
color: white;
font-size: 20px;
font-weight: 500;
position: absolute;
left: 50px;
}
.btn2{
font-size: 25px;
font-weight: 700;
position: absolute;
left: 220px;
line-height: 60px ;
opacity: 0;
cursor: pointer;
}
.slidebar .menu{
position: absolute;
width: 100%;
top: 80px;
}
.slidebar .menu li i,a{
color: white;
text-decoration: none;
font-size: 16px;
}
.slidebar .menu li {
margin-top: 10px;
padding: 10px 20px;
}
.slidebar .menu li i{
padding-right:8px;
}
.slidebar .social {
position: absolute;
left: 25%;
bottom: 50px;
}
.slidebar .social i{
padding: 0 5px;
opacity: 0.5;
}
#yes{
display: none;
}
.slidebar .menu li:hover{
box-shadow: 0 0 4px rgba(255,255,255,0.5);
}
.btn1 i:hover{
font-size: 30px;
transition: all 0.3s linear 0s;
}
.btn2 i:hover{
font-size: 30px;
opacity: 1;
transition: all 0.5s linear 0s;
}
.slidebar .social i:hover{
opacity: 1;
transform: scale(1.2);
}
#yes:checked ~ .slidebar{
left: 0;
}
#yes:checked ~ .btn1{
display: none;
}
#yes:checked ~ .slidebar .btn2{
opacity: 1;
}