From 9624819feb20aac4e0e50226329a477062750137 Mon Sep 17 00:00:00 2001 From: hlaelissalt Date: Thu, 12 Nov 2026 11:27:46 +0100 Subject: [PATCH] fix: the logo has no handles on its corners The handles of a selection belong to the design system; the logo of the portal keeps its tile, its book and its DOC pill. --- src/components/Logo.astro | 5 ++--- src/styles/didactika.css | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/Logo.astro b/src/components/Logo.astro index 41a9acd..32f6779 100644 --- a/src/components/Logo.astro +++ b/src/components/Logo.astro @@ -1,7 +1,7 @@ --- /** - * The mark of Didactika Docs, built as the one of the design system: the book of Didactika on a white tile, with the handles of a selection - * on its corners and a teal pill that says what the site is ("DOC", where the design system says "UI"). + * The mark of Didactika Docs, built as the one of the design system: the book of Didactika on a white tile and + * a teal pill that says what the site is ("DOC", where the design system says "UI"). */ interface Props { size?: 'sm' | 'lg' | 'xl'; @@ -11,6 +11,5 @@ const {size = 'sm'} = Astro.props; diff --git a/src/styles/didactika.css b/src/styles/didactika.css index 626f875..21a9890 100644 --- a/src/styles/didactika.css +++ b/src/styles/didactika.css @@ -333,14 +333,10 @@ a.d-chip:hover { color: var(--ink); } /* The mark: the book on a white tile, the handles of a selection and the pill of what the site is. */ .d-logo { position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgb(0 85 90 / 18%); flex: none; } .d-logo img { width: 74%; height: 74%; display: block; border-radius: 0; } -.d-logo .h { position: absolute; width: 0.3rem; height: 0.3rem; border-radius: 1.5px; background: #fff; border: 1.2px solid #0f766e; } -.d-logo .h1 { left: -2px; top: -2px; } .d-logo .h2 { right: -2px; top: -2px; } .d-logo .h3 { left: -2px; bottom: -2px; } .d-logo-tag { position: absolute; right: -0.55rem; bottom: -0.4rem; padding: 0.14rem 0.3rem; border-radius: 6px; background: #0f766e; color: #fff; font: 700 0.46rem/1 var(--display); letter-spacing: 0.03em; box-shadow: 0 0 0 2px var(--panel); } .d-logo.is-lg { width: 2.9rem; height: 2.9rem; border-radius: 13px; } .d-logo.is-lg .d-logo-tag { font-size: 0.54rem; right: -0.6rem; bottom: -0.45rem; } .d-logo.is-xl { width: clamp(5.5rem, 11vw, 8.25rem); height: clamp(5.5rem, 11vw, 8.25rem); border-radius: clamp(1.2rem, 2.4vw, 1.9rem); box-shadow: 0 8px 28px rgb(0 85 90 / 18%); } -.d-logo.is-xl .h { width: 0.55rem; height: 0.55rem; border-width: 1.6px; } -.d-logo.is-xl .h1 { left: -3px; top: -3px; } .d-logo.is-xl .h2 { right: -3px; top: -3px; } .d-logo.is-xl .h3 { left: -3px; bottom: -3px; } .d-logo.is-xl .d-logo-tag { font-size: clamp(0.7rem, 1.5vw, 1.05rem); right: -0.9rem; bottom: -0.7rem; padding: 0.22rem 0.6rem; border-radius: 10px; box-shadow: 0 0 0 3px #fff; } .d-brand .d-logo { border-radius: 11px; }