aboutsummaryrefslogtreecommitdiffstats
path: root/core/css
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-02-27 10:58:16 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-03-25 10:50:45 +0100
commit52706213d37a3ac6df6568de7f6b283507de56d4 (patch)
treefb06635e1e03ee0950d6add35bbf66890b62260f /core/css
parent3427653676e7ef985778794df27a6fd5e2bdaa11 (diff)
downloadnextcloud-server-52706213d37a3ac6df6568de7f6b283507de56d4.tar.gz
nextcloud-server-52706213d37a3ac6df6568de7f6b283507de56d4.zip
Fix cursor on click inputs and their descendants
The cursor in click inputs is shown as a pointer to convey that it can be interacted with. However, in those click inputs that can have descendants, like buttons, the descendants may not inherit the cursor from it (for example, a "strong" element would, but a "span" element would not), which causes a pointer cursor to be shown on some areas of the button and a different one to be shown on other areas. To prevent that now all the descendants of click inputs that can have descendants use a pointer cursor. On the other hand, if a click input is disabled it can not be interacted with it, so now disabled click inputs as well as their descendants show a default cursor instead of a pointer cursor in that case. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/css')
-rw-r--r--core/css/inputs.scss16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/css/inputs.scss b/core/css/inputs.scss
index 175790b5f30..87dc6a44806 100644
--- a/core/css/inputs.scss
+++ b/core/css/inputs.scss
@@ -178,6 +178,22 @@ input[type='reset'] {
cursor: pointer;
box-sizing: border-box;
background-color: var(--color-background-dark);
+
+ &:disabled {
+ cursor: default;
+ }
+}
+select,
+button, .button {
+ * {
+ cursor: pointer;
+ }
+
+ &:disabled {
+ * {
+ cursor: default;
+ }
+ }
}
/* Buttons */