Anki/ts/routes/deck-options/DateInput.svelte
llama a2a1f597be
Style the fsrs params input (#3997)
* style textarea and date inputs

* remove redundant date input styling
2025-05-15 16:30:17 +10:00

33 lines
807 B
Svelte

<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script>
import Col from "$lib/components/Col.svelte";
import ConfigInput from "$lib/components/ConfigInput.svelte";
import Row from "$lib/components/Row.svelte";
export let date;
$: date = date ? date : "1970-01-01";
</script>
<div>
<ConfigInput>
<Row --cols={13}>
<Col --col-size={7} breakpoint="xs">
<slot />
</Col>
<Col --col-size={6} breakpoint="xs">
<input bind:value={date} type="date" />
</Col>
</Row>
</ConfigInput>
</div>
<style>
input {
width: 100%;
-webkit-appearance: none;
appearance: none;
}
</style>