mirror of
https://github.com/jimeh/commonflow.org.git
synced 2026-02-19 05:46:40 +00:00
wip: getting close
This commit is contained in:
@@ -15,10 +15,10 @@ const { currentVersion, versions } = Astro.props;
|
||||
aria-haspopup="listbox"
|
||||
aria-expanded="false"
|
||||
class="flex items-center gap-1.5 px-2.5 py-1.5 text-sm font-mono
|
||||
border border-gray-200 dark:border-gray-800
|
||||
border border-gray-200 dark:border-slate-700
|
||||
rounded-md bg-transparent cursor-pointer transition-colors
|
||||
text-gray-600 dark:text-gray-400
|
||||
hover:border-sky-600 hover:text-gray-950 dark:hover:text-gray-50"
|
||||
text-gray-600 dark:text-slate-400
|
||||
hover:border-sky-600 hover:text-gray-950 dark:hover:text-slate-50"
|
||||
>
|
||||
<span>v{currentVersion}</span>
|
||||
<svg
|
||||
@@ -42,8 +42,8 @@ const { currentVersion, versions } = Astro.props;
|
||||
role="listbox"
|
||||
aria-label="Select version"
|
||||
class="absolute top-full left-0 mt-2 min-w-full p-1.5 z-50
|
||||
bg-gray-50 dark:bg-gray-900
|
||||
border border-gray-200 dark:border-gray-800
|
||||
bg-gray-50 dark:bg-slate-900
|
||||
border border-gray-200 dark:border-slate-700
|
||||
rounded-lg shadow-lg
|
||||
opacity-0 invisible -translate-y-1 transition-all duration-150
|
||||
data-[open]:opacity-100 data-[open]:visible data-[open]:translate-y-0"
|
||||
@@ -56,9 +56,9 @@ const { currentVersion, versions } = Astro.props;
|
||||
aria-selected={v === currentVersion}
|
||||
class:list={[
|
||||
"block px-3 py-2 font-mono text-sm rounded transition-colors",
|
||||
"text-gray-600 dark:text-gray-400",
|
||||
"hover:bg-gray-100 dark:hover:bg-gray-800",
|
||||
"hover:text-gray-950 dark:hover:text-gray-50",
|
||||
"text-gray-600 dark:text-slate-400",
|
||||
"hover:bg-gray-100 dark:hover:bg-slate-800",
|
||||
"hover:text-gray-950 dark:hover:text-slate-50",
|
||||
v === currentVersion && [
|
||||
"bg-sky-500/15 dark:bg-sky-500/20",
|
||||
"text-sky-600 dark:text-sky-400",
|
||||
|
||||
Reference in New Issue
Block a user