diff --git a/sass/base.scss b/sass/base.scss
index f5cbf4275..9001bcdfa 100644
--- a/sass/base.scss
+++ b/sass/base.scss
@@ -55,6 +55,7 @@ button {
/* override transition for instant hover response */
transition: color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
border-radius: prop(border-radius);
+ @include button.base;
}
pre,
@@ -113,3 +114,17 @@ select {
color: color(fg);
}
}
+
+label,
+input[type="radio"],
+input[type="checkbox"] {
+ cursor: pointer;
+}
+input[type="text"] {
+ border-radius: prop(border-radius);
+ outline: none;
+ border: 1px solid color(border);
+ &:focus {
+ border-color: color(border-focus);
+ }
+}
diff --git a/ts/deck-options/TitledContainer.svelte b/ts/components/TitledContainer.svelte
similarity index 89%
rename from ts/deck-options/TitledContainer.svelte
rename to ts/components/TitledContainer.svelte
index 00e189a35..68eaa7edf 100644
--- a/ts/deck-options/TitledContainer.svelte
+++ b/ts/components/TitledContainer.svelte
@@ -5,11 +5,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-
-
{title}
-
- {#if subtitle}
-
{subtitle}
- {/if}
-
-
-
+
+
+ {#if subtitle}
+
{subtitle}
+ {/if}
+
+
+
diff --git a/ts/graphs/RangeBox.svelte b/ts/graphs/RangeBox.svelte
index b70b8c1a6..c07760312 100644
--- a/ts/graphs/RangeBox.svelte
+++ b/ts/graphs/RangeBox.svelte
@@ -113,13 +113,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
diff --git a/ts/graphs/graphs-base.scss b/ts/graphs/graphs-base.scss
index ce9379e02..a6756ba7a 100644
--- a/ts/graphs/graphs-base.scss
+++ b/ts/graphs/graphs-base.scss
@@ -1,12 +1,10 @@
@use "root-vars";
-@use "sass/button-mixins" as button;
+@import "sass/base";
-label,
-input[type="radio"],
-input[type="checkbox"] {
- cursor: pointer;
+body {
+ padding: 0 1em 1em 1em;
}
button {
- @include button.base;
+ margin-bottom: 5px;
}
diff --git a/ts/graphs/tsconfig.json b/ts/graphs/tsconfig.json
index 6ef6ea47c..550aecf3c 100644
--- a/ts/graphs/tsconfig.json
+++ b/ts/graphs/tsconfig.json
@@ -1,5 +1,9 @@
{
"extends": "../tsconfig.json",
"include": ["*"],
- "references": [{ "path": "../lib" }, { "path": "../sveltelib" }]
+ "references": [
+ { "path": "../lib" },
+ { "path": "../components" },
+ { "path": "../sveltelib" }
+ ]
}