]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
swap cursor not-allow for default, and use a variable for all disabled elements
authorMark Otto <markdotto@gmail.com>
Tue, 28 Oct 2014 03:37:52 +0000 (20:37 -0700)
committerMark Otto <markdotto@gmail.com>
Tue, 28 Oct 2014 03:45:46 +0000 (20:45 -0700)
less/buttons.less
less/dropdowns.less
less/forms.less
less/list-group.less
less/navs.less
less/pager.less
less/pagination.less
less/variables.less

index d32c4e2d803c5dde45dc42124060227d1500269b..40553c63861fd11bf51591abe0fed28948ca05e4 100644 (file)
@@ -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);
index 742c912658ffee07e7bc17edf70eae51ce089c2b..84a48c1413550259763e9a658980d2e13cb5df2f 100644 (file)
     background-color: transparent;
     background-image: none; // Remove CSS gradient
     .reset-filter();
-    cursor: not-allowed;
+    cursor: @cursor-disabled;
   }
 }
 
index aefc0dea5ce1786ec89e6a2f7273c0e30a1d27b6..38e4ce6d64e4ce294fc3d8553bd727a9c14875ea 100644 (file)
@@ -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 <label>s
@@ -283,7 +283,7 @@ input[type="checkbox"] {
 .checkbox-inline {
   &.disabled,
   fieldset[disabled] & {
-    cursor: not-allowed;
+    cursor: @cursor-disabled;
   }
 }
 // These classes are used on elements with <label> descendants
@@ -292,7 +292,7 @@ input[type="checkbox"] {
   &.disabled,
   fieldset[disabled] & {
     label {
-      cursor: not-allowed;
+      cursor: @cursor-disabled;
     }
   }
 }
index 1e62d3b94d31292cda33f1f30eb06b48ca19cc05..da657005e9e10500b63cc0f10d351d8d5743bdaf 100644 (file)
@@ -74,7 +74,7 @@ a.list-group-item {
   &.disabled:focus {
     background-color: @list-group-disabled-bg;
     color: @list-group-disabled-color;
-    cursor: not-allowed;
+    cursor: @cursor-disabled;
 
     // Force color to inherit for custom content
     .list-group-item-heading {
index 8cf81d7e1747bb7ac94d8546f5ab2c1731b37138..f26fec7a5c60437f1a0a72e3cab53707522f51e1 100644 (file)
@@ -36,7 +36,7 @@
         color: @nav-disabled-link-hover-color;
         text-decoration: none;
         background-color: transparent;
-        cursor: not-allowed;
+        cursor: @cursor-disabled;
       }
     }
   }
index 73a660d64e107364e49cdb8fdb8308fb97c75232..41abaaadc5dc605c75de869dab943599ef31fbbd 100644 (file)
@@ -48,7 +48,7 @@
     > span {
       color: @pager-disabled-color;
       background-color: @pager-bg;
-      cursor: not-allowed;
+      cursor: @cursor-disabled;
     }
   }
 }
index b2856ae60e6bc7df6453a26b78ea2b1ee748b406..38c4c3d346f974278503a4596a6b6e96b845c0af 100644 (file)
@@ -69,7 +69,7 @@
       color: @pagination-disabled-color;
       background-color: @pagination-disabled-bg;
       border-color: @pagination-disabled-border;
-      cursor: not-allowed;
+      cursor: @cursor-disabled;
     }
   }
 }
index 0be497aff1e9d0c41e43cefb5b3d4866f785b547..c89e6e2729955ccd09494823b7b93dd7711590bf 100644 (file)
 //** Border color for textual input addons
 @input-group-addon-border-color: @input-border;
 
+//** Disabled cursor for form controls and buttons.
+@cursor-disabled:                default;
+
 
 //== Dropdowns
 //