264561cd0d
* Redesign deck config, swap tooltips for help modals, link to manual * Replace canvas-inset with canvas-code for custom scheduling * Make section header link to manual too * Include elevation Sass library * Remove two unused exports * Fix tabbed spinboxes * Update ftl/core/deck-config.ftl * Update ftl/core/deck-config.ftl * Fix format * Make border-radius and box-shadow more subtle * Fix margin for vertical aspect ratio * Make direct hover on info badge apply effect instantly * Add redirect line to manual underneath chapter
56 lines
1.3 KiB
Svelte
56 lines
1.3 KiB
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="ts">
|
|
import Col from "../components/Col.svelte";
|
|
import Row from "../components/Row.svelte";
|
|
import ConfigInput from "./ConfigInput.svelte";
|
|
import RevertButton from "./RevertButton.svelte";
|
|
import SettingTitle from "./SettingTitle.svelte";
|
|
|
|
export let value: string;
|
|
export let title: string;
|
|
</script>
|
|
|
|
<Row>
|
|
<Col>
|
|
<div class="text">
|
|
<ConfigInput>
|
|
<SettingTitle on:click>{title}</SettingTitle>
|
|
<RevertButton slot="revert" bind:value defaultValue="" />
|
|
</ConfigInput>
|
|
</div>
|
|
</Col>
|
|
</Row>
|
|
|
|
<textarea
|
|
class="card-state-customizer form-control"
|
|
bind:value
|
|
spellcheck="false"
|
|
autocapitalize="none"
|
|
/>
|
|
|
|
<style lang="scss">
|
|
.text {
|
|
width: 100%;
|
|
min-height: 2em;
|
|
}
|
|
|
|
.card-state-customizer {
|
|
background-color: var(--canvas-code);
|
|
border: 1px solid var(--border-subtle);
|
|
width: 100%;
|
|
height: 10em;
|
|
font-family: monospace;
|
|
}
|
|
|
|
@supports (-webkit-touch-callout: none) {
|
|
// mobile compat
|
|
.card-state-customizer {
|
|
font-size: 16px;
|
|
overflow-x: hidden;
|
|
}
|
|
}
|
|
</style>
|