summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-01-17 10:58:45 -0700
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-01-17 10:59:57 -0700
commitc1b374a70861b522256ff5ac8b5a5db2b6ebc681 (patch)
treec937c15183e4d0c40c9983d3e187699bdfdec2de /app
parent5139a19e1eb7896dbfd1f1c54a6899ee63eca161 (diff)
downloadgitlab-ce-c1b374a70861b522256ff5ac8b5a5db2b6ebc681.tar.gz
Remove hover states from disabled buttons
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/framework/buttons.scss32
1 files changed, 16 insertions, 16 deletions
diff --git a/app/assets/stylesheets/framework/buttons.scss b/app/assets/stylesheets/framework/buttons.scss
index 5cb34a0771d..160745ad8f5 100644
--- a/app/assets/stylesheets/framework/buttons.scss
+++ b/app/assets/stylesheets/framework/buttons.scss
@@ -220,14 +220,6 @@
@include btn-with-margin;
}
- &.disabled {
- pointer-events: auto !important;
- }
-
- &[disabled] {
- pointer-events: none !important;
- }
-
.fa-caret-down,
.fa-chevron-down {
margin-left: 5px;
@@ -451,19 +443,27 @@
@include btn-svg;
}
-// All disabled buttons, regardless of color
+// All disabled buttons, regardless of color, type, etc
+%disabled {
+ background-color: $gray-light !important;
+ border-color: $theme-gray-200 !important;
+ color: $gl-text-color-disabled !important;
+ opacity: 1 !important;
+ cursor: not-allowed !important;
+
+ i {
+ color: $gl-text-color-disabled !important;
+ }
+}
+
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn,
.dropdown-toggle[disabled],
[disabled].dropdown-menu-toggle {
- background-color: $gray-light;
- border-color: $theme-gray-200;
- color: $gl-text-color-disabled;
- opacity: 1;
- cursor: not-allowed;
+ @extend %disabled;
- i {
- color: $gl-text-color-disabled;
+ &:hover {
+ @extend %disabled;
}
}