From bf3be5a456b3f6699a7832957dc0d1fbf6ac1590 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 27 Oct 2014 20:37:52 -0700 Subject: [PATCH] swap cursor not-allow for default, and use a variable for all disabled elements --- less/buttons.less | 2 +- less/dropdowns.less | 2 +- less/forms.less | 8 ++++---- less/list-group.less | 2 +- less/navs.less | 2 +- less/pager.less | 2 +- less/pagination.less | 2 +- less/variables.less | 3 +++ 8 files changed, 13 insertions(+), 10 deletions(-) diff --git a/less/buttons.less b/less/buttons.less index d32c4e2d80..40553c6386 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -46,7 +46,7 @@ &.disabled, &[disabled], fieldset[disabled] & { - cursor: not-allowed; + cursor: @cursor-disabled; pointer-events: none; // Future-proof disabling of clicks .opacity(.65); .box-shadow(none); diff --git a/less/dropdowns.less b/less/dropdowns.less index 742c912658..84a48c1413 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -111,7 +111,7 @@ background-color: transparent; background-image: none; // Remove CSS gradient .reset-filter(); - cursor: not-allowed; + cursor: @cursor-disabled; } } diff --git a/less/forms.less b/less/forms.less index aefc0dea5c..38e4ce6d64 100644 --- a/less/forms.less +++ b/less/forms.less @@ -141,7 +141,7 @@ output { &[disabled], &[readonly], fieldset[disabled] & { - cursor: not-allowed; + cursor: @cursor-disabled; background-color: @input-bg-disabled; opacity: 1; // iOS fix for unreadable disabled content } @@ -275,7 +275,7 @@ input[type="checkbox"] { &[disabled], &.disabled, fieldset[disabled] & { - cursor: not-allowed; + cursor: @cursor-disabled; } } // These classes are used directly on