Skip to content

Commit

Permalink
Merge pull request #12558 from nextcloud/blurry-button
Browse files Browse the repository at this point in the history
Apply border to primary button if on log in page (and not in a dark container) or if in header
  • Loading branch information
MorrisJobke authored Nov 22, 2018
2 parents bebdb19 + f80a023 commit 2e68b73
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 3 additions & 4 deletions apps/theming/css/theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ $invert: luma($color-primary) > 0.6;
@include icon-color('checkbox-mark', 'actions', $color-white, 1, true);
}
}
#body-user {
.primary {
border: 1px solid transparent;
}
/* Always give primary button a border for light primary colors */
.primary {
border-color: var(--color-border) !important;
}
} @else {
#appmenu:not(.inverted) svg {
Expand Down
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 2e68b73

Please sign in to comment.