Skip to content

Commit a63fada

Browse files
committed
make CSS selectors for icons a bit more selective
1 parent 0dda109 commit a63fada

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/css/doc.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
word-wrap: anywhere;
350350
}
351351

352-
.doc .admonitionblock .icon {
352+
.doc .admonitionblock td.icon {
353353
position: absolute;
354354
top: 0;
355355
left: 0;
@@ -363,38 +363,38 @@
363363
transform: translate(-0.5rem, -50%);
364364
}
365365

366-
.doc .admonitionblock.caution .icon {
366+
.doc .admonitionblock.caution td.icon {
367367
background-color: var(--caution-color);
368368
color: var(--caution-on-color);
369369
}
370370

371-
.doc .admonitionblock.important .icon {
371+
.doc .admonitionblock.important td.icon {
372372
background-color: var(--important-color);
373373
color: var(--important-on-color);
374374
}
375375

376-
.doc .admonitionblock.note .icon {
376+
.doc .admonitionblock.note td.icon {
377377
background-color: var(--note-color);
378378
color: var(--note-on-color);
379379
}
380380

381-
.doc .admonitionblock.tip .icon {
381+
.doc .admonitionblock.tip td.icon {
382382
background-color: var(--tip-color);
383383
color: var(--tip-on-color);
384384
}
385385

386-
.doc .admonitionblock.warning .icon {
386+
.doc .admonitionblock.warning td.icon {
387387
background-color: var(--warning-color);
388388
color: var(--warning-on-color);
389389
}
390390

391-
.doc .admonitionblock .icon i {
391+
.doc .admonitionblock td.icon i {
392392
display: inline-flex;
393393
align-items: center;
394394
height: 100%;
395395
}
396396

397-
.doc .admonitionblock .icon i::after {
397+
.doc .admonitionblock td.icon i::after {
398398
content: attr(title);
399399
}
400400

@@ -533,18 +533,18 @@
533533
padding-left: 0.5rem;
534534
}
535535

536-
.doc ul.checklist p > i.fa-check-square-o:first-child,
537-
.doc ul.checklist p > i.fa-square-o:first-child {
536+
.doc ul.checklist > li > * > i.fa-check-square-o:first-child,
537+
.doc ul.checklist > li > * > i.fa-square-o:first-child {
538538
display: inline-flex;
539539
justify-content: center;
540540
width: 1.25rem;
541541
}
542542

543-
.doc ul.checklist i.fa-check-square-o::before {
543+
.doc ul.checklist > li > * > i.fa-check-square-o:first-child::before {
544544
content: "\2713";
545545
}
546546

547-
.doc ul.checklist i.fa-square-o::before {
547+
.doc ul.checklist > li > * > i.fa-square-o:first-child::before {
548548
content: "\274f";
549549
}
550550

0 commit comments

Comments
 (0)