1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

Исправил цвета в альтернативной теме

This commit is contained in:
muerwre 2022-08-15 13:38:08 +07:00 committed by GitHub
parent b36dcca0df
commit 1745cc636d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 442 additions and 9 deletions

View file

@ -27,15 +27,15 @@ const ThemeSwitcher: FC<ThemeSwitcherProps> = () => {
onClick={() => setTheme(id as Theme)}
>
<Group>
<Group horizontal>
{item.colors.map((color) => (
<div className={styles.palette}>
{item.colors.reverse().map((color) => (
<div
key={color}
className={styles.sample}
style={{ background: color }}
/>
))}
</Group>
</div>
<div className={styles.title}>{item.name}</div>
</Group>
</Card>

View file

@ -25,6 +25,16 @@
@include outer_shadow;
border-radius: 100%;
flex: 0 1 20px;
height: 20px;
flex: 0 1 24px;
height: 24px;
&:not(:last-child) {
margin-left: -8px;
}
}
.palette {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
}