wip media query rework, sidebar mostly finished, rewritten njk
This commit is contained in:
parent
cb5ba4fb82
commit
790147ea05
33 changed files with 268 additions and 361 deletions
|
|
@ -1,4 +1,3 @@
|
|||
@import url("./media.css");
|
||||
@import url("./blog.css");
|
||||
@import url("./gallery.css");
|
||||
@import url("./home.css");
|
||||
|
|
@ -57,3 +56,10 @@ article {
|
|||
font-family: "Nosey Rodent", sans-serif;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 916px) {
|
||||
header {
|
||||
width: calc(100% - var(--float) + 4px);
|
||||
margin: auto 0 0 auto;
|
||||
padding: var(--pad-xl) 0 0 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ article#badges {
|
|||
}
|
||||
#interests li {
|
||||
width: 16ch;
|
||||
margin: var(--pad-sm);
|
||||
margin: var(--pad-s);
|
||||
box-shadow: var(--shadow-light);
|
||||
background-image: linear-gradient(color-mix(in lch, var(--citrus-light-extra), var(--citrus-primary) 50%), var(--citrus-primary) 200%);
|
||||
& img {
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
/* default.css */
|
||||
@media screen and (min-width: 920px) {
|
||||
header {
|
||||
width: var(--view);
|
||||
border-right-width: 4px;
|
||||
border-right-style: solid;
|
||||
border-bottom-width: 4px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-right-radius: 100px;
|
||||
margin-left: calc(var(--view) - 4px);
|
||||
position: relative;
|
||||
padding: calc(var(--pad-m) - 2px) var(--pad-sm);
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
||||
/* nav.css */
|
||||
@media screen and (max-width: 920px) {
|
||||
header {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
border-right: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
width: 100% !important;
|
||||
background-attachment: none !important;
|
||||
background-image: none !important;
|
||||
background-size: none !important;
|
||||
}
|
||||
body::after {
|
||||
content: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* gallery.css */
|
||||
@media screen and (max-width: 450px) {
|
||||
#artworks & article {
|
||||
&::before {
|
||||
width: calc(100% + var(--pad-l) * 2) !important;
|
||||
margin: -3rem 0 0 -16px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -36,20 +36,18 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
#mobile > nav,
|
||||
header,
|
||||
#floating {
|
||||
nav#default,
|
||||
nav#floating, header {
|
||||
background-attachment: fixed;
|
||||
background-image: var(--nav-bg);
|
||||
background-size: 6px;
|
||||
}
|
||||
#floating, #mobile > nav {
|
||||
nav#floating, nav#default {
|
||||
border-bottom-style: solid;
|
||||
border-right-style: solid;
|
||||
border-bottom-width: 4px;
|
||||
border-right-width: 4px;
|
||||
}
|
||||
#mobile > nav {
|
||||
height: max-content;
|
||||
nav#default {
|
||||
border-bottom-right-radius: var(--pad-l);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue