From 386b2c4920ced1809246b0582421d0f661616533 Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Thu, 4 Jul 2024 01:18:10 +0700 Subject: [PATCH] implement grid --- index.html | 11 --------- style.css | 70 ++++-------------------------------------------------- 2 files changed, 4 insertions(+), 77 deletions(-) diff --git a/index.html b/index.html index 41a8da0..c211070 100644 --- a/index.html +++ b/index.html @@ -99,8 +99,6 @@ - -
Invidious @@ -128,8 +126,6 @@
- -
openKMITL @@ -157,8 +153,6 @@
- -
Peertube @@ -203,8 +197,6 @@
- -
Forgejo @@ -232,8 +224,6 @@
- -
Jitsi @@ -252,7 +242,6 @@
- diff --git a/style.css b/style.css index 9aecb03..d177551 100644 --- a/style.css +++ b/style.css @@ -65,8 +65,9 @@ h1 { } .row { - display: flex; - justify-content: space-between; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); + grid-gap: 1rem; } .button { @@ -117,35 +118,11 @@ h1 { display: grid; border-radius: 12px; text-decoration: none; - margin-bottom: 0.5cm; height: 3cm; - min-width: 6cm; - width: 32.5%; transition-duration: 0.2s; box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13); } -.itemcard-placeholder { - display: grid; - border-radius: 12px; - text-decoration: none; - margin-bottom: 0.5cm; - min-height: 3cm; - min-width: 6cm; - width: 32.5% -} - -.itemcard-stealth { - display: grid; - border-radius: 12px; - text-decoration: none; - margin-bottom: 0.5cm; - height: 3cm; - min-width: 6cm; - width: 32.5%; - transition-duration: 0.2s; -} - .listaction { display: flex; align-items: center; @@ -170,39 +147,20 @@ h1 { width: 90vw; max-width: 35cm; } - .row { - display: flex; - flex-direction: column; - } .itemcard { display: grid; border-radius: 12px; text-decoration: none; - margin-bottom: 0.5cm; height: 3cm; - min-width: 6cm; - width: 100%; transition-duration: 0.2s; box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13); } - .itemcard-placeholder { - display: grid; - border-radius: 12px; - text-decoration: none; - margin-bottom: 0.5cm; - min-height: 3cm; - min-width: 6cm; - width: 100% - } .itemcard-stealth { display: grid; border-radius: 12px; text-decoration: none; - margin-bottom: 0.5cm; height: 3cm; - min-width: 6cm; - width: 100%; transition-duration: 0.2s; } h1 { @@ -217,39 +175,21 @@ h1 { width: 90vw; max-width: 35cm; } - .row { - display: flex; - flex-direction: column; - } + .itemcard { display: grid; border-radius: 12px; text-decoration: none; - margin-bottom: 0.5cm; height: 3cm; - min-width: 6cm; - width: 100%; transition-duration: 0.2s; box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13); } - .itemcard-placeholder { - display: grid; - border-radius: 12px; - text-decoration: none; - margin-bottom: 0.5cm; - min-height: 3cm; - min-width: 6cm; - width: 100% - } .itemcard-stealth { display: grid; border-radius: 12px; text-decoration: none; - margin-bottom: 0.5cm; height: 3cm; - min-width: 6cm; - width: 100%; transition-duration: 0.2s; } h1 { @@ -257,8 +197,6 @@ h1 { } } - - @media (prefers-color-scheme: light) { body {