PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.13
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.13
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / knowledge-check / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.13, at blocks/knowledge-check/style.css

282 lines 9.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ================================================================
2 Knowledge Check — bkbg-kc-*
3 ================================================================ */
4
5 .bkbg-kc-block {
6 border: 1px solid;
7 padding: 24px;
8 box-sizing: border-box;
9 }
10
11 .bkbg-kc-style-flat {
12 border-color: transparent !important;
13 background: transparent !important;
14 }
15
16 .bkbg-kc-style-minimal {
17 border-color: transparent !important;
18 padding: 0;
19 }
20
21 /* ── Header ───────────────────────────────────────────────────── */
22 .bkbg-kc-header {
23 display: flex;
24 align-items: center;
25 gap: 10px;
26 margin-bottom: 14px;
27 }
28
29 .bkbg-kc-icon {
30 font-size: 24px;
31 line-height: 1;
32 flex-shrink: 0;
33 }
34
35 .bkbg-kc-meta {
36 display: flex;
37 align-items: center;
38 gap: 8px;
39 flex-wrap: wrap;
40 }
41
42 .bkbg-kc-topic {
43 font-size: 11px;
44 font-weight: 700;
45 letter-spacing: .06em;
46 text-transform: uppercase;
47 border: 1px solid currentColor;
48 padding: 2px 8px;
49 border-radius: 20px;
50 }
51
52 .bkbg-kc-difficulty {
53 font-size: 11px;
54 color: #64748b;
55 background: #f1f5f9;
56 padding: 2px 8px;
57 border-radius: 20px;
58 }
59
60 /* ── Question ─────────────────────────────────────────────────── */
61 .bkbg-kc-question {
62 font-family: var(--bkbg-kc-q-font-family, inherit);
63 font-size: var(--bkbg-kc-q-font-size-d, 17px);
64 font-weight: var(--bkbg-kc-q-font-weight, 700);
65 font-style: var(--bkbg-kc-q-font-style, normal);
66 text-decoration: var(--bkbg-kc-q-text-decoration, none);
67 text-transform: var(--bkbg-kc-q-text-transform, none);
68 line-height: var(--bkbg-kc-q-line-height-d, 1.5);
69 letter-spacing: var(--bkbg-kc-q-letter-spacing-d, normal);
70 word-spacing: var(--bkbg-kc-q-word-spacing-d, normal);
71 margin: 0 0 18px;
72 }
73
74 /* ── Options ──────────────────────────────────────────────────── */
75 .bkbg-kc-options {
76 display: flex;
77 flex-direction: column;
78 gap: 8px;
79 margin-bottom: 18px;
80 }
81
82 .bkbg-kc-option {
83 display: flex;
84 align-items: center;
85 gap: 10px;
86 border: 1px solid;
87 padding: 10px 14px;
88 cursor: pointer;
89 transition: background .15s, transform .1s;
90 position: relative;
91 font-family: var(--bkbg-kc-o-font-family, inherit);
92 font-size: var(--bkbg-kc-o-font-size-d, 15px);
93 font-weight: var(--bkbg-kc-o-font-weight, 400);
94 font-style: var(--bkbg-kc-o-font-style, normal);
95 text-decoration: var(--bkbg-kc-o-text-decoration, none);
96 text-transform: var(--bkbg-kc-o-text-transform, none);
97 line-height: var(--bkbg-kc-o-line-height-d, 1.5);
98 letter-spacing: var(--bkbg-kc-o-letter-spacing-d, normal);
99 word-spacing: var(--bkbg-kc-o-word-spacing-d, normal);
100 }
101
102 .bkbg-kc-option:hover {
103 filter: brightness(.97);
104 transform: translateX(2px);
105 }
106
107 .bkbg-kc-option.is-selected {
108 border-width: 2px;
109 padding: 9px 13px;
110 }
111
112 .bkbg-kc-option.is-correct {
113 border-width: 2px;
114 }
115
116 .bkbg-kc-option.is-incorrect {
117 border-width: 2px;
118 }
119
120 /* Preview: show correct answer in editor */
121 .bkbg-kc-option.is-correct-preview {
122 border-width: 2px;
123 }
124
125 .bkbg-kc-opt-letter {
126 flex-shrink: 0;
127 width: 26px;
128 height: 26px;
129 border-radius: 50%;
130 display: flex;
131 align-items: center;
132 justify-content: center;
133 font-size: 12px;
134 font-weight: 700;
135 }
136
137 .bkbg-kc-opt-text {
138 flex: 1;
139 }
140
141 .bkbg-kc-correct-badge {
142 font-weight: 700;
143 margin-left: auto;
144 }
145
146 /* ── Explanation ──────────────────────────────────────────────── */
147 .bkbg-kc-explanation {
148 padding: 12px 16px;
149 font-size: 14px;
150 line-height: 1.65;
151 margin-bottom: 16px;
152 display: none;
153 }
154
155 .bkbg-kc-explanation.is-visible {
156 display: block;
157 }
158
159 /* Editor: always show */
160 .bkbg-kc-editor-preview .bkbg-kc-explanation {
161 display: block;
162 opacity: .75;
163 }
164
165 /* ── Result badge ─────────────────────────────────────────────── */
166 .bkbg-kc-result {
167 font-family: var(--bkbg-kc-r-font-family, inherit);
168 font-size: var(--bkbg-kc-r-font-size-d, 15px);
169 font-weight: var(--bkbg-kc-r-font-weight, 700);
170 font-style: var(--bkbg-kc-r-font-style, normal);
171 text-decoration: var(--bkbg-kc-r-text-decoration, none);
172 text-transform: var(--bkbg-kc-r-text-transform, none);
173 line-height: var(--bkbg-kc-r-line-height-d, 1.4);
174 letter-spacing: var(--bkbg-kc-r-letter-spacing-d, normal);
175 word-spacing: var(--bkbg-kc-r-word-spacing-d, normal);
176 margin-bottom: 10px;
177 display: none;
178 }
179
180 .bkbg-kc-result.is-visible {
181 display: block;
182 }
183
184 /* ── Actions ──────────────────────────────────────────────────── */
185 .bkbg-kc-actions {
186 display: flex;
187 gap: 10px;
188 flex-wrap: wrap;
189 }
190
191 .bkbg-kc-reveal-btn,
192 .bkbg-kc-retry-btn {
193 display: inline-flex;
194 align-items: center;
195 padding: 10px 24px;
196 font-weight: 700;
197 font-size: 14px;
198 cursor: pointer;
199 border: none;
200 transition: opacity .15s, transform .1s;
201 user-select: none;
202 }
203
204 .bkbg-kc-reveal-btn:hover,
205 .bkbg-kc-retry-btn:hover {
206 opacity: .88;
207 transform: translateY(-1px);
208 }
209
210 .bkbg-kc-retry-btn {
211 background: #f1f5f9 !important;
212 color: #475569 !important;
213 display: none;
214 }
215
216 .bkbg-kc-retry-btn.is-visible {
217 display: inline-flex;
218 }
219
220 /* ── Option editor (Inspector) ────────────────────────────────── */
221 .bkbg-kc-opt-editor {
222 border-left: 3px solid;
223 padding: 6px 0 6px 10px;
224 margin-bottom: 6px;
225 }
226
227 .bkbg-kc-opt-editor-row {
228 display: flex;
229 align-items: center;
230 gap: 6px;
231 }
232
233 .bkbg-kc-opt-editor-letter {
234 flex-shrink: 0;
235 font-weight: 700;
236 font-size: 13px;
237 color: #64748b;
238 width: 16px;
239 }
240
241 /* ── Responsive typography ────────────────────────────────────── */
242 @media (max-width: 1024px) {
243 .bkbg-kc-question {
244 font-size: var(--bkbg-kc-q-font-size-t, var(--bkbg-kc-q-font-size-d, 17px));
245 line-height: var(--bkbg-kc-q-line-height-t, var(--bkbg-kc-q-line-height-d, 1.5));
246 letter-spacing: var(--bkbg-kc-q-letter-spacing-t, var(--bkbg-kc-q-letter-spacing-d, normal));
247 word-spacing: var(--bkbg-kc-q-word-spacing-t, var(--bkbg-kc-q-word-spacing-d, normal));
248 }
249 .bkbg-kc-option {
250 font-size: var(--bkbg-kc-o-font-size-t, var(--bkbg-kc-o-font-size-d, 15px));
251 line-height: var(--bkbg-kc-o-line-height-t, var(--bkbg-kc-o-line-height-d, 1.5));
252 letter-spacing: var(--bkbg-kc-o-letter-spacing-t, var(--bkbg-kc-o-letter-spacing-d, normal));
253 word-spacing: var(--bkbg-kc-o-word-spacing-t, var(--bkbg-kc-o-word-spacing-d, normal));
254 }
255 .bkbg-kc-result {
256 font-size: var(--bkbg-kc-r-font-size-t, var(--bkbg-kc-r-font-size-d, 15px));
257 line-height: var(--bkbg-kc-r-line-height-t, var(--bkbg-kc-r-line-height-d, 1.4));
258 letter-spacing: var(--bkbg-kc-r-letter-spacing-t, var(--bkbg-kc-r-letter-spacing-d, normal));
259 word-spacing: var(--bkbg-kc-r-word-spacing-t, var(--bkbg-kc-r-word-spacing-d, normal));
260 }
261 }
262 @media (max-width: 767px) {
263 .bkbg-kc-question {
264 font-size: var(--bkbg-kc-q-font-size-m, var(--bkbg-kc-q-font-size-t, var(--bkbg-kc-q-font-size-d, 17px)));
265 line-height: var(--bkbg-kc-q-line-height-m, var(--bkbg-kc-q-line-height-t, var(--bkbg-kc-q-line-height-d, 1.5)));
266 letter-spacing: var(--bkbg-kc-q-letter-spacing-m, var(--bkbg-kc-q-letter-spacing-t, var(--bkbg-kc-q-letter-spacing-d, normal)));
267 word-spacing: var(--bkbg-kc-q-word-spacing-m, var(--bkbg-kc-q-word-spacing-t, var(--bkbg-kc-q-word-spacing-d, normal)));
268 }
269 .bkbg-kc-option {
270 font-size: var(--bkbg-kc-o-font-size-m, var(--bkbg-kc-o-font-size-t, var(--bkbg-kc-o-font-size-d, 15px)));
271 line-height: var(--bkbg-kc-o-line-height-m, var(--bkbg-kc-o-line-height-t, var(--bkbg-kc-o-line-height-d, 1.5)));
272 letter-spacing: var(--bkbg-kc-o-letter-spacing-m, var(--bkbg-kc-o-letter-spacing-t, var(--bkbg-kc-o-letter-spacing-d, normal)));
273 word-spacing: var(--bkbg-kc-o-word-spacing-m, var(--bkbg-kc-o-word-spacing-t, var(--bkbg-kc-o-word-spacing-d, normal)));
274 }
275 .bkbg-kc-result {
276 font-size: var(--bkbg-kc-r-font-size-m, var(--bkbg-kc-r-font-size-t, var(--bkbg-kc-r-font-size-d, 15px)));
277 line-height: var(--bkbg-kc-r-line-height-m, var(--bkbg-kc-r-line-height-t, var(--bkbg-kc-r-line-height-d, 1.4)));
278 letter-spacing: var(--bkbg-kc-r-letter-spacing-m, var(--bkbg-kc-r-letter-spacing-t, var(--bkbg-kc-r-letter-spacing-d, normal)));
279 word-spacing: var(--bkbg-kc-r-word-spacing-m, var(--bkbg-kc-r-word-spacing-t, var(--bkbg-kc-r-word-spacing-d, normal)));
280 }
281 }
282