seperated system theme into its own css file, combined different page css to a main theme css

This commit is contained in:
sundae 2026-04-07 20:14:23 +03:00
commit 1945abd6ad
Signed by: sundae
SSH key fingerprint: SHA256:MsJkKuo4PUdjQDpLeaURy81drKkW14exlTHp+8QFu6M
23 changed files with 938 additions and 958 deletions

View file

@ -1,113 +0,0 @@
#blog {
animation: none;
background-attachment: local, fixed;
background-blend-mode: overlay, normal;
background-color: var(--light);
background-image:
var(--dot),
linear-gradient(var(--citrus-mix-dark) 0% 10%, var(--citrus-dark) 100%);
background-size: 6px, contain;
& article {
background-color: var(--citrus-light);
background-image: var(--noise);
background-repeat: repeat;
background-size: auto;
border-radius: 0;
box-shadow:inset 0 -2rem 3rem -4rem var(--dark),var(--shadow-heavy);
& aside,
.addendum {
border-radius: 0;
border-width: 4px;
border-style: solid;
}
& aside {
border-color: var(--citrus-mix-light);
background-image: linear-gradient(
135deg,
var(--citrus-light-extra) 5%,
var(--citrus-light) 50%,
var(--citrus-light-extra)
);
}
& .addendum {
border-color: var(--citrus-primary);
background-image: linear-gradient(
135deg,
var(--citrus-mix-light) 5%,
var(--citrus-light) 50%,
var(--citrus-mix-light)
);
}
& pre {
border-radius: 4px;
color: var(--citrus-secondary);
background-color: var(--citrus-dark-extra);
background-size: 4px;
}
& .post-warning {
background-color: var(--citrus-primary);
}
& s {
text-decoration-color: #d00;
}
& .postscript {
& span:has([alt]) {
&::after {
content: "";
width: calc(var(--avatar) - 10px);
height: calc(var(--avatar) - 10px);
position: absolute;
margin: 5px;
background-image: linear-gradient(
color-mix(in lch, var(--light), transparent),
transparent
);
box-shadow: inset 0 0 2px 0 var(--dark);
}
}
& [alt="Profile picture"] {
color: unset;
border-radius: inherit;
border: 2px solid;
border-image-source: linear-gradient(
to bottom,
var(--citrus-mix-light),
var(--citrus-secondary)
);
border-image-slice: 1;
border-width: 3px;
box-sizing: inherit;
padding: 2px;
background-image:
radial-gradient(
ellipse at 50% -0%,
var(--light) 20%,
var(--dark) 150%
),
var(--pansexual);
background-blend-mode: overlay, normal;
background-size: cover, 100%;
background-position: center;
background-repeat: no-repeat;
box-shadow:
0 0 0 2px var(--citrus-mix-dark),
inset 0 0 0 2px var(--citrus-mix),
var(--shadow-light);
font-size: 0;
}
}
}
& #posts {
& a {
border-width: 4px;
box-shadow: var(--shadow-light);
border-radius: 0;
& p {
color: initial;
}
& p:not(:last-child) {
color: var(--citrus-dark);
}
}
}
}

View file

