-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
78 lines (78 loc) · 1.64 KB
/
styles.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
@import url(https://fonts.googleapis.com/css?family=Lato);
html, body{
height: 100%;
overflow: hidden;
}
h1{
position: aboslute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
font-size: 1.7rem;
font-family: "Lato";
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
line-height: 1.2;
color: #fff;
z-index: 2;
}
div{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
-webkit-transition: -webkit-transform 0.4s ease;
transition: -webkit-transform 0.4s ease;
transition: transform 0.4s ease;
transition: transform 0.4s ease, -webkit-transform 0.4s ease;
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
div:nth-of-type(1){
background-color: #ffe814;
}
div:nth-of-type(2){
background-color: #146eff;
}
div:nth-of-type(3){
background-color: #ff2e2e;
}
div:nth-of-type(4){
background-color: #12ff1a;
}
input[type="radio"]{
position: absolute;
left: 0;
width: 20px;
height: 25%;
outline: 10px solid;
outline-offset: -10px;
margin: 0;
z-index: 1;
cursor: pointer;
}
input[type="radio"]:nth-of-type(1){
outline-color: #ffe814;
top: 0%;
}
input[type="radio"]:nth-of-type(2){
outline-color: #146eff;
top: 25%;
}
input[type="radio"]:nth-of-type(3){
outline-color: #ff2e2e;
top: 50%;
}
input[type="radio"]:nth-of-type(4){
outline-color: #12ff1a;
top: 75%;
}
input[type="radio"]:checked + div{
-webkit-transform: translateX(0%);
transform: translateX(0%);
-webkit-transition: -webkit-transform 0.4s ease 0.4s;
transition: -webkit-transform 0.4s ease 0.4s;
transition: transform 0.4s ease 0.4s;
transition: transform 0.4s ease 0.4s, -webkit-transform 0.4s ease 0.4s;
}