@altafusion/shell 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE +21 -0
  3. package/README.md +110 -2
  4. package/app/app.config.ts +15 -0
  5. package/app/components/ShellAsidePlaceholder.vue +16 -0
  6. package/app/components/ShellBrandLogo.vue +26 -0
  7. package/app/components/ShellLangToggle.vue +129 -0
  8. package/app/components/ShellPageHeader.vue +25 -0
  9. package/app/components/ShellSiteHeader.vue +63 -0
  10. package/app/composables/useAppNav.ts +67 -0
  11. package/app/composables/useBrandTheme.ts +37 -0
  12. package/app/composables/usePageChrome.ts +40 -0
  13. package/app/composables/useShellChrome.ts +122 -0
  14. package/app/composables/useShellFooterRight.ts +13 -0
  15. package/app/composables/useShellHeaderActions.ts +18 -0
  16. package/app/composables/useShellHeaderRight.ts +13 -0
  17. package/app/composables/useShellI18n.ts +31 -0
  18. package/app/layouts/default.vue +68 -0
  19. package/app/layouts/fullscreen.vue +20 -0
  20. package/app/layouts/minimal.vue +11 -0
  21. package/app/layouts/product.vue +23 -0
  22. package/app/plugins/brand-theme.ts +29 -0
  23. package/app/plugins/shell-brand-head.ts +30 -0
  24. package/assets/css/brand-variants.css +50 -0
  25. package/assets/css/sections/landing-header.css +249 -0
  26. package/assets/css/sections/shell-chrome.css +34 -0
  27. package/assets/css/shell-sections.css +2 -0
  28. package/components/BaseButton.vue +106 -0
  29. package/eslint.config.mjs +4 -0
  30. package/lib/fugue-content-public-config.ts +39 -0
  31. package/lib/injection-keys.ts +9 -0
  32. package/lib/locale-switch-path.ts +20 -0
  33. package/lib/nuxt-ui-icons.ts +14 -0
  34. package/nuxt.config.ts +61 -0
  35. package/package.json +58 -3
  36. package/themes/tailwind-shell.css +35 -0
  37. package/types/app-brand.ts +42 -0
  38. package/types/nuxt-shell.d.ts +38 -0
  39. package/utils/altafusionBrandTheme.ts +15 -0
  40. package/utils/formatDate.ts +13 -0
