-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
95 lines (89 loc) · 1.93 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
html, body {
height: 100%;
}
body{
background-color: #0a4549;
color: white;
text-align: center;
margin: 0;
padding: 1em;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
main{
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
height: 100%;
}
input[type="radio"]{
opacity: 0;
width: 0;
height: 0;
overflow: hidden;
position: absolute;
}
#answers{
display: flex;
flex-direction: column;
padding: .5em 2em;
background: #0d5155;
color: #fefff0;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,.5);
}
#congrats{
opacity: 0;
}
.ans{
display: flex;
justify-content: center;
align-items: center;
}
.ans:not(:last-child){
border-bottom: 1px solid white;
}
label{
position: relative;
font-size: 1.5em;
flex-grow: 1;
margin: 1em 0;
}
label:first-child:after, label:last-child:after{
content: "";
display: block;
position: absolute;
border-radius: 50%;
top: calc(50%-.5em);
width: 1em;
height: 1em;
background-color: #c5d2ab;
}
label:first-child{
padding-left: 2em;
margin-right: 1em;
}
label:last-child{
padding-right: 2em;
margin-left: 1em;
}
label:first-child:after{
left: 0;
}
label:last-child:after{
right: 0;
}
#length:checked ~ main [for="length"]:first-child:after,
#lenght:checked ~ main [for="lenght"]:last-child:after,
#width:checked ~ main [for="width"]:first-child:after,
#widht:checked ~ main [for="widht"]:last-child:after,
#heigth:checked ~ main [for="heigth"]:first-child:after,
#height:checked ~ main [for="height"]:last-child:after{
background-color: #d6ff00;
box-shadow: 0 0 0 2px #0d5155, 0 0 0 5px #d6ff00;
}
#length:checked ~ #width:checked ~ #height:checked ~ main #congrats{
transition: .5s opacity;
opacity: 1;
}