Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/components/Logo.astro
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -11,6 +11,5 @@ const {size = 'sm'} = Astro.props;

<span class:list={['d-logo', size !== 'sm' && `is-${size}`]} aria-hidden="true">
<img src="/brand/didactika-logo.png" alt="" width="64" height="64" />
<i class="h h1"></i><i class="h h2"></i><i class="h h3"></i>
<b class="d-logo-tag">DOC</b>
</span>
4 changes: 0 additions & 4 deletions src/styles/didactika.css
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
Loading