-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudentTA.css
81 lines (63 loc) · 1.82 KB
/
studentTA.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
/* Variables
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* Basic Config
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.yes_or_no {
list-style-type: none;
padding-left: 50px;
margin: 0;
}
.yn {
display: block;
position: relative;
padding: 20px 2px;
}
.question {
margin: 10px 0;
font-weight: 900;
}
/* Card
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.volunteer-card {
position: absolute;
top: 30%;
left: 25%;
display: flex;
flex-direction: column;
background: #FDFBFB;
width: 350px;
height: 350px;
padding: 20px 25px;
border-radius: 20px;
box-shadow: 0 19px 38px rgba(0, 0, 0, 0.13);
}
/* Radio Button
–––––––––––––––––––––––––––––––––––––––––––––––––– */
input[type=radio] {
position: absolute;
visibility: hidden;
}
label {
cursor: pointer;
font-weight: 400;
}
.check {
width: 30px; height: 30px;
position: absolute;
border-radius: 50%;
transition: transform .6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
/* Reset */
input#one ~ .check {
transform: translate(-50px, -25px);
background:#B2D7F5 ;
}
input#two ~ .check {
transform: translate(-50px, -83px);
background:#DD5E89FF ;
box-shadow: 0 6px 12px #DD5E89FF;
}
/* Radio Input #1 */
input#one:checked ~ .check { transform: translate(-50px, 33px); }
/* Radio Input #2 */
input#two:checked ~ .check { transform: translate(-50px, -25px); }