Merge pull request #192 from Budibase/style-update-to-backend-primary-screen

Styling changes
This commit is contained in:
Joe 2020-04-02 15:14:26 +01:00 committed by GitHub
commit 8a95124e74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 57 additions and 19 deletions

View File

@ -37,7 +37,7 @@
.content { .content {
flex: 1 1 auto; flex: 1 1 auto;
margin: 40px 40px; margin: 20px 40px;
} }
.nav { .nav {

View File

@ -46,7 +46,8 @@
.button:hover { .button:hover {
cursor: pointer; cursor: pointer;
font-weight: 700; font-weight: 600;
filter:saturate(90%);
} }
.button:disabled { .button:disabled {

View File

@ -0,0 +1,10 @@
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="100%"
height="100%">
<path fill="none" d="M0 0h24v24H0z"/>
<path
fill="rgba(0,3,51,1)"
d="M12 14l-4-4h8z" />
</svg>

After

Width:  |  Height:  |  Size: 228 B

View File

@ -4,6 +4,7 @@ export { default as TerminalIcon } from "./Terminal.svelte"
export { default as InputIcon } from "./Input.svelte" export { default as InputIcon } from "./Input.svelte"
export { default as ImageIcon } from "./Image.svelte" export { default as ImageIcon } from "./Image.svelte"
export { default as ArrowDownIcon } from "./ArrowDown.svelte" export { default as ArrowDownIcon } from "./ArrowDown.svelte"
export { default as DownArrowIcon } from "./DownArrow.svelte"
export { default as CircleIndicator } from "./CircleIndicator.svelte" export { default as CircleIndicator } from "./CircleIndicator.svelte"
export { default as PencilIcon } from "./Pencil.svelte" export { default as PencilIcon } from "./Pencil.svelte"
export { default as EventsIcon } from "./Events.svelte" export { default as EventsIcon } from "./Events.svelte"

View File

@ -19,22 +19,22 @@
<style> <style>
.select-container { .select-container {
font-size: 0.9rem; font-size: 14px;
color: var(--secondary50); color: var(--secondary60);
font-weight: bold; font-weight: bold;
position: relative; position: relative;
max-width: 300px; max-width: 400px;
min-width: 200px; min-width: 275px;
} }
.adjusted { .adjusted {
padding-left: 2.5em; padding-left: 30px;
} }
i { i {
position: absolute; position: absolute;
left: 8px; left: 10px;
top: 8px; top: 10px;
} }
select { select {
@ -42,8 +42,9 @@
display: block; display: block;
font-family: sans-serif; font-family: sans-serif;
font-weight: 400; font-weight: 400;
font-size: 14px;
color: #000333; color: #000333;
padding: 0 2.6em 0em 1.4em; padding: 0 40px 0px 20px;
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
box-sizing: border-box; box-sizing: border-box;
@ -51,7 +52,7 @@
-moz-appearance: none; -moz-appearance: none;
-webkit-appearance: none; -webkit-appearance: none;
appearance: none; appearance: none;
background: var(--lightslate); background: var(--white);
} }
.arrow { .arrow {
@ -62,6 +63,6 @@
width: 30px; width: 30px;
height: 30px; height: 30px;
pointer-events: none; pointer-events: none;
color: var(--primary100); color: var(--secondary100);
} }
</style> </style>

View File

@ -63,7 +63,7 @@
<div class="root"> <div class="root">
<div class="node-view"> <div class="node-view">
<div class="database-actions"> <div class="database-actions">
<div class="budibase__label--big">{breadcrumbs}</div> <div class="breadcrumb">{breadcrumbs}</div>
{#if $backendUiStore.selectedDatabase.id} {#if $backendUiStore.selectedDatabase.id}
<ActionButton <ActionButton
primary primary
@ -92,6 +92,13 @@
flex: 1 1 auto; flex: 1 1 auto;
} }
.breadcrumb {
text-transform: uppercase;
font-size: 12px;
font-weight: 500;
color: var(--secondary60);
}
.database-actions { .database-actions {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@ -99,9 +99,9 @@
<section> <section>
<div class="table-controls"> <div class="table-controls">
<h4 class="budibase__title--3"> <h2 class="title">
{takeRight(2, $backendUiStore.breadcrumbs).join(' / ')} {takeRight(2, $backendUiStore.breadcrumbs).join(' / ')}
</h4> </h2>
<Select icon="ri-eye-line" bind:value={$backendUiStore.selectedView}> <Select icon="ri-eye-line" bind:value={$backendUiStore.selectedView}>
{#each views as view} {#each views as view}
<option value={view}>{view.name}</option> <option value={view}>{view.name}</option>
@ -166,6 +166,18 @@
</section> </section>
<style> <style>
.title {
font-size: 24px;
font-weight: 600;
text-rendering: optimizeLegibility;
text-transform: capitalize;
}
.select {
background: white;
}
table { table {
border: 1px solid #ccc; border: 1px solid #ccc;
background: #fff; background: #fff;
@ -174,19 +186,24 @@
} }
thead { thead {
background: var(--background-button); background: #f9f9f9;
border: 1px solid #ccc;
} }
thead th { thead th {
color: var(--button-text); color: var(--button-text);
text-transform: capitalize; text-transform: capitalize;
font-weight: 500; font-weight: 500;
font-size: 14px;
text-rendering: optimizeLegibility;
letter-spacing: 1px;
} }
tbody tr { tbody tr {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
transition: 0.3s background-color; transition: 0.3s background-color;
color: var(--darkslate); color: var(--secondary100);
font-size: 14px;
} }
tbody tr:hover { tbody tr:hover {
@ -196,7 +213,8 @@
.table-controls { .table-controls {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: baseline;
margin-top: 10px;
} }
.ri-more-line:hover, .ri-more-line:hover,

View File

@ -50,7 +50,7 @@
flex-direction: column; flex-direction: column;
max-height: 100%; max-height: 100%;
height: 100%; height: 100%;
background-color: var(--white); background: var(--white);
} }
.nav-group-header { .nav-group-header {