mirror of
https://github.com/hunvreus/basecoat.git
synced 2026-11-17 15:38:30 +00:00
Rename Cloudflare worker to basecoat
This commit is contained in:
@@ -17,6 +17,52 @@
|
||||
@apply visible opacity-100;
|
||||
}
|
||||
|
||||
.docs-search-trigger {
|
||||
@apply hidden h-8 w-full min-w-0 max-w-72 cursor-text items-center gap-x-2 text-muted-foreground outline-none transition-colors md:flex;
|
||||
|
||||
svg {
|
||||
@apply size-4 shrink-0;
|
||||
}
|
||||
.kbd {
|
||||
@apply -me-1.5 ms-auto;
|
||||
}
|
||||
}
|
||||
|
||||
:root:not([data-style-variant]),
|
||||
:root[data-style-variant='nova'] {
|
||||
.docs-search-trigger {
|
||||
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 rounded-lg border bg-transparent px-2.5 py-1 text-sm focus-visible:ring-3;
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-style-variant='vega'] .docs-search-trigger {
|
||||
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 rounded-md border bg-transparent px-2.5 py-1 text-sm shadow-xs focus-visible:ring-3;
|
||||
}
|
||||
|
||||
:root[data-style-variant='maia'] .docs-search-trigger {
|
||||
@apply border-input bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 rounded-4xl border px-3 py-1 text-sm focus-visible:ring-[3px];
|
||||
}
|
||||
|
||||
:root[data-style-variant='lyra'] .docs-search-trigger {
|
||||
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 rounded-none border bg-transparent px-2.5 py-1 text-xs focus-visible:ring-1;
|
||||
}
|
||||
|
||||
:root[data-style-variant='mira'] .docs-search-trigger {
|
||||
@apply border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 rounded-md border px-2 py-0.5 text-xs/relaxed focus-visible:ring-2;
|
||||
}
|
||||
|
||||
:root[data-style-variant='luma'] .docs-search-trigger {
|
||||
@apply bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 rounded-3xl border border-transparent px-3 py-1 text-sm focus-visible:ring-3;
|
||||
}
|
||||
|
||||
:root[data-style-variant='sera'] .docs-search-trigger {
|
||||
@apply focus-visible:border-b-ring rounded-none border border-transparent border-b-input bg-transparent px-0 py-1 text-sm transition-[color,border-color];
|
||||
}
|
||||
|
||||
:root[data-style-variant='rhea'] .docs-search-trigger {
|
||||
@apply bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 rounded-2xl border border-transparent px-2.5 py-1 text-sm duration-200 focus-visible:ring-3;
|
||||
}
|
||||
|
||||
.content {
|
||||
pre {
|
||||
@apply grid max-h-[650px] overflow-y-auto rounded-lg bg-muted/40 text-sm;
|
||||
|
||||
@@ -33,12 +33,12 @@
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="relative text-muted-foreground bg-background dark:bg-input/30 border-input hidden h-8 w-full min-w-0 max-w-72 items-center rounded-md border px-3 py-1 gap-x-2 text-sm outline-none cursor-text focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] md:flex"
|
||||
class="docs-search-trigger"
|
||||
onclick="document.getElementById('command-search').showModal(); document.getElementById('command-search').querySelector('header input')?.focus();"
|
||||
>
|
||||
{% lucide "search", { "class": "size-4" } %}
|
||||
{% lucide "search" %}
|
||||
Search the docs...
|
||||
<kbd class="kbd ml-auto -mr-1.5">⌘K</kbd>
|
||||
<kbd class="kbd">⌘K</kbd>
|
||||
</button>
|
||||
|
||||
<select class="select h-8 leading-none" id="theme-select" aria-label="Theme">
|
||||
|
||||
@@ -7,19 +7,18 @@
|
||||
</header>
|
||||
<div class="p-4">
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<button class="btn-outline" hx-trigger="click" hx-disinherit="hx-select hx-target hx-swap" hx-get="/fragments/toast/success" hx-target="#toaster" hx-swap="beforeend">
|
||||
<button class="btn-outline" hx-trigger="click" hx-select="unset" hx-get="/fragments/toast/success" hx-target="#toaster" hx-swap="beforeend">
|
||||
Success
|
||||
</button>
|
||||
<button class="btn-outline" hx-trigger="click" hx-disinherit="hx-select hx-target hx-swap" hx-get="/fragments/toast/error" hx-target="#toaster" hx-swap="beforeend">
|
||||
<button class="btn-outline" hx-trigger="click" hx-select="unset" hx-get="/fragments/toast/error" hx-target="#toaster" hx-swap="beforeend">
|
||||
Error
|
||||
</button>
|
||||
<button class="btn-outline" hx-trigger="click" hx-disinherit="hx-select hx-target hx-swap" hx-get="/fragments/toast/info" hx-target="#toaster" hx-swap="beforeend">
|
||||
<button class="btn-outline" hx-trigger="click" hx-select="unset" hx-get="/fragments/toast/info" hx-target="#toaster" hx-swap="beforeend">
|
||||
Info
|
||||
</button>
|
||||
<button class="btn-outline" hx-trigger="click" hx-disinherit="hx-select hx-target hx-swap" hx-get="/fragments/toast/warning" hx-target="#toaster" hx-swap="beforeend">
|
||||
<button class="btn-outline" hx-trigger="click" hx-select="unset" hx-get="/fragments/toast/warning" hx-target="#toaster" hx-swap="beforeend">
|
||||
Warning
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
+1
-8841
File diff suppressed because one or more lines are too long
+1
-8782
File diff suppressed because one or more lines are too long
+1
-8778
File diff suppressed because one or more lines are too long
+1
-8836
File diff suppressed because one or more lines are too long
+1
-8837
File diff suppressed because one or more lines are too long
+1
-8860
File diff suppressed because one or more lines are too long
+1
-8610
File diff suppressed because one or more lines are too long
+1
-8790
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -33,7 +33,7 @@ toc:
|
||||
{% set code_server_side %}<button
|
||||
class="btn-outline"
|
||||
hx-trigger="click"
|
||||
hx-disinherit="hx-select hx-target hx-swap"
|
||||
hx-select="unset"
|
||||
hx-get="/fragments/toast/success"
|
||||
hx-target="#toaster"
|
||||
hx-swap="beforeend"
|
||||
@@ -278,4 +278,4 @@ toc:
|
||||
{ tab: "toaster()", panel: code_block(raw_code_toaster, "jinja", class="") },
|
||||
{ tab: "toast()", panel: code_block(raw_code_toast, "jinja", class="") }
|
||||
] %}
|
||||
{{ tabs(id="macros", tabsets=tabsets) }}
|
||||
{{ tabs(id="macros", tabsets=tabsets) }}
|
||||
|
||||
+23
-23
@@ -90,28 +90,28 @@ layout: layouts/layout.njk
|
||||
<h2>Cookie Settings</h2>
|
||||
<p>Manage your cookie settings here.</p>
|
||||
</header>
|
||||
<section class="text-sm grid gap-6">
|
||||
<label class="label flex items-center justify-between gap-2 text-sm font-normal normal-case tracking-normal">
|
||||
<div class="flex flex-col gap-0.5">
|
||||
<div class="font-medium">Strictly Necessary</div>
|
||||
<div class="text-muted-foreground">These cookies are essential in order to use the website and use its features.</div>
|
||||
</div>
|
||||
<input type="checkbox" role="switch" class="input" checked />
|
||||
</label>
|
||||
<label class="label flex items-center justify-between gap-2 text-sm font-normal normal-case tracking-normal">
|
||||
<div class="flex flex-col gap-0.5">
|
||||
<div class="font-medium">Functional Cookies</div>
|
||||
<div class="text-muted-foreground">These cookies allow the website to provide personalized functionality.</div>
|
||||
</div>
|
||||
<input type="checkbox" role="switch" class="input" />
|
||||
</label>
|
||||
<label class="label flex items-center justify-between gap-2 text-sm font-normal normal-case tracking-normal">
|
||||
<div class="flex flex-col gap-0.5">
|
||||
<div class="font-medium">Performance Cookies</div>
|
||||
<div class="text-muted-foreground">These cookies help to improve the performance of the website.</div>
|
||||
</div>
|
||||
<input type="checkbox" role="switch" class="input" />
|
||||
</label>
|
||||
<section class="grid gap-6">
|
||||
<div role="group" class="field" data-orientation="horizontal">
|
||||
<section>
|
||||
<label for="cookie-necessary">Strictly Necessary</label>
|
||||
<p>These cookies are essential in order to use the website and use its features.</p>
|
||||
</section>
|
||||
<input id="cookie-necessary" type="checkbox" role="switch" class="input" checked aria-label="Strictly Necessary" />
|
||||
</div>
|
||||
<div role="group" class="field" data-orientation="horizontal">
|
||||
<section>
|
||||
<label for="cookie-functional">Functional Cookies</label>
|
||||
<p>These cookies allow the website to provide personalized functionality.</p>
|
||||
</section>
|
||||
<input id="cookie-functional" type="checkbox" role="switch" class="input" aria-label="Functional Cookies" />
|
||||
</div>
|
||||
<div role="group" class="field" data-orientation="horizontal">
|
||||
<section>
|
||||
<label for="cookie-performance">Performance Cookies</label>
|
||||
<p>These cookies help to improve the performance of the website.</p>
|
||||
</section>
|
||||
<input id="cookie-performance" type="checkbox" role="switch" class="input" aria-label="Performance Cookies" />
|
||||
</div>
|
||||
</section>
|
||||
<footer>
|
||||
<button type="button" class="btn-outline w-full">Save preferences</button>
|
||||
@@ -333,4 +333,4 @@ layout: layouts/layout.njk
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user