Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
e684758b
Commit
e684758b
authored
Aug 14, 2013
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #9511; set cursor:not-allowed for disabled buttons,checkboxes,radios
parent
a9d6b7ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
4 deletions
+29
-4
dist/css/bootstrap.css
dist/css/bootstrap.css
+12
-1
dist/css/bootstrap.min.css
dist/css/bootstrap.min.css
+1
-1
less/buttons.less
less/buttons.less
+1
-1
less/forms.less
less/forms.less
+15
-1
No files found.
dist/css/bootstrap.css
View file @
e684758b
...
...
@@ -1711,6 +1711,17 @@ textarea.form-control {
margin-left
:
10px
;
}
.radio
[
disabled
],
.radio-inline
[
disabled
],
.checkbox
[
disabled
],
.checkbox-inline
[
disabled
],
fieldset
[
disabled
]
.radio
,
fieldset
[
disabled
]
.radio-inline
,
fieldset
[
disabled
]
.checkbox
,
fieldset
[
disabled
]
.checkbox-inline
{
cursor
:
not-allowed
;
}
.input-sm
{
height
:
30px
;
padding
:
5px
10px
;
...
...
@@ -1936,7 +1947,7 @@ textarea.input-lg {
.btn
[
disabled
],
fieldset
[
disabled
]
.btn
{
pointer-events
:
none
;
cursor
:
default
;
cursor
:
not-allowed
;
opacity
:
0.65
;
filter
:
alpha
(
opacity
=
65
);
-webkit-box-shadow
:
none
;
...
...
dist/css/bootstrap.min.css
View file @
e684758b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
less/buttons.less
View file @
e684758b
...
...
@@ -41,7 +41,7 @@
&.disabled,
&[disabled],
fieldset[disabled] & {
cursor:
default
;
cursor:
not-allowed
;
pointer-events: none; // Future-proof disabling of clicks
.opacity(.65);
.box-shadow(none);
...
...
less/forms.less
View file @
e684758b
...
...
@@ -133,7 +133,7 @@ input[type="number"] {
.form-control-focus();
// Disabled and read-only inputs
// Note: HTML5 says that
input
s under a fieldset > legend:first-child won't be
// Note: HTML5 says that
control
s under a fieldset > legend:first-child won't be
// disabled if the fieldset is disabled. Due to implementation difficulty,
// we don't honor that edge case; we style them as disabled anyway.
&[disabled],
...
...
@@ -207,6 +207,20 @@ input[type="number"] {
margin-left: 10px; // space out consecutive inline controls
}
// Apply same disabled cursor tweak as for inputs
// Note: HTML5 says that controls under a fieldset > legend:first-child won't be
// disabled if the fieldset is disabled. Due to implementation difficulty,
// we don't honor that edge case; we style them as disabled anyway.
// Note: Neither radios nor checkboxes can be readonly.
.radio,
.radio-inline,
.checkbox,
.checkbox-inline {
&[disabled],
fieldset[disabled] & {
cursor: not-allowed;
}
}
// Form control sizing
.input-sm {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment