User:Krishj4/common.css: Difference between revisions
Heading accent: short red bar over a subtle grey rule |
Heading accent: red underline matches text width |
||
| Line 41: | Line 41: | ||
} | } | ||
/* | /* Red underline that matches the width of the heading text */ | ||
/* Drop Vector's full-width grey rule under section headings */ | |||
.skin-vector-2022 .mw-heading.mw-heading2 { | .skin-vector-2022 .mw-heading.mw-heading2 { | ||
border-bottom: none; | |||
border-bottom: | |||
} | } | ||
/* Underline the text element itself so the rule = text width */ | |||
.skin-vector-2022 .mw-body .mw-first-heading | .skin-vector-2022 .mw-body .mw-first-heading, | ||
.skin-vector-2022 .mw-heading.mw-heading2 | .skin-vector-2022 .mw-heading.mw-heading2 h2 { | ||
content | width: fit-content; | ||
border-bottom: 2px solid var(--rpi-red); | |||
padding-bottom: 0.15em; | |||
bottom | |||
} | } | ||