trwnh.com/unified.test.hugo/assets/styles/features/footnotes.scss

54 lines
888 B
SCSS
Raw Normal View History

.footnote-ref {
font-weight: bold;
&:before {
content: " [";
}
&:after {
2024-10-16 05:34:37 +00:00
content: "] ";
}
}
.footnote-backref {
}
.footnotes {
hr {
display: flex;
align-items: center;
border: 0;
&:before {
content: "Footnotes";
color: var(--ui-text);
text-transform: uppercase;
font-weight: 900;
font-size: 0.8em;
}
&:after {
content: '';
2024-10-18 07:33:33 +00:00
inline-size: 100%;
margin-inline-start: 1rem;
border-block-end: 1px solid var(--ui-overlay);
}
}
2024-10-18 07:33:33 +00:00
}
#footnotes h2 {
font-size: 1rem;
font-weight: 900;
text-transform: uppercase;
position: relative;
&:after {
content: '';
position: absolute;
inset-inline-end: 0;
inset-block-start: calc(50% - 1px);
background: var(--ui-overlay);
block-size: 1px;
inline-size: calc(100% - 12ch);
}
}
sup[id^="fnref:"] {
display: contents;
a {
margin-inline-end: 0.125em;
margin-inline-start: 0.375em;
}
}