@@ -0,0 +1,122 @@
1
+ import type { Component, VNode } from 'vue'
2
+ import type { ShellBrand, ShellBrandConfig, ShellHeaderConfig } from '../../types/app-brand'
3
+ import type { AppNavItem } from './useAppNav'
4
+ import { shellDisplayNameKey } from '../../lib/injection-keys'
5
+ import { useShellI18n } from './useShellI18n'
6
+
7
+ export interface ShellChromeOptions {
8
+ /** Site header (FugueAppHeader). Default true except on `minimal` layout. */
9
+ header?: boolean
10
+ /** Footer chrome. Default true on `default` layout only. */
11
+ footer?: boolean
12
+ /** Padding on the main content region. Default true on `default` layout. */
13
+ mainPadding?: boolean
14
+ }
15
+
16
+ /**
17
+ * Shell chrome flags from route meta with layout-aware defaults.
18
+ */
19
+ export function useShellChrome() {
20
+ const route = useRoute()
21
+
22
+ const layout = computed(() => {
23
+ const name = route.meta.layout
24
+ if (name === false)
25
+ return 'none'
26
+ return typeof name === 'string'
27
+ ? name
28
+ : 'default'
29
+ })
30
+
31
+ const metaChrome = computed(() => route.meta.shell as ShellChromeOptions | undefined)
32
+
33
+ const showHeader = computed(() => {
34
+ if (layout.value === 'minimal' || layout.value === 'none')
35
+ return false
36
+ return metaChrome.value?.header ?? true
37
+ })
38
+
39
+ const showFooter = computed(() => {
40
+ if (layout.value !== 'default')
41
+ return false
42
+ return metaChrome.value?.footer ?? true
43
+ })
44
+
45
+ const mainPadding = computed(() => {
46
+ if (layout.value === 'default')
47
+ return metaChrome.value?.mainPadding ?? true
48
+ return metaChrome.value?.mainPadding ?? false
49
+ })
50
+
51
+ return {
52
+ layout,
53
+ showHeader,
54
+ showFooter,
55
+ mainPadding
56
+ }
57
+ }
58
+
59
+ export interface ShellSiteHeaderState {
60
+ title: ComputedRef<string>
61
+ brand: ComputedRef<ShellBrand>
62
+ homeTo: ComputedRef<string>
63
+ navItems: ComputedRef<AppNavItem[]>
64
+ activeNavId: ComputedRef<string | undefined>
65
+ showColorMode: ComputedRef<boolean>
66
+ visualStyle: ComputedRef<'default' | 'landing-fixed' | 'landing-static'>
67
+ headerActions: Component | (() => VNode) | null
68
+ headerRight: Component | (() => VNode) | null
69
+ }
70
+
71
+ /** Shared wiring for ShellSiteHeader — apps override the component, not this composable. */
72
+ export function useShellSiteHeader(): ShellSiteHeaderState {
73
+ const appConfig = useAppConfig()
74
+ const runtimeAppName = useRuntimeConfig().public.appName as string | undefined
75
+ const { items, activeId } = useAppNav()
76
+ const { localePath } = useShellI18n()
77
+ const headerActions = useShellHeaderActions()
78
+ const headerRight = useShellHeaderRight()
79
+ const studioDisplayName = inject(shellDisplayNameKey, ref<string | undefined>(undefined))
80
+
81
+ const homeTo = computed(() => localePath('/'))
82
+
83
+ const brand = computed<ShellBrand>(() => {
84
+ const configured = appConfig.brand as ShellBrandConfig | undefined
85
+ const header = appConfig.header as ShellHeaderConfig | undefined
86
+ const name = header?.title
87
+ ?? studioDisplayName.value
88
+ ?? configured?.name
89
+ ?? runtimeAppName
90
+ ?? 'App'
91
+
92
+ return {
93
+ name,
94
+ logo: configured?.logo,
95
+ logoAlt: configured?.logoAlt ?? name,
96
+ logoClass: configured?.logoClass,
97
+ favicon: configured?.favicon
98
+ }
99
+ })
100
+
101
+ const title = computed(() => brand.value.name)
102
+
103
+ const showColorMode = computed(
104
+ () => (appConfig.header as ShellHeaderConfig | undefined)?.showColorMode ?? true
105
+ )
106
+
107
+ const visualStyle = computed(
108
+ () => (appConfig.header as ShellHeaderConfig | undefined)?.visualStyle ?? 'default'
109
+ )
110
+
111
+ return {
112
+ title,
113
+ brand,
114
+ homeTo,
115
+ navItems: items,
116
+ activeNavId: activeId,
117
+ showColorMode,
118
+ visualStyle,
119
+ headerActions,
120
+ headerRight
121
+ }
122
+ }
@@ -0,0 +1,13 @@
1
+ import type { Component, ShallowRef, VNode } from 'vue'
2
+ import { shallowRef } from 'vue'
3
+
4
+ const footerRight = shallowRef<Component | (() => VNode) | null>(null)
5
+
6
+ /** Set trailing footer chrome (e.g. fugue-content-site Edit entry) — clear with `null` on unmount. */
7
+ export function setShellFooterRight(actions: Component | (() => VNode) | null) {
8
+ footerRight.value = actions
9
+ }
10
+
11
+ export function useShellFooterRight(): ShallowRef<Component | (() => VNode) | null> {
12
+ return footerRight
13
+ }
@@ -0,0 +1,18 @@
1
+ import type { Component, ShallowRef, VNode } from 'vue'
2
+ import { shallowRef } from 'vue'
3
+
4
+ const headerActions = shallowRef<Component | (() => VNode) | null>(null)
5
+
6
+ /** Set header actions for the current page (clear with `null` on unmount). */
7
+ export function setShellHeaderActions(actions: Component | (() => VNode) | null) {
8
+ headerActions.value = actions
9
+ }
10
+
11
+ /** @deprecated Prefer `setShellHeaderActions` from pages with lifecycle cleanup. */
12
+ export function provideShellHeaderActions(actions: Component | (() => VNode)) {
13
+ setShellHeaderActions(actions)
14
+ }
15
+
16
+ export function useShellHeaderActions(): ShallowRef<Component | (() => VNode) | null> {
17
+ return headerActions
18
+ }
@@ -0,0 +1,13 @@
1
+ import type { Component, ShallowRef, VNode } from 'vue'
2
+ import { shallowRef } from 'vue'
3
+
4
+ const headerRight = shallowRef<Component | (() => VNode) | null>(null)
5
+
6
+ /** Set trailing header chrome (e.g. editor avatar menu) — clear with `null` on unmount. */
7
+ export function setShellHeaderRight(actions: Component | (() => VNode) | null) {
8
+ headerRight.value = actions
9
+ }
10
+
11
+ export function useShellHeaderRight(): ShallowRef<Component | (() => VNode) | null> {
12
+ return headerRight
13
+ }
@@ -0,0 +1,31 @@
1
+ import { useShellFugueContentPublicConfig } from '../../lib/fugue-content-public-config'
2
+
3
+ /** Locale helpers for shell chrome when `@nuxtjs/i18n` is enabled via `@altafusion/fugue-content`. */
4
+ export function useShellI18n() {
5
+ const cms = useShellFugueContentPublicConfig()
6
+ const nuxtApp = useNuxtApp()
7
+ const isEnabled = computed(() => !!cms?.i18nEnabled)
8
+
9
+ function localePath(path: string) {
10
+ if (!isEnabled.value)
11
+ return path
12
+ const fn = nuxtApp.$localePath as ((target: string) => string) | undefined
13
+ return fn?.(path) ?? path
14
+ }
15
+
16
+ function t(key: string, fallback: string) {
17
+ if (!isEnabled.value || !key)
18
+ return fallback
19
+ const i18n = nuxtApp.$i18n as { t?: (messageKey: string) => string } | undefined
20
+ const translated = i18n?.t?.(key)
21
+ return translated && translated !== key
22
+ ? translated
23
+ : fallback
24
+ }
25
+
26
+ return {
27
+ isEnabled,
28
+ localePath,
29
+ t
30
+ }
31
+ }
@@ -0,0 +1,68 @@
1
+ <script setup lang="ts">
2
+ const { title } = usePageChrome()
3
+ const { showHeader, showFooter, mainPadding } = useShellChrome()
4
+ const { brand } = useShellSiteHeader()
5
+ const footerRight = useShellFooterRight()
6
+ </script>
7
+
8
+ <template>
9
+ <div class="shell flex min-h-dvh min-w-0 flex-col overflow-x-clip">
10
+ <ShellSiteHeader
11
+ v-if="showHeader"
12
+ class="shrink-0"
13
+ >
14
+ <template #logo>
15
+ <slot name="header-logo" />
16
+ </template>
17
+ </ShellSiteHeader>
18
+
19
+ <main
20
+ class="shell-main min-h-0 w-full flex-1"
21
+ :class="{ 'shell-main--padded': mainPadding }"
22
+ >
23
+ <ShellPageHeader v-if="title" :title="title" />
24
+ <slot />
25
+ </main>
26
+
27
+ <footer
28
+ v-if="showFooter"
29
+ class="shell-footer shrink-0"
30
+ >
31
+ <slot name="footer">
32
+ <div class="shell-footer__inner">
33
+ <p class="shell-footer__default">
34
+ © {{ new Date().getFullYear() }} {{ brand.name }}
35
+ </p>
36
+ <Component
37
+ :is="footerRight"
38
+ v-if="footerRight"
39
+ />
40
+ </div>
41
+ </slot>
42
+ </footer>
43
+ </div>
44
+ </template>
45
+
46
+ <style scoped>
47
+ .shell-main--padded {
48
+ padding: var(--space-6, 1.5rem);
49
+ }
50
+
51
+ .shell-footer {
52
+ border-top: 1px solid var(--color-border, rgb(255 255 255 / 0.12));
53
+ padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
54
+ }
55
+
56
+ .shell-footer__inner {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: space-between;
60
+ gap: var(--space-4, 1rem);
61
+ }
62
+
63
+ .shell-footer__default {
64
+ margin: 0;
65
+ font-size: var(--font-size-sm, 0.875rem);
66
+ color: var(--color-text-secondary, #a1a1aa);
67
+ }
68
+ </style>
@@ -0,0 +1,20 @@
1
+ <script setup lang="ts">
2
+ const { showHeader } = useShellChrome()
3
+ </script>
4
+
5
+ <template>
6
+ <div class="shell-fullscreen flex min-h-dvh min-w-0 flex-col overflow-x-clip">
7
+ <ShellSiteHeader
8
+ v-if="showHeader"
9
+ class="shrink-0"
10
+ >
11
+ <template #logo>
12
+ <slot name="header-logo" />
13
+ </template>
14
+ </ShellSiteHeader>
15
+
16
+ <div class="min-h-0 w-full flex-1">
17
+ <slot />
18
+ </div>
19
+ </div>
20
+ </template>
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <div class="shell-minimal">
3
+ <slot />
4
+ </div>
5
+ </template>
6
+
7
+ <style scoped>
8
+ .shell-minimal {
9
+ min-height: 100dvh;
10
+ }
11
+ </style>
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <!--
3
+ flex-1 / min-h-0: fill a parent flex column shell without Nuxt UI's default
4
+ `min-h-[calc(100vh-header)]` (that + footer forces always-on page scroll).
5
+ -->
6
+ <UMain class="min-h-0 w-full flex-1">
7
+ <UContainer>
8
+ <UPage>
9
+ <template v-if="$slots.aside" #left>
10
+ <UPageAside>
11
+ <slot name="aside" />
12
+ </UPageAside>
13
+ </template>
14
+
15
+ <!-- UPage only exposes #left / #default / #right — header belongs in default slot -->
16
+ <slot v-if="$slots.header" name="header" />
17
+ <UPageBody>
18
+ <slot />
19
+ </UPageBody>
20
+ </UPage>
21
+ </UContainer>
22
+ </UMain>
23
+ </template>
@@ -0,0 +1,29 @@
1
+ /**
2
+ * brand-theme.ts – shell layer plugin.
3
+ *
4
+ * Syncs cookie-backed brand to `html[data-brand]` and Nuxt UI primary scale (SSR + client).
5
+ */
6
+ import { resolveBrandMeta } from '@altafusion/fugue-ui/utils/brandTheme'
7
+ import { ALTAFUSION_BRAND_THEME } from '../../utils/altafusionBrandTheme'
8
+
9
+ export default defineNuxtPlugin(() => {
10
+ const { brand } = useBrandTheme()
11
+ const appConfig = useAppConfig()
12
+
13
+ const brandMeta = computed(() => resolveBrandMeta(ALTAFUSION_BRAND_THEME, brand.value))
14
+
15
+ useHead({
16
+ htmlAttrs: {
17
+ 'data-brand': computed(() => brandMeta.value.id)
18
+ }
19
+ })
20
+
21
+ watch(
22
+ brandMeta,
23
+ (meta) => {
24
+ if (appConfig.ui?.colors)
25
+ appConfig.ui.colors.primary = meta.primary
26
+ },
27
+ { immediate: true }
28
+ )
29
+ })
@@ -0,0 +1,30 @@
1
+ import type { ShellAppConfig } from '../../types/app-brand'
2
+
3
+ /**
4
+ * Default favicon + SEO from `app.config` brand/seo blocks.
5
+ */
6
+ export default defineNuxtPlugin(() => {
7
+ const { brand, seo } = useAppConfig() as ShellAppConfig
8
+
9
+ if (brand?.favicon) {
10
+ useHead({
11
+ link: [
12
+ { rel: 'icon', type: 'image/svg+xml', href: brand.favicon }
13
+ ]
14
+ })
15
+ }
16
+
17
+ if (seo?.title || seo?.description || seo?.titleTemplate) {
18
+ useSeoMeta({
19
+ ...(seo.title
20
+ ? { title: seo.title }
21
+ : {}),
22
+ ...(seo.description
23
+ ? { description: seo.description }
24
+ : {}),
25
+ ...(seo.titleTemplate
26
+ ? { titleTemplate: seo.titleTemplate }
27
+ : {})
28
+ })
29
+ }
30
+ })
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Runtime brand overrides — applied when `html[data-brand="…"]` (see `@altafusion/shell` `brand-theme` plugin).
3
+ * `default` uses base tokens from `colors.css` (blue primary). Canvas and text unchanged.
4
+ */
5
+
6
+ [data-brand='violet'] {
7
+ --brand-primary: #7c3aed;
8
+ --brand-primary-hover: #6d28d9;
9
+ --brand-primary-active: #5b21b6;
10
+
11
+ --color-primary: var(--brand-primary);
12
+ --color-primary-hover: var(--brand-primary-hover);
13
+ --color-primary-active: var(--brand-primary-active);
14
+ --color-border-focus: #8b5cf6;
15
+ }
16
+
17
+ .dark[data-brand='violet'],
18
+ [data-theme='dark'][data-brand='violet'] {
19
+ --brand-primary: #a78bfa;
20
+ --brand-primary-hover: #c4b5fd;
21
+ --brand-primary-active: #8b5cf6;
22
+
23
+ --color-primary: var(--brand-primary);
24
+ --color-primary-hover: var(--brand-primary-hover);
25
+ --color-primary-active: var(--brand-primary-active);
26
+ --color-border-focus: #a78bfa;
27
+ }
28
+
29
+ [data-brand='green'] {
30
+ --brand-primary: #16a34a;
31
+ --brand-primary-hover: #15803d;
32
+ --brand-primary-active: #166534;
33
+
34
+ --color-primary: var(--brand-primary);
35
+ --color-primary-hover: var(--brand-primary-hover);
36
+ --color-primary-active: var(--brand-primary-active);
37
+ --color-border-focus: #22c55e;
38
+ }
39
+
40
+ .dark[data-brand='green'],
41
+ [data-theme='dark'][data-brand='green'] {
42
+ --brand-primary: #4ade80;
43
+ --brand-primary-hover: #86efac;
44
+ --brand-primary-active: #22c55e;
45
+
46
+ --color-primary: var(--brand-primary);
47
+ --color-primary-hover: var(--brand-primary-hover);
48
+ --color-primary-active: var(--brand-primary-active);
49
+ --color-border-focus: #4ade80;
50
+ }
@@ -0,0 +1,249 @@
1
+ /**
2
+ * Landing section header chrome — fixed or static top bar with mobile drawer.
3
+ * Theme via CSS vars on `.landing-header`; site token files override personality.
4
+ *
5
+ * Intentionally unlayered (not @layer components): Tailwind preflight in app
6
+ * main.css sets `@layer base { * { padding: 0 } }`. While stylesheets load,
7
+ * layered link padding loses to base and menu chrome snaps (padding 0 → 1rem).
8
+ * Unlayered rules in theme.css apply with sheet 2 and beat preflight always.
9
+ */
10
+ .landing-header {
11
+ --landing-header-menu-font-size: 0.875rem;
12
+ --landing-header-menu-font-weight: 400;
13
+ --landing-header-menu-min-width: 5.95rem;
14
+ --landing-header-menu-padding-x: 1rem;
15
+ --landing-header-lang-width: 6.75rem;
16
+ --shell-header-height: 2.5rem;
17
+ /* Nav item gap — override on `.landing-header` (mobile drawer uses rem; desktop uses vw clamps). */
18
+ --landing-header-nav-gap: 0.75rem;
19
+ --landing-header-nav-gap-md: clamp(0.125rem, 0.35vw, 0.375rem);
20
+ --landing-header-nav-gap-lg: clamp(0.1875rem, 0.55vw, 0.5rem);
21
+ /* In theme.css, unlayered `header { padding: … }` also matches — reset for landing chrome. */
22
+ padding: 0;
23
+ border-bottom: 1px solid var(--border-default, var(--color-border));
24
+ background-color: color-mix(in srgb, var(--ui-bg, var(--color-background)) 95%, transparent);
25
+ -webkit-backdrop-filter: blur(4px);
26
+ backdrop-filter: blur(4px);
27
+ transition:
28
+ color 200ms,
29
+ background-color 200ms;
30
+ }
31
+
32
+ .landing-header__bar {
33
+ box-sizing: border-box;
34
+ margin-inline: auto;
35
+ display: flex;
36
+ height: var(--shell-header-height);
37
+ width: 100%;
38
+ max-width: 80rem;
39
+ align-items: center;
40
+ justify-content: space-between;
41
+ }
42
+
43
+ @media (width >= 80rem) {
44
+ .landing-header__bar {
45
+ max-width: 90rem;
46
+ }
47
+ }
48
+
49
+ .landing-header__home {
50
+ margin-inline-start: 0.5rem;
51
+ display: flex;
52
+ flex-shrink: 0;
53
+ align-items: center;
54
+ color: var(--ui-text-highlighted, var(--color-text));
55
+ }
56
+
57
+ .landing-header__menu-btn {
58
+ margin-inline-end: 0.5rem;
59
+ display: inline-flex;
60
+ padding: 0.5rem;
61
+ color: var(--ui-text-highlighted, var(--color-text));
62
+ }
63
+
64
+ .landing-header__menu-icon {
65
+ width: 1.5rem;
66
+ height: 1.5rem;
67
+ }
68
+
69
+ .landing-header nav {
70
+ display: flex;
71
+ align-items: center;
72
+ }
73
+
74
+ @media (width >= 48rem) {
75
+ .landing-header__menu-btn {
76
+ display: none;
77
+ }
78
+ }
79
+
80
+ @media (width >= 48rem) {
81
+ :root {
82
+ --shell-header-height: 3rem;
83
+ }
84
+
85
+ .landing-header {
86
+ --shell-header-height: 3rem;
87
+ }
88
+ }
89
+
90
+ .landing-header--fixed {
91
+ position: fixed;
92
+ inset-inline: 0;
93
+ top: 0;
94
+ z-index: 50;
95
+ }
96
+
97
+ .landing-header--static {
98
+ position: static;
99
+ }
100
+
101
+ .landing-header--scrolled {
102
+ background-color: color-mix(in srgb, var(--ui-bg) 90%, transparent);
103
+ }
104
+
105
+ .landing-header__logo {
106
+ height: 1.75rem;
107
+ width: auto;
108
+ }
109
+
110
+ @media (width >= 48rem) {
111
+ .landing-header__logo {
112
+ height: 2rem;
113
+ }
114
+ }
115
+
116
+ .landing-header__nav {
117
+ position: fixed;
118
+ inset-inline: 0;
119
+ bottom: 0;
120
+ top: var(--shell-header-height);
121
+ display: flex;
122
+ translate: 100% 0;
123
+ flex-direction: column;
124
+ gap: var(--landing-header-nav-gap);
125
+ background-color: var(--ui-bg);
126
+ padding: 2rem 2rem 0;
127
+ transition: translate 300ms;
128
+ }
129
+
130
+ .landing-header__nav--open {
131
+ translate: 0 0;
132
+ }
133
+
134
+ @media (width >= 48rem) {
135
+ .landing-header__nav {
136
+ position: static;
137
+ inset: auto;
138
+ translate: none;
139
+ flex-direction: row;
140
+ align-items: center;
141
+ gap: var(--landing-header-nav-gap-md);
142
+ background-color: transparent;
143
+ padding: 0;
144
+ transition: none;
145
+ }
146
+
147
+ .landing-header__nav--open {
148
+ translate: none;
149
+ }
150
+ }
151
+
152
+ @media (width >= 64rem) {
153
+ .landing-header__nav {
154
+ gap: var(--landing-header-nav-gap-lg);
155
+ }
156
+ }
157
+
158
+ .landing-header__link,
159
+ .landing-header__lang-btn {
160
+ padding-inline: var(--landing-header-menu-padding-x);
161
+ font: var(--landing-header-menu-font-weight) var(--landing-header-menu-font-size) / 1.25
162
+ var(--font-sans, ui-sans-serif, system-ui, sans-serif);
163
+ box-shadow: inset 0 0 0 1px transparent;
164
+ display: inline-flex;
165
+ flex-shrink: 0;
166
+ align-items: center;
167
+ justify-content: center;
168
+ padding-block: 0.25rem;
169
+ text-align: center;
170
+ border-radius: var(--border-radius, 0.25rem);
171
+ border: 0;
172
+ outline: none;
173
+ transition:
174
+ color 200ms,
175
+ background-color 200ms,
176
+ box-shadow 200ms;
177
+ }
178
+
179
+ .landing-header__link:hover,
180
+ .landing-header__link:active,
181
+ .landing-header__link:focus-visible,
182
+ .landing-header__lang-btn:hover,
183
+ .landing-header__lang-btn:active,
184
+ .landing-header__lang-btn:focus-visible {
185
+ box-shadow: inset 0 0 0 1px var(--color-primary);
186
+ }
187
+
188
+ @media (width >= 48rem) {
189
+ .landing-header__link {
190
+ min-width: var(--landing-header-menu-min-width);
191
+ }
192
+
193
+ .landing-header__lang-btn {
194
+ width: var(--landing-header-lang-width);
195
+ min-width: var(--landing-header-lang-width);
196
+ }
197
+ }
198
+
199
+ .landing-header__lang-btn :where(svg, .iconify, [class*='iconify']) {
200
+ font-size: 1em;
201
+ width: 1em;
202
+ height: 1em;
203
+ }
204
+
205
+ .landing-header__link {
206
+ color: var(--ui-text-highlighted, var(--color-text));
207
+ }
208
+
209
+ .landing-header__link:hover,
210
+ .landing-header__link:active {
211
+ background-color: var(--ui-bg-elevated);
212
+ color: var(--color-primary);
213
+ }
214
+
215
+ .landing-header__actions {
216
+ margin-top: 1rem;
217
+ display: flex;
218
+ flex-direction: column;
219
+ align-items: flex-start;
220
+ gap: 0.5rem;
221
+ }
222
+
223
+ @media (width >= 48rem) {
224
+ .landing-header__actions {
225
+ margin-top: 0;
226
+ margin-left: 0.5rem;
227
+ flex-direction: row;
228
+ align-items: center;
229
+ gap: 0.25rem;
230
+ }
231
+ }
232
+
233
+ .landing-header__right {
234
+ display: inline-flex;
235
+ align-items: center;
236
+ }
237
+
238
+ .landing-header__lang-btn {
239
+ box-shadow: inset 0 0 0 1px var(--color-border);
240
+ cursor: pointer;
241
+ gap: 0.25rem;
242
+ background-color: transparent;
243
+ color: var(--color-text-secondary);
244
+ }
245
+
246
+ .landing-header__lang-btn:hover,
247
+ .landing-header__lang-btn:active {
248
+ background-color: var(--ui-bg-elevated);
249
+ }