Fix index appearance without JS

This commit is contained in:
天クマ 2026-07-01 21:58:07 -03:00
commit e19cd535eb
2 changed files with 20 additions and 2 deletions

View file

@ -13,7 +13,7 @@ layout: base.njk
<div id="homeSquares">
</div>
<main>
<main id="boxChain">
<script src="{{ '/static/scripts/home.js' | url }}" defer></script>
<noscript>
@ -172,7 +172,7 @@ layout: base.njk
<img src="https://kanandraw.neocities.org/stuffs/droidring/assets/droidwidget.png" style="width: 115px;"><br>
<div class="buttonsdroidring">
<a href="https://kanandraw.neocities.org/stuffs/droidring/home?action=previous"><button class="navdroidring">←</button></a>
<a href="https://kanandraw.neocities.org/stuffs/droidring/home?action=random"><button class="navdroidring" style="position: relative; top: 1.6px;">⚄</button></a>
<a href="https://kanandraw.neocities.org/stuffs/droidring/home?action=random"><button class="navdroidring">⇄</button></a>
<a href="https://kanandraw.neocities.org/stuffs/droidring/home?action=next"><button class="navdroidring">→</button></a>
</div>
<style>

View file

@ -1,3 +1,8 @@
/*
Adrian Victor's website stylesheet
Don't kill me, I'm just a messenger that grew up using Windows Phone...
*/
/* Raw elements */
:root {
@ -27,6 +32,9 @@ a {
a:hover {
color: lightgray;
/* I greatly dislike the look of text-decoration: underline but setting this on hover
is harmonic with the clicking sound effect (it clicks better) */
text-decoration: underline;
}
@ -91,6 +99,12 @@ main {
margin-bottom: 2em;
}
#boxChain {
display: flex;
flex-direction: column;
gap: 2em;
}
h1,
h2,
h3 {
@ -121,6 +135,9 @@ blockquote {
}
hr {
/* DON'T ASK ME HOW THIS LOOKS SO GOOD
the browser is probably doing weird stuff
to hrs */
border-bottom: thick solid rgba(255, 255, 255, 0.1);
box-shadow: 2px 7px 5px rgba(0, 0, 0, 0.3), 0px -4px 10px rgba(0, 0, 0, 0.3);
/* margin: .5em 0; */
@ -287,6 +304,7 @@ li.inlineList {
}
.negativeMargin {
/* to make a text container merge to a hr below it */
margin-bottom: -.2em;
}