Update font styles to allow for easy customisation

This commit is contained in:
Andrew Kingston 2022-12-14 15:33:16 +00:00
parent 3e68bf1cc2
commit 2a3da7a4f7
15 changed files with 19 additions and 15 deletions

View File

@ -34,7 +34,6 @@
display: none; display: none;
} }
.main { .main {
font-family: var(--font-sans);
padding: var(--spacing-xl); padding: var(--spacing-xl);
} }
.main :global(textarea) { .main :global(textarea) {

View File

@ -264,7 +264,7 @@
max-height: 100%; max-height: 100%;
} }
:global(.flatpickr-calendar) { :global(.flatpickr-calendar) {
font-family: "Source Sans Pro", sans-serif; font-family: var(--font-sans);
} }
.is-disabled { .is-disabled {
pointer-events: none !important; pointer-events: none !important;

View File

@ -26,7 +26,6 @@
padding: 40px; padding: 40px;
background-color: var(--purple); background-color: var(--purple);
color: white; color: white;
font-family: var(--font-sans);
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
user-select: none; user-select: none;

View File

@ -19,7 +19,6 @@
<style> <style>
p, span { p, span {
font-family: var(--font-sans);
font-size: var(--font-size-s); font-size: var(--font-size-s);
} }

View File

@ -151,7 +151,8 @@
overflow: visible; overflow: visible;
} }
.spectrum-Dialog-heading { .spectrum-Dialog-heading {
font-family: var(--font-sans); font-family: var(--font-accent);
font-weight: 600;
} }
.spectrum-Dialog-heading.noDivider { .spectrum-Dialog-heading.noDivider {
margin-bottom: 12px; margin-bottom: 12px;

View File

@ -42,7 +42,6 @@
<style> <style>
p { p {
margin: 0; margin: 0;
font-family: var(--font-sans);
font-size: var(--font-size-s); font-size: var(--font-size-s);
} }
p.error { p.error {

View File

@ -29,7 +29,6 @@
font-size: var(--font-size-m); font-size: var(--font-size-m);
margin: 0 0 var(--spacing-l) 0; margin: 0 0 var(--spacing-l) 0;
font-weight: 600; font-weight: 600;
font-family: var(--font-sans);
} }
.input-group-column { .input-group-column {

View File

@ -15,3 +15,9 @@
> >
<slot /> <slot />
</h1> </h1>
<style>
h1 {
font-family: var(--font-accent);
}
</style>

View File

@ -40,12 +40,15 @@
--rounded-medium: 8px; --rounded-medium: 8px;
--rounded-large: 16px; --rounded-large: 16px;
--font-sans: Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, "Inter",
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", --font-sans: "Source Sans Pro", -apple-system, BlinkMacSystemFont, Segoe UI, "Inter",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; "Helvetica Neue", Arial, "Noto Sans", sans-serif;
--font-accent: "Source Sans Pro", -apple-system, BlinkMacSystemFont, Segoe UI, "Inter",
"Helvetica Neue", Arial, "Noto Sans", sans-serif;
--font-serif: "Georgia", Cambria, Times New Roman, Times, serif; --font-serif: "Georgia", Cambria, Times New Roman, Times, serif;
--font-mono: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", --font-mono: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
monospace; monospace;
--spectrum-alias-body-text-font-family: var(--font-sans);
font-size: 16px; font-size: 16px;
--font-size-xs: 0.75rem; --font-size-xs: 0.75rem;

View File

@ -135,7 +135,7 @@
div :global(.CodeMirror) { div :global(.CodeMirror) {
height: var(--code-mirror-height); height: var(--code-mirror-height);
min-height: var(--code-mirror-height); min-height: var(--code-mirror-height);
font-family: monospace; font-family: var(--font-mono);
line-height: 1.3; line-height: 1.3;
border: var(--spectrum-alias-border-size-thin) solid; border: var(--spectrum-alias-border-size-thin) solid;
border-color: var(--spectrum-alias-border-color); border-color: var(--spectrum-alias-border-color);

View File

@ -469,7 +469,7 @@
} }
.binding__type { .binding__type {
font-family: monospace; font-family: var(--font-mono);
background-color: var(--spectrum-global-color-gray-200); background-color: var(--spectrum-global-color-gray-200);
border-radius: var(--border-radius-s); border-radius: var(--border-radius-s);
padding: 2px 4px; padding: 2px 4px;

View File

@ -185,7 +185,7 @@
div :global(.CodeMirror) { div :global(.CodeMirror) {
height: var(--code-mirror-height) !important; height: var(--code-mirror-height) !important;
border-radius: var(--border-radius-s); border-radius: var(--border-radius-s);
font-family: monospace !important; font-family: var(--font-mono);
line-height: 1.3; line-height: 1.3;
} }
</style> </style>

View File

@ -23,7 +23,6 @@ body {
--grey-8: var(--spectrum-global-color-gray-800); --grey-8: var(--spectrum-global-color-gray-800);
--grey-9: var(--spectrum-global-color-gray-900); --grey-9: var(--spectrum-global-color-gray-900);
font-family: var(--font-sans);
color: var(--ink); color: var(--ink);
background-color: var(--background-alt); background-color: var(--background-alt);
} }

View File

@ -184,7 +184,6 @@
</div> </div>
{#if !$adminStore.cloud && $auth.isAdmin} {#if !$adminStore.cloud && $auth.isAdmin}
<Button <Button
size="S"
cta cta
on:click={() => $goto("/builder/portal/settings/upgrade")} on:click={() => $goto("/builder/portal/settings/upgrade")}
> >

View File

@ -178,6 +178,7 @@
<div class="spectrum-ButtonGroup spectrum-Settings-buttonGroup"> <div class="spectrum-ButtonGroup spectrum-Settings-buttonGroup">
<Button cta on:click={saveSmtp}>Save</Button> <Button cta on:click={saveSmtp}>Save</Button>
<Button <Button
newStyles
secondary secondary
on:click={deleteSmtp} on:click={deleteSmtp}
disabled={!$admin.checklist.smtp.checked} disabled={!$admin.checklist.smtp.checked}