enabled Biome CSS formatter and linter, applied

This commit is contained in:
Xanazf 2024-10-29 01:59:33 +02:00
parent a417b18c94
commit 77ab369187
Signed by: Xanazf
GPG key ID: 4E4A5AD1FB748427
7 changed files with 42 additions and 33 deletions

View file

@ -42,6 +42,18 @@
"attributePosition": "multiline"
}
},
"css": {
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"linter": {
"enabled": true
},
"parser": {
"cssModules": true
}
},
"overrides": [
{
"include": [

View file

@ -1,6 +1,6 @@
html {
font-family: "Rubik Variable", Inter, system-ui, Avenir, Helvetica, Arial,
sans-serif;
font-family: "Rubik Variable", Inter, system-ui, Avenir,
Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.272;
font-weight: 400;

View file

@ -11,7 +11,9 @@
align-items: center;
gap: 0.3em;
& svg { color: hsl(var(--text)) }
& svg {
color: hsl(var(--text));
}
}
}

View file

@ -265,20 +265,10 @@
/* default styles */
site-search {
--shadow-lg:
0px 25px 7px hsla(0, 0%, 0%, 0.03), 0px 16px 6px hsla(
0,
0%,
0%,
0.1
),
0px 9px 5px hsla(223, 13%, 10%, 0.33), 0px 4px 4px hsla(
0,
0%,
0%,
0.75
),
0px 4px 2px hsla(0, 0%, 0%, 0.25);
--shadow-lg: 0px 25px 7px hsla(0, 0%, 0%, 0.03), 0px 16px 6px
hsla(0, 0%, 0%, 0.1), 0px 9px 5px hsla(223, 13%, 10%, 0.33),
0px 4px 4px hsla(0, 0%, 0%, 0.75), 0px 4px 2px
hsla(0, 0%, 0%, 0.25);
display: contents;
}

View file

@ -25,7 +25,7 @@
font-size: 1.614rem;
max-height: 500px;
&>svg {
& > svg {
height: 100%;
width: 24px;
}
@ -56,8 +56,7 @@
display: none;
}
transition: width 0.3s ease,
padding 0.3s ease;
transition: width 0.3s ease, padding 0.3s ease;
&.shown {
& .toc-content {
@ -123,7 +122,7 @@
list-style: none;
&.active {
&>.toc_a {
& > .toc_a {
color: hsl(var(--green) 72 60);
}
}

View file

@ -146,10 +146,12 @@ footer {
left: -1rem;
height: 1px;
width: calc(100% + 1rem);
background: linear-gradient(90deg,
background: linear-gradient(
90deg,
transparent 0%,
hsl(var(--footer-bkg-border)) 50%,
transparent 100%);
transparent 100%
);
}
& a {

View file

@ -176,10 +176,12 @@
&:nth-child(1),
&:nth-child(2) {
&::before {
background: linear-gradient(115deg,
background: linear-gradient(
115deg,
hsla(var(--green) 20 15 / 0.7) 25%,
hsla(var(--green) 25 25 / 0.8) 50%,
hsla(var(--green) 60 60 / 0.6) 80%);
hsla(var(--green) 60 60 / 0.6) 80%
);
}
&:hover {
@ -194,10 +196,12 @@
&:nth-child(3),
&:nth-child(4) {
&::before {
background: linear-gradient(115deg,
background: linear-gradient(
115deg,
hsla(var(--blue) 10 15 / 0.7) 25%,
hsla(var(--blue) 15 25 / 0.8) 50%,
hsla(var(--blue) 60 60 / 0.6) 80%);
hsla(var(--blue) 60 60 / 0.6) 80%
);
}
&:hover {