Update select styles

This commit is contained in:
Justin Edmund 2022-12-04 14:26:54 -08:00
parent 2f95e8a8e6
commit 3760cf3d4c
5 changed files with 54 additions and 20 deletions

View file

@ -1,6 +1,6 @@
.FilterBar { .FilterBar {
align-items: center; align-items: center;
background: var(--card-bg); background: var(--bar-bg);
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -18,7 +18,7 @@
} }
h1 { h1 {
color: $grey-30; color: var(--text-primary);
font-size: $font-regular; font-size: $font-regular;
font-weight: $normal; font-weight: $normal;
flex-grow: 1; flex-grow: 1;
@ -26,11 +26,11 @@
} }
select { select {
background: url("/icons/Arrow.svg"), $grey-90; // background: url("/icons/Arrow.svg"), $grey-90;
background-repeat: no-repeat; // background-repeat: no-repeat;
background-position-y: center; // background-position-y: center;
background-position-x: 95%; // background-position-x: 95%;
background-size: $unit * 1.5; // background-size: $unit * 1.5;
color: $grey-50; color: $grey-50;
font-size: $font-small; font-size: $font-small;
margin: 0; margin: 0;

View file

@ -6,7 +6,7 @@
padding: $unit * 2; padding: $unit * 2;
&:hover { &:hover {
background: white; background: var(--grid-rep-hover);
h2, h2,
.Grid { .Grid {
@ -14,7 +14,7 @@
} }
.Grid .weapon { .Grid .weapon {
box-shadow: inset 0 0 0 1px $grey-80; box-shadow: inset 0 0 0 1px var(--grid-border-color);
} }
} }
@ -24,7 +24,7 @@
flex-shrink: 0; flex-shrink: 0;
.weapon { .weapon {
background: white; background: var(--card-bg);
border-radius: 4px; border-radius: 4px;
} }
@ -64,7 +64,7 @@
gap: calc($unit / 2); gap: calc($unit / 2);
h2 { h2 {
color: $grey-10; color: var(--text-primary);
font-size: $font-regular; font-size: $font-regular;
overflow: hidden; overflow: hidden;
padding-bottom: 1px; padding-bottom: 1px;
@ -73,7 +73,7 @@
max-width: 258px; // Can we not do this? max-width: 258px; // Can we not do this?
&.empty { &.empty {
color: $grey-50; color: var(--text-secondary);
} }
} }

View file

@ -78,6 +78,7 @@ h1 {
select { select {
appearance: none; appearance: none;
background-color: var(--input-bg);
background-image: url("/icons/Arrow.svg"); background-image: url("/icons/Arrow.svg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position-y: center; background-position-y: center;
@ -93,6 +94,7 @@ select {
width: 100%; width: 100%;
&:hover { &:hover {
background-color: var(--input-bg-hover);
cursor: pointer; cursor: pointer;
} }
} }

View file

@ -1,7 +1,14 @@
:root { :root {
--background: #{$page--bg--light}; --background: #{$page--bg--light};
--page-hover: #{$page--hover--light}; --page-hover: #{$page--hover--light};
--grid-rep-hover: #{$grid--rep--hover--light};
--card-bg: white; --card-bg: white;
--bar-bg: white;
--input-bg: #{$input--bg--light};
--input-bg-hover: #{$input--bg--light--hover};
--text-primary: #{$text--primary--color--light}; --text-primary: #{$text--primary--color--light};
@ -10,8 +17,11 @@
--icon-secondary: #{$icon--secondary--color--light}; --icon-secondary: #{$icon--secondary--color--light};
--icon-secondary-hover: #{$icon--secondary--hover--light}; --icon-secondary-hover: #{$icon--secondary--hover--light};
--switch-nub: #{$switch--nub--bg--light}; --switch-nub: #{$switch--nub--bg--light};
--grid-border-color: #{$grid--border--color--light};
--wind-hover-bg: #{$wind-bg-20}; --wind-hover-bg: #{$wind-bg-20};
--wind-hover-text: #{$wind-text-20}; --wind-hover-text: #{$wind-text-20};
--fire-hover-bg: #{$fire-bg-20}; --fire-hover-bg: #{$fire-bg-20};
@ -29,7 +39,14 @@
[data-theme="dark"] { [data-theme="dark"] {
--background: #{$page--bg--dark}; --background: #{$page--bg--dark};
--page-hover: #{$page--hover--dark}; --page-hover: #{$page--hover--dark};
--grid-rep-hover: #{$grid--rep--hover--dark};
--card-bg: #{$page--element--bg--dark}; --card-bg: #{$page--element--bg--dark};
--bar-bg: #{$grey-00};
--input-bg: #{$input--bg--dark};
--input-bg-hover: #{$input--bg--dark--hover};
--text-primary: #{$text--primary--color--dark}; --text-primary: #{$text--primary--color--dark};
@ -38,8 +55,11 @@
--icon-secondary: #{$icon--secondary--color--dark}; --icon-secondary: #{$icon--secondary--color--dark};
--icon-secondary-hover: #{$icon--secondary--hover--dark}; --icon-secondary-hover: #{$icon--secondary--hover--dark};
--switch-nub: #{$switch--nub--bg--dark}; --switch-nub: #{$switch--nub--bg--dark};
--grid-border-color: #{$grid--border--color--dark};
--wind-hover-bg: #{$wind-bg-00}; --wind-hover-bg: #{$wind-bg-00};
--wind-hover-text: #{$wind-text-00}; --wind-hover-text: #{$wind-text-00};
--fire-hover-bg: #{$fire-bg-00}; --fire-hover-bg: #{$fire-bg-00};

View file

@ -12,10 +12,11 @@ $medium-screen: 800px;
$unit: 8px; $unit: 8px;
// Colors // Colors
$grey-00: #111;
$grey-10: #191919; $grey-10: #191919;
$grey-15: #2f2f2f; $grey-15: #232323;
$grey-20: #444; $grey-20: #2f2f2f;
$grey-30: #555; $grey-30: #444;
$grey-40: #777; $grey-40: #777;
$grey-50: #888; $grey-50: #888;
$grey-60: #a9a9a9; $grey-60: #a9a9a9;
@ -28,19 +29,30 @@ $page--bg--light: $grey-90;
$page--bg--dark: $grey-10; $page--bg--dark: $grey-10;
$page--hover--light: $grey-90; $page--hover--light: $grey-90;
$page--hover--dark: $grey-15; $page--hover--dark: $grey-20;
$page--element--bg--light: $grey-70; $page--element--bg--light: $grey-70;
$page--element--bg--dark: $grey-20; $page--element--bg--dark: $grey-30;
$input--bg--light: $grey-90;
$input--bg--light--hover: $grey-80;
$input--bg--dark: $grey-10;
$input--bg--dark--hover: $grey-15;
$grid--rep--hover--light: white;
$grid--rep--hover--dark: $grey-00;
$grid--border--color--light: $grey-80;
$grid--border--color--dark: $grey-30;
$switch--nub--bg--light: $grey-80; $switch--nub--bg--light: $grey-80;
$switch--nub--bg--dark: $grey-15; $switch--nub--bg--dark: $grey-20;
$text--primary--color--light: $grey-20; $text--primary--color--light: $grey-30;
$text--primary--color--dark: $grey-90; $text--primary--color--dark: $grey-90;
$text--secondary--color--light: $grey-40; $text--secondary--color--light: $grey-40;
$text--secondary--hover--light: $grey-20; $text--secondary--hover--light: $grey-30;
$text--secondary--color--dark: $grey-40; $text--secondary--color--dark: $grey-40;
$text--secondary--hover--dark: $grey-70; $text--secondary--hover--dark: $grey-70;