[ui] DomiUi: Rosea's buttons and town search on @domi/ui v1.0.4 (CPAL-1.0, vendored by its own tool into packages/domi-ui), the licence credit at the foot of every screen, the README's copy line and public-domain sources; before-and-after pictures by pnpm look:shots
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { Button } from '@domi/ui';
|
||||
import type { NamedPlace } from '@rosea/engine';
|
||||
import { en } from '../copy/en.js';
|
||||
import SunsetLine from './SunsetLine.svelte';
|
||||
@@ -87,8 +88,8 @@
|
||||
<p>{en.sunset.noTown}</p>
|
||||
{/if}
|
||||
<div class="choices">
|
||||
<button type="button" onclick={(e) => { e.stopPropagation(); showing += 1; }}>{en.chair.again}</button>
|
||||
<button type="button" class="quiet" onclick={(e) => { e.stopPropagation(); leave(); }}>{en.chair.back}</button>
|
||||
<Button onclick={(e) => { e.stopPropagation(); showing += 1; }}>{en.chair.again}</Button>
|
||||
<Button variant="quiet" onclick={(e) => { e.stopPropagation(); leave(); }}>{en.chair.back}</Button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -186,27 +187,25 @@
|
||||
|
||||
.choices {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
button {
|
||||
font: inherit;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-radius: 999px;
|
||||
border: 1px solid #f4d58d;
|
||||
background: transparent;
|
||||
color: #fbf6f1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.quiet {
|
||||
border: none;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
button:focus-visible {
|
||||
outline: 2px solid #f4d58d;
|
||||
outline-offset: 2px;
|
||||
/* @domi/ui's buttons on dusk, whatever the page's theme: the plate is the evening's own glass with the
|
||||
sunset's gold edge, as Rosea's button was (domi-ui.md D5). */
|
||||
.choices {
|
||||
--domi-fg: var(--ink);
|
||||
--domi-fg-2: var(--ink-soft);
|
||||
--domi-edge: #f4d58d;
|
||||
--domi-accent: #f4d58d;
|
||||
--domi-plate: linear-gradient(180deg, #ffffff1f, #ffffff0a);
|
||||
--domi-plate-hover: linear-gradient(180deg, #ffffff2e, #ffffff12);
|
||||
--domi-plate-press: linear-gradient(180deg, #00000033, #ffffff0a);
|
||||
--domi-plate-shadow: inset 0 1px 0 #ffffff33, 0 8px 18px -12px #000000cc;
|
||||
--domi-plate-shadow-hover: inset 0 1px 0 #ffffff47, 0 10px 22px -12px #000000e6;
|
||||
--domi-tint: #f4d58d24;
|
||||
--domi-tint-strong: #f4d58d38;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
|
||||
Reference in New Issue
Block a user