Update FlatButton and CategoryTab styles

This commit is contained in:
Andrew Kingston 2020-10-22 18:23:11 +01:00
parent af19158fb6
commit f56662dac4
4 changed files with 12 additions and 13 deletions

View File

@ -1,7 +1,7 @@
<script> <script>
export let categories = [] export let categories = []
export let selectedCategory = {} export let selectedCategory = {}
export let onClick = category => {} export let onClick = (category) => {}
</script> </script>
<div class="tabs"> <div class="tabs">
@ -19,8 +19,8 @@
.tabs { .tabs {
display: flex; display: flex;
list-style: none; list-style: none;
font-size: 18px; font-size: var(--font-size-m);
font-weight: 600; font-weight: 500;
} }
li { li {

View File

@ -107,7 +107,7 @@
} }
.instance-name { .instance-name {
font-size: 14px; font-size: var(--font-size-xs);
font-weight: 500; font-weight: 500;
color: var(--grey-7); color: var(--grey-7);
} }

View File

@ -3,7 +3,7 @@
export let value = "" export let value = ""
export let text = "" export let text = ""
export let icon = "" export let icon = ""
export let onClick = value => {} export let onClick = (value) => {}
export let selected = false export let selected = false
$: useIcon = !!icon $: useIcon = !!icon
@ -22,23 +22,22 @@
<style> <style>
.flatbutton { .flatbutton {
cursor: pointer; cursor: pointer;
max-height: 36px; height: 32px;
padding: 8px 2px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
background: #ffffff; background: white;
color: var(--grey-7); color: var(--grey-7);
border-radius: 5px; border-radius: var(--border-radius-m);
font-size: 14px; font-size: var(--font-size-xs);
font-weight: 400; font-weight: 500;
transition: all 0.3s; transition: all 0.3s;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
.selected { .selected {
background: var(--grey-3); background: var(--grey-2);
color: var(--ink); color: var(--ink);
} }

View File

@ -105,7 +105,7 @@
justify-content: flex-start; justify-content: flex-start;
align-items: stretch; align-items: stretch;
gap: var(--spacing-l); gap: var(--spacing-l);
padding: var(--spacing-xl); padding: var(--spacing-l) var(--spacing-xl);
} }
.nav-group-header > div:nth-child(1) { .nav-group-header > div:nth-child(1) {