From 9e7563315a438b870bd81bb5a4a4c79557379963 Mon Sep 17 00:00:00 2001 From: Xanazf Date: Sat, 9 Nov 2024 07:56:21 +0200 Subject: [PATCH] mobile --- src/styles/components/featurelist.css | 57 ++++++++++++++++++++------- src/styles/css-config/code.css | 2 +- 2 files changed, 43 insertions(+), 16 deletions(-) diff --git a/src/styles/components/featurelist.css b/src/styles/components/featurelist.css index 9ba675e..f59b128 100644 --- a/src/styles/components/featurelist.css +++ b/src/styles/components/featurelist.css @@ -32,9 +32,6 @@ background-position: 50% 50%; background-size: 1.1rem 1.1rem; } - & .shiki { - margin-block: unset; - } } html.dark .featurelist-item { @@ -67,17 +64,22 @@ html.dark .feature-text { } .feature-showcase { - max-height: 21rem; - aspect-ratio: 16 / 9; - width: 100%; + max-width: 75svw; + max-height: min-content; + height: 15rem; display: flex; justify-content: center; & video { - height: 100%; + scale: 0.85; aspect-ratio: 16 / 9; border-radius: 0.681rem; } + + & .shiki { + margin-block: unset; + font-size: 0.55rem; + } } html:not(.dark) .feature-showcase .shiki, @@ -94,29 +96,39 @@ html:not(.dark) .feature-showcase .shiki span { & .cloud-item { position: absolute; + scale: 0.8; &.wayland { transform: translate(-50%, 0); } &.hyprland { transform: translate(-50%, 0) rotate(72deg); - & > div { transform: rotate(-72deg) } + & > div { + transform: rotate(-72deg); + } } &.pipewire { transform: translate(-50%, 0) rotate(144deg); - & > div { transform: rotate(-144deg) } + & > div { + transform: rotate(-144deg); + } } &.x-org { transform: translate(-50%, 0) rotate(216deg); - & > div { transform: rotate(-216deg) } + & > div { + transform: rotate(-216deg); + } } &.sway { transform: translate(-50%, 0) rotate(288deg); - & > div { transform: rotate(-288deg) } + & > div { + transform: rotate(-288deg); + } } - & img, svg { + & img, + svg { animation: counter-spin 40s linear infinite; - width: 80px; - height: 80px; + width: 60px; + height: 60px; } left: 50%; height: 100%; @@ -125,7 +137,7 @@ html:not(.dark) .feature-showcase .shiki span { @keyframes spin { from { - transform:rotate(0deg); + transform: rotate(0deg); } to { transform: rotate(360deg); @@ -172,5 +184,20 @@ html:not(.dark) .feature-showcase .shiki span { } .feature-showcase { width: auto; + aspect-ratio: 16 / 9; + & video { + scale: 1; + } + & .shiki { + font-size: 1rem; + } + & .cloud-item { + scale: 1; + & img, + svg { + width: 80px; + height: 80px; + } + } } } diff --git a/src/styles/css-config/code.css b/src/styles/css-config/code.css index 10d4dd4..3972570 100644 --- a/src/styles/css-config/code.css +++ b/src/styles/css-config/code.css @@ -24,7 +24,7 @@ html.dark .shiki span { pre { padding: 1rem; border-radius: 0.618rem; - overflow: auto; + overflow: hidden; text-wrap: wrap; & > button {