Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
adjust colors
Browse files Browse the repository at this point in the history
  • Loading branch information
senadir committed Aug 13, 2020
1 parent 9e4813a commit 2816f72
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
7 changes: 6 additions & 1 deletion assets/css/abstracts/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,10 @@ $input-border-dark: rgba(255, 255, 255, 0.4);
$input-disabled-dark: rgba(255, 255, 255, 0.3);
$controls-border-dark: rgba(255, 255, 255, 0.6);
$input-text-active: #2b2d2f;
$input-text-dark: rgba(255, 255, 255, 0.6);
$input-placeholder-dark: rgba(255, 255, 255, 0.6);
$input-text-dark: #fff;
$input-background-dark: rgba(0, 0, 0, 0.1);
$select-dropdown-dark: #1e1e1e;
$select-dropdown-light: #fff;
$select-item-dark: rgba(0, 0, 0, 0.4);

9 changes: 3 additions & 6 deletions assets/js/base/components/quantity-selector/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
&:focus {
outline: 2px solid $core-grey-light-600;
}
.has-dark-controls &:focus {
outline-width: 1px;
}
}

.wc-block-components-quantity-selector {
Expand Down Expand Up @@ -53,7 +50,7 @@
}

.has-dark-controls & {
color: #fff;
color: $input-text-dark;

&:focus {
background: transparent;
Expand Down Expand Up @@ -90,11 +87,11 @@
}

.has-dark-controls & {
color: #fff;
color: $input-text-dark;

&:hover,
&:focus {
color: #fff;
color: $input-text-dark;
}
&:disabled {
color: $input-disabled-dark;
Expand Down
13 changes: 8 additions & 5 deletions assets/js/base/components/select/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
max-width: calc(100% - #{2 * $gap});
white-space: nowrap;

.has-dark-controls & {
color: $input-placeholder-dark;
}
@media screen and (prefers-reduced-motion: reduce) {
transition: none;
}
Expand Down Expand Up @@ -70,20 +73,20 @@
.has-dark-controls & {
background-color: rgba(#000, 0.1);
border-color: $input-border-dark;
color: #fff;
color: $input-text-dark;
}
}
}

.components-custom-select-control__button-icon {
right: #{$gap - 4px};
.has-dark-controls & {
fill: #fff;
fill: $input-text-dark;
}
}

.components-custom-select-control__menu {
background-color: #fff;
background-color: $select-dropdown-dark;
margin: 0;
max-height: 300px;
overflow: auto;
Expand All @@ -93,7 +96,7 @@
display: none;
}
.has-dark-controls & {
background-color: #1e1e1e;
background-color: $select-dropdown-dark;
color: $input-text-dark;
}
}
Expand All @@ -106,7 +109,7 @@
&:focus,
&.is-highlighted {
.has-dark-controls & {
background-color: rgba(#000, 0.4);
background-color: $select-item-dark;
}
}
}
Expand Down
13 changes: 5 additions & 8 deletions assets/js/base/components/text-input/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
max-width: calc(100% - #{2 * $gap});
cursor: text;

.has-dark-controls & {
color: $input-placeholder-dark;
}
@media screen and (prefers-reduced-motion: reduce) {
transition: none;
}
Expand Down Expand Up @@ -55,15 +58,9 @@
background-color: #fff;
}
.has-dark-controls & {
background-color: rgba(#000, 0.1);
background-color: $input-background-dark;
border-color: $input-border-dark;
color: #fff;
&:focus {
background-color: rgba(#000, 0.1);
}
&::placeholder {
color: $input-text-dark;
}
color: $input-text-dark;
}
}

Expand Down

0 comments on commit 2816f72

Please sign in to comment.