@@ -256,15 +256,16 @@ td > .xref {
256
256
position : relative;
257
257
margin : 1rem 0 2rem 0 ;
258
258
padding : 0.75rem ;
259
+ border : 2px solid var (--mg-orange-primary );
259
260
border-radius : 4px ;
260
- background-color : # f5f5f5 ;
261
+ background-color : var ( --bs-body-bg ) ;
261
262
cursor : pointer;
262
263
}
263
264
264
265
/* Initial blacked-out state */
265
266
.question-answer : not (.revealed ) {
266
267
color : transparent;
267
- background-color : # 202225 ;
268
+ background-color : var ( --bs-body-bg ) ;
268
269
user-select : none;
269
270
}
270
271
@@ -279,19 +280,19 @@ td > .xref {
279
280
display : flex;
280
281
align-items : center;
281
282
justify-content : center;
282
- color : rgba ( 255 , 255 , 255 , 0.7 );
283
+ color : var ( --bs-body-color );
283
284
font-weight : bold;
284
285
pointer-events : none;
285
286
}
286
287
287
288
/* Reveal on hover style (optional) */
288
289
.question-answer : not (.revealed ): hover {
289
- background-color : # 2f3136 ;
290
+ background-color : var ( --bs-secondary-bg ) ;
290
291
}
291
292
292
293
/* Make it accessible */
293
294
.question-answer : focus {
294
- outline : 2px solid # 0066cc ;
295
+ outline : 2px solid var ( --mg-orange-secondary ) ;
295
296
}
296
297
297
298
/* Hide all child elements when not revealed */
@@ -301,9 +302,8 @@ td > .xref {
301
302
302
303
/* When revealed, show content normally */
303
304
.question-answer .revealed {
304
- color : initial;
305
- background-color : # f5f5f5 ;
306
- border-left : 4px solid # 0066cc ;
305
+ color : var (--bs-body-color );
306
+ background-color : var (--bs-body-bg );
307
307
}
308
308
309
309
.question-answer .revealed * {
0 commit comments