critter box overhaul
This commit is contained in:
parent
d6c0697966
commit
e31d782995
408 changed files with 3497 additions and 222 deletions
|
@ -4,15 +4,21 @@
|
|||
:root {
|
||||
--view: 18rem;
|
||||
}
|
||||
|
||||
/* i hate default styles >:( and also chrome */
|
||||
h1, h2 ,h3 ,h4 ,h5 ,h6 {
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
display: block;
|
||||
font-size: 2em;
|
||||
margin-block-start: 0;
|
||||
margin-block-end: 0;
|
||||
margin-inline-start: 0;
|
||||
margin-inline-end: 0;
|
||||
font-weight: bold;
|
||||
font-size: 2em;
|
||||
margin-block-start: 0;
|
||||
margin-block-end: 0;
|
||||
margin-inline-start: 0;
|
||||
margin-inline-end: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -41,6 +47,7 @@ details {
|
|||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
& summary::marker {
|
||||
content: none;
|
||||
}
|
||||
|
@ -54,12 +61,15 @@ details {
|
|||
margin: 0 0 0 calc(var(--pad-xl) * -1);
|
||||
border-radius: 0 var(--round) var(--round) 0;
|
||||
}
|
||||
|
||||
main article[id] {
|
||||
|
||||
& p,
|
||||
li {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
article {
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
|
@ -151,11 +161,11 @@ article {
|
|||
padding-top: var(--pad-sm);
|
||||
}
|
||||
}
|
||||
& h3 code {
|
||||
|
||||
&>:first-child>code {
|
||||
display: flex;
|
||||
gap: var(--pad-l);
|
||||
width: fit-content;
|
||||
margin: var(--pad-l) 0;
|
||||
margin: var(--pad-sm) 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -180,16 +190,17 @@ a:has(img[src*="/assets/img/button"]):is(:hover, :focus) img {
|
|||
main {
|
||||
padding: var(--pad-l);
|
||||
}
|
||||
body > nav {
|
||||
|
||||
body>nav {
|
||||
position: initial;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
main > section {
|
||||
main>section {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
main > section {
|
||||
main>section {
|
||||
width: initial;
|
||||
}
|
||||
|
||||
|
@ -198,11 +209,11 @@ a:has(img[src*="/assets/img/button"]):is(:hover, :focus) img {
|
|||
width: auto;
|
||||
}
|
||||
|
||||
body > nav::before {
|
||||
body>nav::before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
body > nav {
|
||||
body>nav {
|
||||
flex-direction: row;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
|
@ -219,7 +230,7 @@ a:has(img[src*="/assets/img/button"]):is(:hover, :focus) img {
|
|||
}
|
||||
|
||||
@media screen and (max-width: 450px) {
|
||||
body > nav {
|
||||
body>nav {
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
|
||||
|
@ -227,4 +238,4 @@ a:has(img[src*="/assets/img/button"]):is(:hover, :focus) img {
|
|||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue