Update styles to use spectrum components

This commit is contained in:
Andrew Kingston 2022-06-23 12:05:05 +01:00
parent 8bfd54bd80
commit af916df75b
2 changed files with 38 additions and 53 deletions

View File

@ -1,9 +1,7 @@
<script>
import "@spectrum-css/typography/dist/index-vars.css"
// Sizes
export let size = "M"
export let serif = false
</script>

View File

@ -131,12 +131,8 @@
chooseNextModal()
}}
>
<Layout noPadding gap="M">
<Layout noPadding>
<Body size="S">
All apps need data. You can connect to a data source below, or add
data to your app using Budibase's built-in database.
</Body>
<Layout noPadding gap="XS">
<Body size="S">Get started with Budibase DB</Body>
<div
class:selected={integration.type === IntegrationTypes.INTERNAL}
on:click={() => selectIntegration(IntegrationTypes.INTERNAL)}
@ -145,15 +141,15 @@
<div class="item-body with-type">
<svelte:component this={ICONS.BUDIBASE} height="20" width="20" />
<div class="text">
<div class="name">Budibase DB</div>
<div class="type">Non-relational</div>
<Heading size="XXS">Budibase DB</Heading>
<Detail size="S" class="type">Non-relational</Detail>
</div>
</div>
</div>
</Layout>
<Layout gap="XS" noPadding>
<div class="type">Connect to data source</div>
<Layout noPadding gap="XS">
<Body size="S">Connect to an external data source</Body>
<div class="item-list">
{#each Object.entries(integrations).filter(([key]) => key !== IntegrationTypes.INTERNAL) as [integrationType, schema]}
<div
@ -168,9 +164,9 @@
width="20"
/>
<div class="text">
<div class="name">{schema.friendlyName}</div>
<Heading size="XXS">{schema.friendlyName}</Heading>
{#if schema.type}
<div class="type">{schema.type || ""}</div>
<Detail size="S">{schema.type || ""}</Detail>
{/if}
</div>
</div>
@ -178,7 +174,6 @@
{/each}
</div>
</Layout>
</Layout>
</ModalContent>
</Modal>
@ -221,15 +216,7 @@
margin-top: 4px;
}
.name {
color: var(--spectrum-global-color-gray-900);
font-weight: 600;
}
.type {
font-weight: 600;
margin-top: 4px;
text-transform: uppercase;
font-size: 11px;
.text :global(.spectrum-Detail) {
color: var(--spectrum-global-color-gray-700);
}
</style>