-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
96 lines (93 loc) · 2.1 KB
/
index.css
File metadata and controls
96 lines (93 loc) · 2.1 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
89
90
91
92
93
94
95
96
body{
margin: 0;
padding: 0;
/* background-image: url("https://images.pexels.com/photos/160107/pexels-photo-160107.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260");
background-repeat: no-repeat;
background-size: cover; */
}
.nav-bar{
width: 300px;
height: 100%;
position: fixed;
background-color: rgba(9, 56, 7, 0.918);
left: -300px;
transition: .5s;
}
.nav-bar header{
text-align: center;
line-height: 70px;
background-color: rgba(10, 102, 22, 0.932);
font-size: 25px;
}
.nav-bar ul{
margin: 0;
padding: 0;
}
.nav-bar li{
list-style-type: none;
border-bottom: solid 1px rgba(0, 0, 0,.1);
/* text-align: center; */
padding-left: 115px;
transition:all 0.3s ;
}
.nav-bar a{
text-decoration: none;
display: block;
font-size: 20px;
padding: 20px 0px;
color: white;
}
.nav-bar header{
color: white;
}
.nav-bar li:hover{
background-color: rgba(238, 234, 234, 0.075);
padding-left: 130px;
}
.nav-bar i{
padding-right: 10px;
}
#check:checked ~ .nav-bar{
left: 0;
}
#check{
visibility: hidden;
position: absolute;
/* display: none; */
}
#btn,#cancel {
position: absolute;
}
#btn{
left: 20px;
top: 20px;
padding: 10px;
background-color: white;
color: green;
}
#cancel{
top: 10px;
left: -35px;
padding: 10px;
color: green;
background-color: white;
z-index: 55;
transition:all .5s ease;
}
#check:checked ~ label #btn{
opacity: 0;
}
#check:checked ~ label #cancel{
left: 260px;
}
section{
/* background-image: url("https://images.pexels.com/photos/1089438/pexels-photo-1089438.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"); */
background-image: url("https://images.pexels.com/photos/160107/pexels-photo-160107.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260");
height: 100vh;
transition: .5s all;
background-position: center;
background-size: cover;
}
#check:checked ~ section{
margin-left: 300px;
}