Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
bf3be5a4
Commit
bf3be5a4
authored
10 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
swap cursor not-allow for default, and use a variable for all disabled elements
parent
a5497da5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
less/buttons.less
+1
-1
less/buttons.less
less/dropdowns.less
+1
-1
less/dropdowns.less
less/forms.less
+4
-4
less/forms.less
less/list-group.less
+1
-1
less/list-group.less
less/navs.less
+1
-1
less/navs.less
less/pager.less
+1
-1
less/pager.less
less/pagination.less
+1
-1
less/pagination.less
less/variables.less
+3
-0
less/variables.less
with
13 additions
and
10 deletions
+13
-10
less/buttons.less
+
1
-
1
View file @
bf3be5a4
...
...
@@ -46,7 +46,7 @@
&.disabled,
&[disabled],
fieldset[disabled] & {
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
pointer-events: none; // Future-proof disabling of clicks
.opacity(.65);
.box-shadow(none);
...
...
This diff is collapsed.
Click to expand it.
less/dropdowns.less
+
1
-
1
View file @
bf3be5a4
...
...
@@ -111,7 +111,7 @@
background-color: transparent;
background-image: none; // Remove CSS gradient
.reset-filter();
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
}
}
...
...
This diff is collapsed.
Click to expand it.
less/forms.less
+
4
-
4
View file @
bf3be5a4
...
...
@@ -141,7 +141,7 @@ output {
&[disabled],
&[readonly],
fieldset[disabled] & {
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
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-allow
ed;
cursor:
@cursor-disabl
ed;
}
}
// These classes are used directly on <label>s
...
...
@@ -283,7 +283,7 @@ input[type="checkbox"] {
.checkbox-inline {
&.disabled,
fieldset[disabled] & {
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
}
}
// These classes are used on elements with <label> descendants
...
...
@@ -292,7 +292,7 @@ input[type="checkbox"] {
&.disabled,
fieldset[disabled] & {
label {
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
less/list-group.less
+
1
-
1
View file @
bf3be5a4
...
...
@@ -74,7 +74,7 @@ a.list-group-item {
&.disabled:focus {
background-color: @list-group-disabled-bg;
color: @list-group-disabled-color;
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
// Force color to inherit for custom content
.list-group-item-heading {
...
...
This diff is collapsed.
Click to expand it.
less/navs.less
+
1
-
1
View file @
bf3be5a4
...
...
@@ -36,7 +36,7 @@
color: @nav-disabled-link-hover-color;
text-decoration: none;
background-color: transparent;
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
less/pager.less
+
1
-
1
View file @
bf3be5a4
...
...
@@ -48,7 +48,7 @@
> span {
color: @pager-disabled-color;
background-color: @pager-bg;
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
}
}
}
This diff is collapsed.
Click to expand it.
less/pagination.less
+
1
-
1
View file @
bf3be5a4
...
...
@@ -69,7 +69,7 @@
color: @pagination-disabled-color;
background-color: @pagination-disabled-bg;
border-color: @pagination-disabled-border;
cursor:
not-allow
ed;
cursor:
@cursor-disabl
ed;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
less/variables.less
+
3
-
0
View file @
bf3be5a4
...
...
@@ -214,6 +214,9 @@
//** Border color for textual input addons
@input-group-addon-border-color: @input-border;
//** Disabled cursor for form controls and buttons.
@cursor-disabled: default;
//== Dropdowns
//
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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