From 6f4629a7dae9dd58bd440d97a7845afd6b382be2 Mon Sep 17 00:00:00 2001 From: Nicholas Brown Date: Fri, 7 Aug 2026 12:40:09 -0400 Subject: [PATCH] add dropdown to ts docs --- docs/css/language-dropdown.css | 31 ++++++++++++++++++++++++++++++- docs/language-dropdown.js | 8 ++++---- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/docs/css/language-dropdown.css b/docs/css/language-dropdown.css index 0eb810545..4ea9a8613 100644 --- a/docs/css/language-dropdown.css +++ b/docs/css/language-dropdown.css @@ -7,6 +7,7 @@ margin-left: auto; display: inline-flex; align-items: center; + position: relative; } #language-switch select { @@ -20,7 +21,7 @@ font-size: 0.75rem; line-height: 1rem; height: 2.375rem; - padding: 0 1.375rem 0 0.75rem; + padding: 0 1.375rem 0 2rem; /* Chevron, drawn in the same gray as the label text. */ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; @@ -55,3 +56,31 @@ color: rgb(209 213 219); border-color: rgb(255 255 255 / 0.1); } + +/* Colored language mark on the visible trigger; the native