mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
Merge pull request #14891 from twbs/cursor_var
Add variable for default cursor
This commit is contained in:
commit
2d20bba307
@ -46,7 +46,7 @@
|
|||||||
&.disabled,
|
&.disabled,
|
||||||
&[disabled],
|
&[disabled],
|
||||||
fieldset[disabled] & {
|
fieldset[disabled] & {
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
pointer-events: none; // Future-proof disabling of clicks
|
pointer-events: none; // Future-proof disabling of clicks
|
||||||
.opacity(.65);
|
.opacity(.65);
|
||||||
.box-shadow(none);
|
.box-shadow(none);
|
||||||
|
@ -111,7 +111,7 @@
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none; // Remove CSS gradient
|
background-image: none; // Remove CSS gradient
|
||||||
.reset-filter();
|
.reset-filter();
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ output {
|
|||||||
&[disabled],
|
&[disabled],
|
||||||
&[readonly],
|
&[readonly],
|
||||||
fieldset[disabled] & {
|
fieldset[disabled] & {
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
background-color: @input-bg-disabled;
|
background-color: @input-bg-disabled;
|
||||||
opacity: 1; // iOS fix for unreadable disabled content
|
opacity: 1; // iOS fix for unreadable disabled content
|
||||||
}
|
}
|
||||||
@ -275,7 +275,7 @@ input[type="checkbox"] {
|
|||||||
&[disabled],
|
&[disabled],
|
||||||
&.disabled,
|
&.disabled,
|
||||||
fieldset[disabled] & {
|
fieldset[disabled] & {
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// These classes are used directly on <label>s
|
// These classes are used directly on <label>s
|
||||||
@ -283,7 +283,7 @@ input[type="checkbox"] {
|
|||||||
.checkbox-inline {
|
.checkbox-inline {
|
||||||
&.disabled,
|
&.disabled,
|
||||||
fieldset[disabled] & {
|
fieldset[disabled] & {
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// These classes are used on elements with <label> descendants
|
// These classes are used on elements with <label> descendants
|
||||||
@ -292,7 +292,7 @@ input[type="checkbox"] {
|
|||||||
&.disabled,
|
&.disabled,
|
||||||
fieldset[disabled] & {
|
fieldset[disabled] & {
|
||||||
label {
|
label {
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ a.list-group-item {
|
|||||||
&.disabled:focus {
|
&.disabled:focus {
|
||||||
background-color: @list-group-disabled-bg;
|
background-color: @list-group-disabled-bg;
|
||||||
color: @list-group-disabled-color;
|
color: @list-group-disabled-color;
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
|
|
||||||
// Force color to inherit for custom content
|
// Force color to inherit for custom content
|
||||||
.list-group-item-heading {
|
.list-group-item-heading {
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
color: @nav-disabled-link-hover-color;
|
color: @nav-disabled-link-hover-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
> span {
|
> span {
|
||||||
color: @pager-disabled-color;
|
color: @pager-disabled-color;
|
||||||
background-color: @pager-bg;
|
background-color: @pager-bg;
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
color: @pagination-disabled-color;
|
color: @pagination-disabled-color;
|
||||||
background-color: @pagination-disabled-bg;
|
background-color: @pagination-disabled-bg;
|
||||||
border-color: @pagination-disabled-border;
|
border-color: @pagination-disabled-border;
|
||||||
cursor: not-allowed;
|
cursor: @cursor-disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -214,6 +214,9 @@
|
|||||||
//** Border color for textual input addons
|
//** Border color for textual input addons
|
||||||
@input-group-addon-border-color: @input-border;
|
@input-group-addon-border-color: @input-border;
|
||||||
|
|
||||||
|
//** Disabled cursor for form controls and buttons.
|
||||||
|
@cursor-disabled: not-allowed;
|
||||||
|
|
||||||
|
|
||||||
//== Dropdowns
|
//== Dropdowns
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user