Skip to content

Commit 81c1544

Browse files
kvapsovaclaude
andcommitted
UI: remaining icons from the kit family; video poster from the kit
The Figma kit icons are Primer Octicons, so the icons the kit does not list use the same set: - docs/blog right column links: people, book, mark-github, pencil (Font Awesome removed); the "print entire section" link has no icon (Octicons has no printer); - blog RSS button: rss; - DocSearch button shows the kit SearchIcon instead of Algolia's glyph; - Community video: a poster with the kit PlayIcon and "YouTube", as in the Figma frame. The player is created on click (youtube-nocookie), so the page makes no request to YouTube until the visitor asks; without JavaScript the poster is a plain link. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Viktoriia Kvapil <viktoriia.kvapil@aenix.io>
1 parent 98a7cd6 commit 81c1544

13 files changed

Lines changed: 81 additions & 9 deletions

File tree

‎assets/icons/octicons/book.svg‎

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

‎assets/icons/octicons/pencil.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎assets/icons/octicons/people.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎assets/icons/octicons/rss.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎assets/icons/ui/play.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎assets/scss/redesign/_chrome.scss‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,17 @@ nav.navbar.td-navbar .nav-search-item #docsearch {
242242
.nav-search-item #docsearch { width: 100%; max-width: none; margin: 0; .DocSearch-Button { width: 100%; } }
243243
}
244244
}
245+
246+
// DocSearch button: the search glyph of the kit (SearchIcon) instead of Algolia's own.
247+
nav.navbar.td-navbar .nav-search-item #docsearch {
248+
.DocSearch-Search-Icon { display: none; }
249+
.DocSearch-Button-Container::before {
250+
content: "";
251+
display: inline-block;
252+
vertical-align: middle;
253+
flex: none;
254+
width: 20px;
255+
height: 20px;
256+
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%236b7280' d='M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z'/%3e%3c/svg%3e") center / contain no-repeat;
257+
}
258+
}

‎assets/scss/redesign/_content.scss‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,7 @@ header.article-meta .taxonomy-title {
310310

311311
// Sidebar toggle (docs and blog, below md): ThreeBarsIcon from the kit.
312312
.td-sidebar__toggle { color: var(--cz-ink); line-height: 1; svg { display: block; width: 24px; height: 24px; } }
313+
314+
// Octicons used in the page links (right column) and the blog RSS button.
315+
.cz-oct { display: inline-flex; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; svg { width: 16px; height: 16px; fill: currentColor; } }
316+
.td-rss-button .cz-oct { width: 20px; height: 20px; margin: 0; vertical-align: middle; svg { width: 20px; height: 20px; } }

‎assets/scss/redesign/_home.scss‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,23 @@ body.td-home .td-main { margin-top: 0; }
414414
}
415415
}
416416

417+
// Video poster: black, play icon and the word YouTube, as in the Figma frame.
418+
.cz-video__poster {
419+
display: flex;
420+
align-items: center;
421+
justify-content: center;
422+
gap: 18px;
423+
background: #000;
424+
border-radius: var(--cz-radius);
425+
color: #fff;
426+
text-decoration: none;
427+
428+
&:hover, &:focus-visible { color: #fff; text-decoration: none; }
429+
&:hover .cz-video__play { transform: scale(1.06); }
430+
}
431+
.cz-video__play { display: inline-flex; width: 52px; height: 52px; transition: transform .15s; svg { width: 52px; height: 52px; fill: currentColor; } }
432+
.cz-video__label { font-size: 18px; font-weight: 700; }
433+
417434
.cz-video {
418435
position: relative;
419436
z-index: 1;

‎layouts/blog/baseof.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{{ partial "version-banner.html" . }}
2424
{{ with .CurrentSection.OutputFormats.Get "rss" -}}
2525
<a class="td-rss-button" title="RSS" href="{{ .Permalink | safeURL }}" target="_blank" rel="noopener">
26-
<i class="fa-solid fa-rss" aria-hidden="true"></i>
26+
{{ partial "octicon.html" "rss" }}
2727
</a>
2828
{{ end -}}
2929
<!-- Deprecate posts over 1yo: https://github.com/fluxcd/website/pull/832 -->

0 commit comments

Comments
 (0)