From 6e4fbb41eaba213d501abd1cdef0d849aa3c9cff Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Tue, 30 Jan 2024 13:12:50 +0900 Subject: [PATCH] docs: use grid, fix margins etc --- website/src/css/custom.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 280aee99d1..daa7cd86e5 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -214,6 +214,7 @@ li.theme-doc-sidebar-item-category-level-1 > div::before { /* begin certification links */ .links-container { container-type: inline-size; + /* breakpoint: 925 width */ ol { list-style: none; @@ -225,14 +226,15 @@ li.theme-doc-sidebar-item-category-level-1 > div::before { justify-content: space-between; } - li { + li:has(article) { margin: 0; padding: 0; - width: 30%; + aspect-ratio: 1.15/1; + width: 300px; } article { - aspect-ratio: 1; + height: 100%; border-radius: var(--ifm-global-radius); background: var(--ifm-color-primary-contrast-background); padding: calc(var(--ifm-spacing-vertical) * 2);