mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
tweak left margin, and checkbox top margin
This commit is contained in:
parent
19dd739764
commit
dbc043fd50
2 changed files with 11 additions and 2 deletions
|
@ -12,8 +12,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
export let id: string | undefined = undefined;
|
export let id: string | undefined = undefined;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.checkbox-outer {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<ConfigEntry {id} label="" wholeLine={true} bind:value {defaultValue}>
|
<ConfigEntry {id} label="" wholeLine={true} bind:value {defaultValue}>
|
||||||
<div>
|
<div class="checkbox-outer">
|
||||||
<label> <input type="checkbox" bind:checked={value} /> {label} </label>
|
<label> <input type="checkbox" bind:checked={value} /> {label} </label>
|
||||||
{#if tooltip}
|
{#if tooltip}
|
||||||
<HelpPopup html={tooltip} />
|
<HelpPopup html={tooltip} />
|
||||||
|
|
|
@ -24,8 +24,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.outer {
|
.outer {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 5fr 2fr;
|
grid-template-columns: 7fr 3fr;
|
||||||
grid-row-gap: 0.5em;
|
grid-row-gap: 0.5em;
|
||||||
|
// the right margin has an indent to allow for the undo
|
||||||
|
// buttons; add the same indent on the left for balance
|
||||||
|
padding-left: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-grid-width {
|
.full-grid-width {
|
||||||
|
|
Loading…
Reference in a new issue