Skip to content

Commit

Permalink
Reorder CSS for clarity and to reduce selector size.
Browse files Browse the repository at this point in the history
  • Loading branch information
bicknellr committed Jan 31, 2018
1 parent 213807e commit 6b66c1b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions paper-checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@
transition: background-color 140ms, border-color 140ms;
}

#checkbox.checked {
background-color: var(--paper-checkbox-checked-color, var(--primary-color));
border-color: var(--paper-checkbox-checked-color, var(--primary-color));
}

#checkmark {
width: 100%;
height: 100%;
opacity: 0;
stroke: rgba(0, 0, 0, 0);
fill: var(--paper-checkbox-checkmark-color, white);
}

/* checkbox checked animations */
#checkbox.checked #checkmark {
opacity: 1;
Expand All @@ -154,19 +167,6 @@
}
}

#checkbox.checked {
background-color: var(--paper-checkbox-checked-color, var(--primary-color));
border-color: var(--paper-checkbox-checked-color, var(--primary-color));
}

#checkbox #checkmark {
width: 100%;
height: 100%;
opacity: 0;
stroke: rgba(0, 0, 0, 0);
fill: var(--paper-checkbox-checkmark-color, white);
}

/* label */
#checkboxLabel {
position: relative;
Expand Down

0 comments on commit 6b66c1b

Please sign in to comment.