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" "attributePosition": "multiline"
} }
}, },
"css": {
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"linter": {
"enabled": true
},
"parser": {
"cssModules": true
}
},
"overrides": [ "overrides": [
{ {
"include": [ "include": [

View file

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

View file

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

View file

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

View file

@ -56,8 +56,7 @@
display: none; display: none;
} }
transition: width 0.3s ease, transition: width 0.3s ease, padding 0.3s ease;
padding 0.3s ease;
&.shown { &.shown {
& .toc-content { & .toc-content {

View file

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

View file

@ -176,10 +176,12 @@
&:nth-child(1), &:nth-child(1),
&:nth-child(2) { &:nth-child(2) {
&::before { &::before {
background: linear-gradient(115deg, background: linear-gradient(
115deg,
hsla(var(--green) 20 15 / 0.7) 25%, hsla(var(--green) 20 15 / 0.7) 25%,
hsla(var(--green) 25 25 / 0.8) 50%, 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 { &:hover {
@ -194,10 +196,12 @@
&:nth-child(3), &:nth-child(3),
&:nth-child(4) { &:nth-child(4) {
&::before { &::before {
background: linear-gradient(115deg, background: linear-gradient(
115deg,
hsla(var(--blue) 10 15 / 0.7) 25%, hsla(var(--blue) 10 15 / 0.7) 25%,
hsla(var(--blue) 15 25 / 0.8) 50%, 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 { &:hover {