Fix hr styling

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
AverageMarcus committed 2026-11-16 07:09:04 +00:00
1 parent 28b072bcf2
commit 9d75020029
1 file changed
+8 -8
+8 -8
View File
@@ -166,20 +166,20 @@ code, kbd, pre {
} }
hr { hr {
margin: 1em auto; margin: 2em auto;
padding: 0; padding: 0;
border: 0; border: 0;
border-top: solid 3px #57688d; border-top: solid 3px #57688d;
text-align: center; text-align: center;
width: 60%; width: 60%;
position: relative; position: relative;
overflow: visible;
&::after { &::after {
content: "✨"; content: "✨";
display: inline-block; display: inline-block;
position: absolute; position: relative;
top: -0.7em; top: -1em;
padding: 0 5px; padding: 0 5px;
font-size: 2rem; font-size: 2rem;
filter: grayscale(70%); filter: grayscale(70%);
@@ -190,13 +190,13 @@ hr {
content: ' '; content: ' ';
background-color: var(--background-color); background-color: var(--background-color);
display: inline-block; display: inline-block;
position: absolute; position: relative;
top: -1.2em; top: -1.5em;
padding: 0; padding: 0;
width: 50px; width: 50px;
height: 50px; height: 50px;
border-radius: 23px; border-radius: 23px;
transform: translateX(-50%); transform: translateX(50%);
article & { article & {
background-color: var(--card-background-color) !important; background-color: var(--card-background-color) !important;
@@ -204,7 +204,7 @@ hr {
} }
} }
section:last-of-type hr { .home section:last-of-type hr {
display: none; display: none;
} }