summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-28 13:06:49 +0200
committerDanilo M. <danix@danix.xyz>2026-04-28 13:06:49 +0200
commit346f48df3950901be42ee2b8d23350ad3ac925f5 (patch)
tree2c58c74273d622fb0550d2768ce12b4f444508ad /assets
parent2bb102971ce560e5e72fc5dca53916f94570efa7 (diff)
downloaddanixxyz-theme-346f48df3950901be42ee2b8d23350ad3ac925f5.tar.gz
danixxyz-theme-346f48df3950901be42ee2b8d23350ad3ac925f5.zip
feat: adaptive repo grid with CSS auto-fit and :only-child centering
Diffstat (limited to 'assets')
-rw-r--r--assets/css/main.css15
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index ab41a7d..8921966 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -584,6 +584,21 @@ html.theme-light picture img[src="/images/default_thumbnail_dark.png"] {
}
/* =====================
+ Repository Grid
+ ===================== */
+
+ .repo-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ gap: 1.5rem;
+ }
+
+ .repo-card:only-child {
+ max-width: 50%;
+ margin-inline: auto;
+ }
+
+ /* =====================
Timeline Layout
===================== */