@ -0,0 +1,231 @@
@import url("./nav.css");
@import url("./variables.css");
body {
font-family: "Nosey Rodent";
background-attachment: local;
background-blend-mode: soft-light;
background-color: var(--citrus-primary);
background-image: var(--paw-tiled);
background-repeat: repeat;
background-size: 128px;
color: var(--citrus-dark-extra);
}
main article {
background:
var(--noise),
linear-gradient(
var(--citrus-light) 70%,
color-mix(in lch, var(--citrus-mix-light), var(--citrus-light)) 100%
);
box-shadow: var(--shadow-heavy);
border-radius: 2px;
& a,
button {
background-color: var(--citrus-mix-light);
color: var(--citrus-dark);
&:hover {
background-color: var(--citrus-primary);
}
}
& ul li::before {
background-color: var(--citrus-dark-extra);
}
}
#interests {
& li {
& a {
& span:has(img)::after {
display: none;
}
}
&:nth-child(odd) {
transform: var(--rot-minus);
}
}
}
#gallery {
& main article {
border-radius: 4px;
box-shadow:
inset 0 0 0 4px color-mix(in lch, var(--light), var(--dark) 2%),
inset 0 0 0 8px var(--citrus-mix-dark),
var(--shadow-heavy);
background-color: color-mix(
in lch,
var(--citrus-mix-dark),
var(--citrus-mix)
);
background-image:
var(--noise),
linear-gradient(
135deg,
color-mix(in lch, var(--citrus-mix-dark), var(--citrus-mix)),
var(--citrus-mix-dark)
);
}
& a:has(figure) {
font-family: "Urbanist", sans-serif;
transition:
border-color var(--trans),
background-color var(--trans);
box-shadow: var(--shadow-light);
&:is(:hover, :focus) {
& figure {
transition: inherit;
border-color: currentColor;
}
}
}
& a:is(:not(:hover, :focus)) figure {
border-color: var(--light);
background-color: var(--light);
}
}
:is(#art li, #art section a):nth-child(odd) {
transform: var(--rot-minus);
}
#art div {
background-color: var(--citrus-light);
background-image: var(--noise), var(--paper);
background-size: auto, 4px;
box-shadow: var(--shadow-light);
margin-bottom: var(--pad-xl);
padding: var(--pad-xl);
transform: var(--rot-plus);
& p {
line-height: 32px;
}
}
#blog {
animation: none;
background-attachment: local, fixed;
background-blend-mode: overlay, normal;
background-color: var(--light);
background-image:
var(--dot),
linear-gradient(var(--citrus-mix-dark) 0% 10%, var(--citrus-dark) 100%);
background-size: 6px, contain;
& main article {
background-color: var(--citrus-light);
background-image: var(--noise);
background-repeat: repeat;
background-size: auto;
border-radius: 0;
box-shadow:
inset 0 -2rem 3rem -4rem var(--dark),
var(--shadow-heavy);
& aside,
.addendum {
border-radius: 0;
border-width: 4px;
border-style: solid;
}
& aside {
border-color: var(--citrus-mix-light);
background-image: linear-gradient(
135deg,
var(--citrus-light-extra) 5%,
var(--citrus-light) 50%,
var(--citrus-light-extra)
);
}
& .addendum {
border-color: var(--citrus-primary);
background-image: linear-gradient(
135deg,
var(--citrus-mix-light) 5%,
var(--citrus-light) 50%,
var(--citrus-mix-light)
);
}
& pre {
border-radius: 4px;
color: var(--citrus-secondary);
background-color: var(--citrus-dark-extra);
background-size: 4px;
}
& .post-warning {
background-color: var(--citrus-primary);
}
& s {
text-decoration-color: #d00;
}
& .postscript {
& span:has([alt]) {
&::after {
content: "";
width: var(--avatar);
height: var(--avatar);
position: absolute;
margin: 5px;
background-image:
radial-gradient(circle at 0px 0px, var(--light), transparent 50%),
linear-gradient(
135deg,
transparent 15%,
var(--light) 20%,
color-mix(in lch, var(--light), transparent 90%) 50%
);
}
}
& [alt="Profile picture"] {
color: unset;
border-radius: inherit;
border: 2px solid;
border-image-source: linear-gradient(
to bottom,
var(--citrus-mix-light),
var(--citrus-secondary)
);
border-image-slice: 1;
border-width: 3px;
box-sizing: inherit;
padding: 2px;
background-image:
radial-gradient(
ellipse at 50% -0%,
var(--light) 20%,
var(--dark) 150%
),
var(--pansexual);
background-blend-mode: overlay, normal;
background-size: cover, 100%;
background-position: center;
background-repeat: no-repeat;
box-shadow:
0 0 0 2px var(--citrus-mix-dark),
inset 0 0 0 2px var(--citrus-mix),
var(--shadow-light);
font-size: 0;
}
}
}
& #posts {
& a {
border-width: 4px;
box-shadow: var(--shadow-light);
border-radius: 0;
& p {
color: initial;
}
& p:not(:last-child) {
color: var(--citrus-dark);
}
}
}
}
@media screen and (max-width: 916px) {
body::after {
content: none;
}
}
@media screen and (min-width: 916px) {
nav#default {
height: max-content;
}
header {
margin-top: 0;
}
}

View file

