Skip to content

Commit caf6f42

Browse files
authored
fix: improve design rendering on 1dppx low-density screens (#40)
* fix: improve button rendering on 1dppx/low-density screens (#39) * fix: revert transition ownership to PR#30, add missing 1x overrides for active state and btn-accent * fix: remove hardcoded container names to allow multiple worktrees to run simultaneously
1 parent 7563dfb commit caf6f42

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

src/lib/global.scss

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,3 +571,39 @@ h3 {
571571
}
572572
}
573573
}
574+
575+
/* ── Low-density (1×) screen overrides ──────────────────────────────── */
576+
577+
@media (resolution: 1dppx) {
578+
html,
579+
body {
580+
-webkit-font-smoothing: subpixel-antialiased;
581+
}
582+
583+
.primary-btn {
584+
box-shadow: 0 4px 3px -2px rgba(0, 0, 0, 0.25);
585+
}
586+
587+
.primary-btn:hover:not(:disabled) {
588+
transform: translateY(-2px);
589+
box-shadow: 0 6px 4px -2px rgba(0, 0, 0, 0.25);
590+
}
591+
592+
.primary-btn:active:not(:disabled) {
593+
box-shadow: 0 4px 3px -2px rgba(0, 0, 0, 0.25);
594+
}
595+
596+
.primary-btn:focus-visible {
597+
outline: none;
598+
}
599+
600+
.crypt-btn:hover:not(:disabled):not([disabled]):not(.crypt-btn-disabled) {
601+
transform: translateY(-2px);
602+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
603+
}
604+
605+
.btn-accent:hover {
606+
transform: translateY(-2px);
607+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
608+
}
609+
}

0 commit comments

Comments
 (0)