[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 { GARDENER_FIELDS, GARDENER_OPTIONS, type Gardener as Look } from '@rosea/schema';
|
||||
import { untrack } from 'svelte';
|
||||
import { en } from '../copy/en.js';
|
||||
@@ -53,8 +54,8 @@
|
||||
</fieldset>
|
||||
{/each}
|
||||
<div class="actions">
|
||||
<button type="submit" class="primary">{en.gardener.done}</button>
|
||||
{#if oncancel}<button type="button" class="quiet" onclick={oncancel}>{en.scene.close}</button>{/if}
|
||||
<Button type="submit" variant="primary">{en.gardener.done}</Button>
|
||||
{#if oncancel}<Button variant="quiet" onclick={oncancel}>{en.scene.close}</Button>{/if}
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
@@ -145,33 +146,9 @@
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
button {
|
||||
font: inherit;
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--rose);
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.primary {
|
||||
background: var(--rose);
|
||||
color: var(--paper);
|
||||
}
|
||||
|
||||
.quiet {
|
||||
border: none;
|
||||
text-decoration: underline;
|
||||
color: var(--rose);
|
||||
}
|
||||
|
||||
button:focus-visible {
|
||||
outline: 2px solid var(--rose);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user