summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2018-11-20 17:01:51 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2018-11-20 17:01:51 +0100
commit325396330c78dc76021a0f433c018eec47836d32 (patch)
treee1e25db409740619b0ea964e042344e1057165bf /core
parent1bf742c462b238f441d1a6f115a3f489c98f8bb4 (diff)
downloadnextcloud-server-325396330c78dc76021a0f433c018eec47836d32.tar.gz
nextcloud-server-325396330c78dc76021a0f433c018eec47836d32.zip
Apply border to primary button if on log in page (and not in a dark container) or if in header, fix #12294
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core')
-rw-r--r--core/css/inputs.scss14
1 files changed, 11 insertions, 3 deletions
diff --git a/core/css/inputs.scss b/core/css/inputs.scss
index fde251075a8..e96f055f243 100644
--- a/core/css/inputs.scss
+++ b/core/css/inputs.scss
@@ -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);