Switch toggle styles

Co-authored-by: dnlklmn <pelicansinberlin@gmail.com>
This commit is contained in:
Sebastian Martinez
2024-02-27 16:59:07 +00:00
committed by Rūdolfs Ošiņš
co-authored by dnlklmn
parent add8a9ad94
commit eb0013ef9c
8 changed files with 31 additions and 18 deletions
+2 -2
View File
@@ -31,7 +31,7 @@
--color-fill-secondary-hover: #8585ff; --color-fill-secondary-hover: #8585ff;
--color-fill-secondary-counter: #7a7aff; --color-fill-secondary-counter: #7a7aff;
--color-fill-ghost: #ebebff; --color-fill-ghost: #ebebff;
--color-fill-ghost-hover: #f5f5ff; --color-fill-ghost-hover: #dbdbff;
--color-fill-separator: #dbdbff; --color-fill-separator: #dbdbff;
--color-fill-primary: #ff70ff; --color-fill-primary: #ff70ff;
--color-fill-primary-hover: #ff80ff; --color-fill-primary-hover: #ff80ff;
@@ -45,7 +45,7 @@
--color-fill-diff-green: #badeca; --color-fill-diff-green: #badeca;
--color-fill-diff-green-light: #dcefe5; --color-fill-diff-green-light: #dcefe5;
--color-fill-float: #fafaff; --color-fill-float: #fafaff;
--color-fill-float-hover: #ffffff; --color-fill-float-hover: #dbdbff;
--color-fill-merged: #ffeeff; --color-fill-merged: #ffeeff;
--color-fill-selected: #ebebff; --color-fill-selected: #ebebff;
--color-fill-warning: #ffffe5; --color-fill-warning: #ffffe5;
+5
View File
@@ -91,6 +91,11 @@ pre {
min-width: 1.25rem; min-width: 1.25rem;
text-align: center; text-align: center;
} }
.global-spacer {
width: 1px;
height: 100%;
background-color: var(--color-fill-ghost);
}
@media (max-width: 720px) { @media (max-width: 720px) {
body { body {
+2
View File
@@ -46,6 +46,7 @@
on:click={() => storeTheme("light")}> on:click={() => storeTheme("light")}>
<Icon name="sun" /> <Icon name="sun" />
</Button> </Button>
<div class="global-spacer" />
<Button <Button
ariaLabel="Dark Mode" ariaLabel="Dark Mode"
styleBorderRadius="0" styleBorderRadius="0"
@@ -70,6 +71,7 @@
: "not-selected"}> : "not-selected"}>
{font.displayName} {font.displayName}
</Button> </Button>
<div class="global-spacer" />
{/each} {/each}
</Radio> </Radio>
</div> </div>
+17 -16
View File
@@ -89,21 +89,6 @@
background-color: var(--color-fill-ghost); background-color: var(--color-fill-ghost);
} }
.not-selected {
background-color: var(--color-fill-float-hover);
color: var(--color-foreground-contrast);
font-weight: var(--font-weight-normal);
}
.not-selected[disabled] {
background-color: var(--color-fill-float-hover);
color: var(--color-foreground-disabled);
font-weight: var(--font-weight-normal);
}
.not-selected:not([disabled]):hover {
background-color: var(--color-fill-ghost-hover);
color: var(--color-foreground-contrast);
}
.gray { .gray {
background-color: var(--color-fill-ghost); background-color: var(--color-fill-ghost);
color: var(--color-foreground-contrast); color: var(--color-foreground-contrast);
@@ -130,7 +115,7 @@
color: var(--color-foreground-contrast); color: var(--color-foreground-contrast);
} }
.selected { .selected {
background-color: var(--color-fill-ghost); background-color: var(--color-fill-float-hover);
color: var(--color-foreground-contrast); color: var(--color-foreground-contrast);
cursor: default; cursor: default;
} }
@@ -139,6 +124,22 @@
color: var(--color-foreground-disabled); color: var(--color-foreground-disabled);
} }
.not-selected {
background-color: var(--color-fill-ghost);
color: var(--color-foreground-contrast);
font-weight: var(--font-weight-normal);
letter-spacing: 0.02rem;
}
.not-selected[disabled] {
background-color: var(--color-fill-float-hover);
color: var(--color-foreground-disabled);
font-weight: var(--font-weight-normal);
}
.not-selected:not([disabled]):hover {
background-color: var(--color-fill-ghost-hover);
color: var(--color-foreground-contrast);
}
.none { .none {
background-color: transparent; background-color: transparent;
color: var(--color-foreground-emphasized); color: var(--color-foreground-emphasized);
+1
View File
@@ -179,6 +179,7 @@
<IconSmall name="edit" /> <IconSmall name="edit" />
Edit Edit
</Button> </Button>
<div class="global-spacer" />
<Button <Button
styleBorderRadius="0" styleBorderRadius="0"
disabled={disallowEmptyBody && body.length === 0} disabled={disallowEmptyBody && body.length === 0}
@@ -58,6 +58,7 @@
<IconSmall name="logo" /> <IconSmall name="logo" />
Radicle Radicle
</Button> </Button>
<div class="global-spacer" />
<Button <Button
styleWidth="100%" styleWidth="100%"
styleBorderRadius="0" styleBorderRadius="0"
+1
View File
@@ -221,6 +221,7 @@
}}> }}>
<IconSmall name="eye-open" />Preview <IconSmall name="eye-open" />Preview
</Button> </Button>
<div class="global-spacer" />
</Radio> </Radio>
{/if} {/if}
<a href="{rawPath}/{blob.path}" target="_blank" rel="noreferrer"> <a href="{rawPath}/{blob.path}" target="_blank" rel="noreferrer">
@@ -79,6 +79,8 @@
</Popover> </Popover>
{/if} {/if}
<div class="global-spacer" />
<Button <Button
title="Current HEAD" title="Current HEAD"
variant="not-selected" variant="not-selected"