Skip to content

Commit

Permalink
Apply border to primary button if on log in page (and not in a dark c…
Browse files Browse the repository at this point in the history
…ontainer) or if in header, fix #12294

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
  • Loading branch information
jancborchardt committed Nov 20, 2018
1 parent 1bf742c commit 3253963
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions core/css/inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,22 @@ div[contenteditable=true],
/* Primary action button, use sparingly */
&.primary {
background-color: var(--color-primary-element);
border: 1px solid var(--color-primary-text);
border-color: var(--color-primary-element);
color: var(--color-primary-text);
cursor: pointer;

/* Apply border to primary button if on log in page (and not in a dark container) or if in header */
#body-login :not(body-login-container) &,
#header & {
border-color: var(--color-primary-text);
}

&:not(:disabled) {
&:hover,
&:focus,
&:active {
background-color: var(--color-primary-element-light)
&:active {
background-color: var(--color-primary-element-light);
border-color: var(--color-primary-element-light);
}
&:active {
color: var(--color-primary-text-dark);
Expand Down

0 comments on commit 3253963

Please sign in to comment.