-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCheck box trick.css
76 lines (64 loc) · 1.34 KB
/
Check box trick.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
.body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.nav {
border-bottom: 1px dotted dodgerblue;
text-align: right;
height: 70px;
line-height: 70px;
}
.menu {
margin: 0 35px 0 0;
}
.menu a {
clear: right;
text-decoration: none;
color: grey;
margin: 0 10px;
line-height: 80px;
cursor: crosshair;
}
span {
color: hotpink;
}
.nav label{
margin: 0 40px 0 0;
font-size: 30px;
line-height: 70px;
display: block;
cursor: pointer;
width: 26px;
float: right;
}
#toggle {
display: none;
}
@media screen and (max-width: 500px) {}
.menu {
text-align: center;
width: 100%;
display: none;
}
.menu a {
display: block;
border: 1px solid dodgerblue;
border-radius: 50px;
border-left: 100px;
margin: 0;
}
#toggle:checked + .menu {
display: block;
animation: name duration timing-function delay iteration-count direction fill-mode;
animation-timing-function: ease-in-out;
animation-delay: 2s;
animation-duration: 5s;
background-image: url(portfolio-2.jpg);
}
.body{
background-repeat: no-repeat;
background-size: cover;
}