aboutsummaryrefslogtreecommitdiff
path: root/src/routes/girls
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-19 01:29:29 +0000
committerFuwn <[email protected]>2026-05-19 01:29:29 +0000
commit9cd5919bd8ca87987d9bb3f735266c2398c6ce9e (patch)
tree623ee26d41129acfe7c9b6c5e5d3a79bbb824da3 /src/routes/girls
parentstyle(nav): add --base0011-strong for grounded glass on nav surfaces (diff)
downloaddue.moe-9cd5919bd8ca87987d9bb3f735266c2398c6ce9e.tar.xz
due.moe-9cd5919bd8ca87987d9bb3f735266c2398c6ce9e.zip
style(breakpoints): consolidate 9 ad-hoc values into 5 SCSS tokens
Adds src/styles/_breakpoints.scss with five canonical tokens (\$bp-sm 600, \$bp-md 800, \$bp-lg 1024, \$bp-xl 1280, \$bp-2xl 1600) and migrates all 15 @media (max-width: ...) occurrences across 9 files. Configures vite.config.ts with scss loadPaths so any file can @use "breakpoints" without relative paths. Conservative rounding-up where existing values were near-duplicates: 500 and 512 collapse to 600, 768 collapses to 800, 1000 collapses to 1024. Slightly more viewports get the smaller-layout treatment in those bands, which is usually beneficial on cramped widths. Converts 7 Svelte files from <style> to <style lang="scss"> to access the SCSS tokens. SCSS is a CSS superset, so existing rules stay valid.
Diffstat (limited to 'src/routes/girls')
-rw-r--r--src/routes/girls/+page.svelte12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/routes/girls/+page.svelte b/src/routes/girls/+page.svelte
index 88f06460..bbe57ac9 100644
--- a/src/routes/girls/+page.svelte
+++ b/src/routes/girls/+page.svelte
@@ -92,7 +92,9 @@ import "$styles/girls.scss";
{/await}
</details>
-<style>
+<style lang="scss">
+ @use "breakpoints" as *;
+
img {
border-radius: 8px;
width: 25vh;
@@ -102,25 +104,25 @@ import "$styles/girls.scss";
columns: 6;
}
- @media (max-width: 1280px) {
+ @media (max-width: $bp-xl) {
.languages ul {
columns: 5;
}
}
- @media (max-width: 1024px) {
+ @media (max-width: $bp-lg) {
.languages ul {
columns: 4;
}
}
- @media (max-width: 768px) {
+ @media (max-width: $bp-md) {
.languages ul {
columns: 3;
}
}
- @media (max-width: 512px) {
+ @media (max-width: $bp-sm) {
.languages ul {
columns: 2;
}