-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAnswer.css
More file actions
148 lines (123 loc) · 3.04 KB
/
Answer.css
File metadata and controls
148 lines (123 loc) · 3.04 KB
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
/**
* Answer Component Styles
* Migrated from styled-components to plain CSS
*/
/* AnswerWrapper */
.answer-wrapper {
overflow: visible;
}
/* AnswerBlock (label) */
.answer-block {
padding: 1rem 2.4rem;
display: flex;
align-items: center;
cursor: pointer;
}
.answer-block:focus {
outline: none;
}
.answer-block--disabled {
cursor: not-allowed;
}
/* Focus styles for keyboard navigation */
input:focus + .answer-block,
.answer-wrapper:focus .answer-block {
outline: -webkit-focus-ring-color auto 1px;
}
input:not(:focus-visible):focus + .answer-block {
outline: none;
}
/* Mobile responsive padding */
@media screen and (max-width: 75em) {
.answer-block {
padding: 0.5rem 2.4rem;
}
}
/* AnswerIndicator */
.answer-indicator {
min-width: 4rem;
min-height: 4rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 1.5px solid;
}
/* AnswerAlignment */
.answer-alignment {
display: flex;
align-items: center;
min-height: 4rem;
flex: 1;
}
/* AnswerContent */
.answer-content {
margin-left: 1.6rem;
overflow: initial;
}
/* AnswerExcerpt */
.answer-excerpt {
font-size: 1.6rem;
line-height: 2.5rem;
width: 100%;
padding: 0;
overflow: auto;
}
.answer-excerpt * {
overflow: initial;
}
/* AnswerResult */
.answer-result {
font-size: 1.6rem;
line-height: 2.5rem;
color: var(--answer-result-color);
}
/* Theme: Unselected */
.answer-block--unselected {
background-color: var(--answer-bg-unselected);
}
.answer-block--unselected .answer-indicator {
color: var(--answer-indicator-fg-unselected);
background-color: var(--answer-indicator-bg-unselected);
border-color: var(--answer-border-unselected);
}
/* Theme: Selected */
.answer-block--selected {
background-color: var(--answer-bg-selected);
}
.answer-block--selected .answer-indicator {
color: var(--answer-indicator-fg-selected);
background-color: var(--answer-indicator-bg-selected);
border-color: var(--answer-border-selected);
}
/* Theme: Correct */
.answer-block--correct {
background-color: var(--answer-bg-correct);
}
.answer-block--correct .answer-indicator {
color: var(--answer-indicator-fg-correct);
background-color: var(--answer-indicator-bg-correct);
border-color: var(--answer-border-correct);
}
/* Theme: Incorrect */
.answer-block--incorrect {
background-color: var(--answer-bg-incorrect);
}
.answer-block--incorrect .answer-indicator {
color: var(--answer-indicator-fg-incorrect);
background-color: var(--answer-indicator-bg-incorrect);
border-color: var(--answer-border-incorrect);
}
/* Hover states - placed after base states to maintain proper specificity */
.answer-block--unselected:hover .answer-indicator {
border-color: var(--answer-border-hover-unselected);
}
.answer-block--selected:hover .answer-indicator {
border-color: var(--answer-border-hover-selected);
}
.answer-block--correct:hover .answer-indicator {
border-color: var(--answer-border-hover-correct);
}
.answer-block--incorrect:hover .answer-indicator {
border-color: var(--answer-border-hover-incorrect);
}