Skip to content

Commit

Permalink
refactor toggle on color (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalm42 authored Aug 7, 2020
1 parent 15e3418 commit 8bd090b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Toggle/Toggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@

.toggles [type="checkbox"]:checked + label::after {
left: 1.6em;
border-color: var(--accent);
color: var(--accent);
border-color: var(--success);
color: var(--success);
}

.toggles [type="checkbox"]:indeterminate + label::after {
Expand All @@ -78,8 +78,8 @@
}

.toggles [type="checkbox"]:checked + label::before {
background-color: var(--accent);
border-color: var(--accent);
background-color: var(--success);
border-color: var(--success);
}

.toggles [type="checkbox"][disabled] + label::before {
Expand Down
1 change: 1 addition & 0 deletions src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
--mainDark: var(--darkBlue);
--accent: var(--gold);
--error: var(--red);
--success: rgb(90, 196, 90);
--background: var(--white);
--text: var(--black);
--formalFont: "Playfair Display", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
Expand Down

0 comments on commit 8bd090b

Please sign in to comment.