From f447af6550dfa8dc77aeada859ea134ad2b60b8c Mon Sep 17 00:00:00 2001 From: jamie Date: Wed, 15 Oct 2025 10:11:33 +0100 Subject: feat: some very crude mobile-friendly responsiveness --- assets/css/default.scss | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/assets/css/default.scss b/assets/css/default.scss index c3d6044..8a80322 100644 --- a/assets/css/default.scss +++ b/assets/css/default.scss @@ -3,10 +3,8 @@ $foreground-color: oklch(98.51% 0 0); $primary-color: oklch(82.67% 0.096 307.5); $secondary-color: oklch(from $primary-color l c 240); -@import "syntax"; - @mixin for-phone-only { - @media (max-width: 499px) { + @media (max-width: 700px) { @content; } } @@ -91,14 +89,35 @@ nav { hr { width: 100%; } + } + @include for-phone-only { - position: inherit; - flex-direction: row; + body { + padding: 0rem; + gap: 0.2rem; - hr { - display: none; + &>* { + outline: 0; + } + } + + nav { + position: inherit; + flex-direction: row; + transform: translateX(0rem) !important; + width: 100%; + justify-content: space-between; + + a { + + writing-mode: inherit; + } + + hr { + display: none; + } } } @@ -163,20 +182,6 @@ ul { img { user-select: none; - - &:hover { - animation: spin 0.5s ease-in-out; - } -} - -@keyframes spin { - from { - transform: rotate(0deg); - } - - to { - transform: rotate(360deg); - } } hr { -- cgit v1.3.1