diff --git a/src/components/modals/Modal.scss b/src/components/modals/Modal.scss index 8f2faa1..d813a11 100644 --- a/src/components/modals/Modal.scss +++ b/src/components/modals/Modal.scss @@ -1,13 +1,28 @@ @import '../../styles.scss'; -.contents { - padding: 20px; +.jsoneditor-modal { + // styling for the select box, + // see docs: https://github.com/rob-balfre/svelte-select#styling + --height: 28px; + --clearSelectTop: 2px; + --clearSelectBottom: 2px; + --itemIsActiveBG: #3883fa; // theme-color + + .contents { + padding: 20px; - .actions { - display: flex; - flex-direction: row; - justify-content: flex-end; + .actions { + display: flex; + flex-direction: row; + justify-content: flex-end; - padding-top: $padding; + padding-top: $padding; + } } } + +// custom styling for the modal. +// FIXME: not neat to override global styles! +:global(.bg .window-wrap) { + margin-top: 10rem; +} diff --git a/src/components/modals/SortModal.scss b/src/components/modals/SortModal.scss index ed6f8ab..5d44a84 100644 --- a/src/components/modals/SortModal.scss +++ b/src/components/modals/SortModal.scss @@ -1,7 +1,7 @@ @import '../../styles.scss'; @import './Modal.scss'; -.sort-modal { +.jsoneditor-modal.sort { table { width: 100%; border-collapse: collapse; @@ -14,4 +14,4 @@ padding-bottom: $padding; } } -} \ No newline at end of file +} diff --git a/src/components/modals/SortModal.svelte b/src/components/modals/SortModal.svelte index 574e3c2..33d73c7 100644 --- a/src/components/modals/SortModal.svelte +++ b/src/components/modals/SortModal.svelte @@ -21,11 +21,11 @@ const asc = { value: 1, - label: 'asc' + label: 'ascending' } const desc = { value: -1, - label: 'desc' + label: 'descending' } const directions = [ asc, desc ] @@ -83,7 +83,7 @@ } -