@ -1,47 +0,0 @@
@import url("./blog.css");
@import url("./gallery.css");
@import url("./home.css");
@import url("./nav.css");
@import url("./variables.css");
body {
background-attachment: local;
background-blend-mode: soft-light;
background-color: var(--citrus-primary);
background-image: var(--paw-tiled);
background-repeat: repeat;
background-size: 128px;
color: var(--citrus-dark-extra);
}
main :is(a, button) {
background-color: var(--citrus-mix-light);
border-color: var(--citrus-mix);
color: var(--citrus-dark);
}
ul li::before {
background-color: var(--citrus-dark-extra);
}
article {
background:
var(--noise),
linear-gradient(
var(--citrus-light) 70%,
color-mix(in lch, var(--citrus-mix-light), var(--citrus-light)) 100%
);
box-shadow: var(--shadow-heavy);
border: 0;
border-radius: 2px;
}
@media screen and (max-width: 916px) {
body::after {
content: none;
}
}
@media screen and (min-width: 916px) {
nav#default {
height: max-content;
}
header {
margin-top: 0;
}
}

View file

@ -1,58 +0,0 @@
#gallery {
& article {
border-radius: 4px;
box-shadow:
inset 0 0 0 4px color-mix(in lch, var(--light), var(--dark) 2%),
inset 0 0 0 8px var(--citrus-mix-dark),
var(--shadow-heavy);
background-color: color-mix(
in lch,
var(--citrus-mix-dark),
var(--citrus-mix)
);
background-image:
var(--noise),
linear-gradient(
135deg,
color-mix(in lch, var(--citrus-mix-dark), var(--citrus-mix)),
var(--citrus-mix-dark)
);
}
& a:has(figure) {
font-family: "Urbanist", sans-serif;
transition:
border-color var(--trans),
background-color var(--trans);
box-shadow: var(--shadow-light);
&:is(:hover, :focus) {
& figure {
transition: inherit;
border-color: currentColor;
}
}
}
& a figure {
border-width: 4px;
border-radius: 0;
&:is(:not(a:hover *, a:focus *)) {
border-color: var(--light);
background-color: var(--light);
}
}
}
:is(#art li, #art section a):nth-child(odd) {
transform: var(--rot-minus);
}
#art div {
background-color: var(--citrus-light);
background-image: var(--noise), var(--paper);
background-size: auto, 4px;
box-shadow: var(--shadow-light);
margin-bottom: var(--pad-xl);
padding: var(--pad-xl);
transform: var(--rot-plus);
& p {
line-height: 32px;
padding: 0;
}
}

View file

@ -1,12 +0,0 @@
#interests {
& li {
& a {
& span:has(img)::after {
display: none;
}
}
&:nth-child(odd) {
transform: var(--rot-minus);
}
}
}

View file

@ -16,7 +16,6 @@
background: var(--button-bg);
box-shadow: var(--button-shine);
border: var(--button-border);
border-radius: var(--round);
color: inherit;
&[aria-current] {
background: var(--button-current-bg);
@ -36,24 +35,41 @@
}
}
}
nav#default,
nav#floating,
.navbar section,
.navbar li :is(a, button) {
border-radius: var(--round);
}
#default,
#floating,
header {
color: var(--citrus-dark);
background-attachment: fixed;
background-image: var(--nav-bg);
background-size: 6px;
}
nav#floating,
nav#default {
#floating,
#default {
border-bottom-style: solid;
border-right-style: solid;
border-bottom-width: 4px;
border-right-width: 4px;
}
nav#default {
#default {
border-bottom-right-radius: var(--pad-l);
}
body {
position: relative;
z-index: -3;
& main {
position: inherit;
z-index: -2;
}
& #sidebar {
position: inherit;
z-index: -1;
}
}
@media screen and (max-width: 916px) {
header {
background: none;
@ -62,14 +78,14 @@ nav#default {
@media screen and (min-width: 916px) {
header {
display: flex;
width: var(--view);
border-right-width: 4px;
border-right-style: solid;
border-bottom-width: 4px;
border-bottom-right-radius: var(--pad-xl);
border-bottom-style: solid;
border-bottom-right-radius: 100px;
border-bottom-width: 4px;
border-right-style: solid;
border-right-width: 4px;
display: flex;
margin-left: calc(var(--view) - 4px);
padding: var(--pad-m) 0;
width: var(--view);
}
}