-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.scss
162 lines (132 loc) · 2.63 KB
/
styles.scss
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--blue: #003265;
--gray: #d5d5d5;
--black: #333;
--yellow: #fed431;
--red: #e22c2c;
--green: #318731;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
position: relative;
display: flex;
align-items: center;
flex-direction: column;
height: 100vh;
height: -webkit-fill-available;
text-align: center;
color: var(--black);
}
header {
position: fixed;
z-index: 100;
width: 100%;
padding: 32px 0;
background: linear-gradient(#fff, rgba(#fff, 0));
.logo {
height: 48px;
margin-bottom: 8px;
}
h1 {
font-size: 20px;
font-weight: 500;
margin-bottom: 4px;
}
p {
font-size: 20px;
font-weight: 700;
}
.score {
display: none;
}
}
main {
width: 100%;
max-width: 500px;
padding: 0 8px;
padding-top: 176px;
}
// CARD
.card {
width: 100%;
margin-bottom: 32px;
transition: all 250ms;
border: 1px solid var(--gray);
border-radius: 24px;
&.answered {
.actions {
display: none;
}
.answer {
display: block;
}
}
&.template {
display: none;
}
&:not(:first-child) {
opacity: .6;
}
}
.description {
padding: 56px 24px;
h2 {
font-size: 32px;
word-wrap: break-word;
word-break: break-word;
hyphens: auto;
overflow-wrap: break-word;
}
p {
margin-top: 8px;
color: gray;
}
}
.actions {
display: flex;
justify-content: space-between;
padding: 24px;
padding-top: 0;
gap: 8px;
button {
font-size: 24px;
font-weight: 500;
width: calc(100%);
padding: 24px;
cursor: pointer;
border: 0;
border-radius: 16px;
&:hover {
box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, .07);
}
&:active {
box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, .14);
}
&.yes {
color: white;
background-color: var(--blue);
}
&.no {
color: var(--black);
background-color: var(--yellow);
}
}
}
.answer {
font-size: 24px;
font-weight: 500;
display: none;
padding: 35px;
border-top: 1px solid var(--gray);
&.correct {
color: var(--green);
}
&.incorrect {
color: var(--red);
}
}