Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
79aebf6c
Commit
79aebf6c
authored
9 years ago
by
Gleb Mazovetskiy
Browse files
Options
Download
Plain Diff
Merge pull request #17364 from twbs/avoid-parent-selector-suffix2
Remove all uses of `selector &` to support nested import
parents
336bfa41
f7b27a02
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
scss/_buttons.scss
+3
-6
scss/_buttons.scss
scss/_forms.scss
+5
-10
scss/_forms.scss
scss/_labels.scss
+5
-5
scss/_labels.scss
scss/mixins/_buttons.scss
+2
-4
scss/mixins/_buttons.scss
with
15 additions
and
25 deletions
+15
-25
scss/_buttons.scss
+
3
-
6
View file @
79aebf6c
...
@@ -39,8 +39,7 @@
...
@@ -39,8 +39,7 @@
}
}
&
.disabled
,
&
.disabled
,
&
:disabled
,
&
:disabled
{
fieldset
[
disabled
]
&
{
cursor
:
$cursor-disabled
;
cursor
:
$cursor-disabled
;
opacity
:
.65
;
opacity
:
.65
;
@include
box-shadow
(
none
);
@include
box-shadow
(
none
);
...
@@ -111,8 +110,7 @@ fieldset[disabled] a.btn {
...
@@ -111,8 +110,7 @@ fieldset[disabled] a.btn {
&
,
&
,
&
:active
,
&
:active
,
&
.active
,
&
.active
,
&
:disabled
,
&
:disabled
{
fieldset
[
disabled
]
&
{
background-color
:
transparent
;
background-color
:
transparent
;
@include
box-shadow
(
none
);
@include
box-shadow
(
none
);
}
}
...
@@ -129,8 +127,7 @@ fieldset[disabled] a.btn {
...
@@ -129,8 +127,7 @@ fieldset[disabled] a.btn {
text-decoration
:
$link-hover-decoration
;
text-decoration
:
$link-hover-decoration
;
background-color
:
transparent
;
background-color
:
transparent
;
}
}
&
:disabled
,
&
:disabled
{
fieldset
[
disabled
]
&
{
@include
hover-focus
{
@include
hover-focus
{
color
:
$btn-link-disabled-color
;
color
:
$btn-link-disabled-color
;
text-decoration
:
none
;
text-decoration
:
none
;
...
...
This diff is collapsed.
Click to expand it.
scss/_forms.scss
+
5
-
10
View file @
79aebf6c
...
@@ -50,15 +50,13 @@
...
@@ -50,15 +50,13 @@
// disabled if the fieldset is disabled. Due to implementation difficulty, we
// disabled if the fieldset is disabled. Due to implementation difficulty, we
// don't honor that edge case; we style them as disabled anyway.
// don't honor that edge case; we style them as disabled anyway.
&
:disabled
,
&
:disabled
,
&
[
readonly
],
&
[
readonly
]
{
fieldset
[
disabled
]
&
{
background-color
:
$input-bg-disabled
;
background-color
:
$input-bg-disabled
;
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
opacity
:
1
;
opacity
:
1
;
}
}
&
[
disabled
],
&
:disabled
{
fieldset
[
disabled
]
&
{
cursor
:
$cursor-disabled
;
cursor
:
$cursor-disabled
;
}
}
}
}
...
@@ -233,24 +231,21 @@
...
@@ -233,24 +231,21 @@
input
[
type
=
"radio"
],
input
[
type
=
"radio"
],
input
[
type
=
"checkbox"
]
{
input
[
type
=
"checkbox"
]
{
&
:disabled
,
&
:disabled
,
&
.disabled
,
&
.disabled
{
fieldset
[
disabled
]
&
{
cursor
:
$cursor-disabled
;
cursor
:
$cursor-disabled
;
}
}
}
}
// These classes are used directly on <label>s
// These classes are used directly on <label>s
.radio-inline
,
.radio-inline
,
.checkbox-inline
{
.checkbox-inline
{
&
.disabled
,
&
.disabled
{
fieldset
[
disabled
]
&
{
cursor
:
$cursor-disabled
;
cursor
:
$cursor-disabled
;
}
}
}
}
// These classes are used on elements with <label> descendants
// These classes are used on elements with <label> descendants
.radio
,
.radio
,
.checkbox
{
.checkbox
{
&
.disabled
,
&
.disabled
{
fieldset
[
disabled
]
&
{
label
{
label
{
cursor
:
$cursor-disabled
;
cursor
:
$cursor-disabled
;
}
}
...
...
This diff is collapsed.
Click to expand it.
scss/_labels.scss
+
5
-
5
View file @
79aebf6c
...
@@ -19,12 +19,12 @@
...
@@ -19,12 +19,12 @@
&
:empty
{
&
:empty
{
display
:
none
;
display
:
none
;
}
}
}
// Quick fix for labels in buttons
// Quick fix for labels in buttons
.btn
&
{
.btn
.label
{
position
:
relative
;
position
:
relative
;
top
:
-1px
;
top
:
-1px
;
}
}
}
// Add hover effects, but only for links
// Add hover effects, but only for links
...
...
This diff is collapsed.
Click to expand it.
scss/mixins/_buttons.scss
+
2
-
4
View file @
79aebf6c
...
@@ -45,8 +45,7 @@
...
@@ -45,8 +45,7 @@
}
}
&
.disabled
,
&
.disabled
,
&
:disabled
,
&
:disabled
{
fieldset
[
disabled
]
&
{
&
:focus
,
&
:focus
,
&
.focus
{
&
.focus
{
background-color
:
$background
;
background-color
:
$background
;
...
@@ -81,8 +80,7 @@
...
@@ -81,8 +80,7 @@
}
}
&
.disabled
,
&
.disabled
,
&
:disabled
,
&
:disabled
{
fieldset
[
disabled
]
&
{
&
:focus
,
&
:focus
,
&
.focus
{
&
.focus
{
border-color
:
lighten
(
$color
,
20%
);
border-color
:
lighten
(
$color
,
20%
);
...
...
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
Menu
Explore
Projects
Groups
Snippets