From 3165f3b3465a9f408e850b9cadb2bbce9784966f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 22 Apr 2021 13:59:00 +0100 Subject: [PATCH] Improve builder settings modal styles --- packages/bbui/src/Divider/Divider.svelte | 13 +++++++ packages/bbui/src/Modal/ModalContent.svelte | 3 ++ packages/bbui/src/bbui.css | 39 ++----------------- .../components/settings/ThemeEditor.svelte | 16 +------- .../start/BuilderSettingsModal.svelte | 38 +++++++++--------- 5 files changed, 39 insertions(+), 70 deletions(-) diff --git a/packages/bbui/src/Divider/Divider.svelte b/packages/bbui/src/Divider/Divider.svelte index 26e2b2677c..cc50225d2f 100644 --- a/packages/bbui/src/Divider/Divider.svelte +++ b/packages/bbui/src/Divider/Divider.svelte @@ -5,12 +5,25 @@ export let s = false export let vertical = false + export let noMargin = false + export let noGrid = false $: useDefault = ![l, m, s].includes(true)
+ + diff --git a/packages/bbui/src/Modal/ModalContent.svelte b/packages/bbui/src/Modal/ModalContent.svelte index c12b9417cf..47848dc44f 100644 --- a/packages/bbui/src/Modal/ModalContent.svelte +++ b/packages/bbui/src/Modal/ModalContent.svelte @@ -84,6 +84,9 @@ .spectrum-Dialog-content { overflow: visible; } + .spectrum-Dialog-heading { + font-family: var(--spectrum-alias-body-text-font-family); + } .spectrum-Dialog-buttonGroup { gap: var(--spectrum-global-dimension-static-size-200); diff --git a/packages/bbui/src/bbui.css b/packages/bbui/src/bbui.css index ba3147cd5d..01d5c80f1b 100644 --- a/packages/bbui/src/bbui.css +++ b/packages/bbui/src/bbui.css @@ -1,32 +1,3 @@ -.svench-content { - color: #666; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, "Roboto", - Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; -} - -h1.svench-content { - font-size: 2em; -} -h2.svench-content { - font-size: 1.66em; -} -h3.svench-content { - font-size: 1.33em; -} -h4.svench-content { - font-size: 1.33em; - font-weight: normal; -} -h5.svench-content { - font-size: 1em; - font-weight: bold; -} -h6.svench-content { - font-size: 1em; - font-weight: normal; - font-style: italic; -} - :root { --background: #ffffff; --ink: #000000; @@ -127,7 +98,6 @@ h6.svench-content { h1 { font-size: 3rem; - font-family: var(--font-sans); font-weight: 700; text-rendering: var(--text-render); -webkit-font-smoothing: var(--text-smooth); @@ -136,7 +106,6 @@ h1 { h2 { font-size: 2.25rem; - font-family: var(--font-sans); font-weight: 600; text-rendering: var(--text-render); -webkit-font-smoothing: var(--text-smooth); @@ -145,7 +114,6 @@ h2 { h3 { font-size: 1.7rem; - font-family: var(--font-sans); font-weight: 600; text-rendering: var(--text-render); -webkit-font-smoothing: var(--text-smooth); @@ -154,7 +122,6 @@ h3 { h4 { font-size: var(--font-size-xl); - font-family: var(--font-sans); font-weight: 500; text-rendering: var(--text-render); -webkit-font-smoothing: var(--text-smooth); @@ -163,7 +130,6 @@ h4 { h5 { font-size: var(--font-size-l); - font-family: var(--font-sans); font-weight: 500; text-rendering: var(--text-render); -webkit-font-smoothing: var(--text-smooth); @@ -172,7 +138,6 @@ h5 { h6 { font-size: var(--font-size-m); - font-family: var(--font-sans); font-weight: 500; text-rendering: var(--text-render); -webkit-font-smoothing: var(--text-smooth); @@ -191,3 +156,7 @@ p { a { text-decoration: none; } + +.spectrum { + --spectrum-alias-body-text-font-family: "Inter", sans-serif; +} \ No newline at end of file diff --git a/packages/builder/src/components/settings/ThemeEditor.svelte b/packages/builder/src/components/settings/ThemeEditor.svelte index d715a17d70..9c7235ce62 100644 --- a/packages/builder/src/components/settings/ThemeEditor.svelte +++ b/packages/builder/src/components/settings/ThemeEditor.svelte @@ -5,18 +5,4 @@ let showAdvanced = false -
-
- -
-
- - + diff --git a/packages/builder/src/components/start/BuilderSettingsModal.svelte b/packages/builder/src/components/start/BuilderSettingsModal.svelte index 33151041a9..8f1b51a9db 100644 --- a/packages/builder/src/components/start/BuilderSettingsModal.svelte +++ b/packages/builder/src/components/start/BuilderSettingsModal.svelte @@ -1,8 +1,15 @@ -
Theme
+ Theme -
Hosting
-

+ + Hosting + This section contains settings that relate to the deployment and hosting of apps made in this builder. -

+ {/if} -
Analytics
-

+ + Analytics + If you would like to send analytics that help us make budibase better, please let us know below. -

+
- -