Template:Spec.css: Difference between revisions

No edit summary
No edit summary
Line 135: Line 135:
h2 .mw-headline::before {
h2 .mw-headline::before {
position: absolute;
position: absolute;
display: block;
right: 100%;
display: flex;
align-content: center;
justify-content: center;
aspect-ratio: 1 / 1;
aspect-ratio: 1 / 1;
width: auto;
width: auto;
font-size: 1.5rem;
height: 100%;
right: 100%;
white-space: nowrap;
counter-increment: section;
counter-increment: section;
content: counter(section);
content: counter(section);
border-radius: 4px;
font-size: 1.5rem;
color: var(--colour-grey-100);
color: var(--colour-grey-100);
background-color: var(--colour-grey-800);
background-color: var(--colour-grey-800);
font-weight: 600;
font-weight: 600;
white-space: nowrap;
margin-right: .5rem;
margin-right: .5rem;
border-radius: 4px;
}
}