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
79aebf6c
Commit
79aebf6c
authored
Sep 05, 2015
by
Gleb Mazovetskiy
Browse files
Options
Browse Files
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
with
15 additions
and
25 deletions
+15
-25
scss/_buttons.scss
scss/_buttons.scss
+3
-6
scss/_forms.scss
scss/_forms.scss
+5
-10
scss/_labels.scss
scss/_labels.scss
+5
-5
scss/mixins/_buttons.scss
scss/mixins/_buttons.scss
+2
-4
No files found.
scss/_buttons.scss
View file @
79aebf6c
...
...
@@ -39,8 +39,7 @@
}
&
.disabled
,
&
:disabled
,
fieldset
[
disabled
]
&
{
&
:disabled
{
cursor
:
$cursor-disabled
;
opacity
:
.65
;
@include
box-shadow
(
none
);
...
...
@@ -111,8 +110,7 @@ fieldset[disabled] a.btn {
&
,
&
:active
,
&
.active
,
&
:disabled
,
fieldset
[
disabled
]
&
{
&
:disabled
{
background-color
:
transparent
;
@include
box-shadow
(
none
);
}
...
...
@@ -129,8 +127,7 @@ fieldset[disabled] a.btn {
text-decoration
:
$link-hover-decoration
;
background-color
:
transparent
;
}
&
:disabled
,
fieldset
[
disabled
]
&
{
&
:disabled
{
@include
hover-focus
{
color
:
$btn-link-disabled-color
;
text-decoration
:
none
;
...
...
scss/_forms.scss
View file @
79aebf6c
...
...
@@ -50,15 +50,13 @@
// disabled if the fieldset is disabled. Due to implementation difficulty, we
// don't honor that edge case; we style them as disabled anyway.
&
:disabled
,
&
[
readonly
],
fieldset
[
disabled
]
&
{
&
[
readonly
]
{
background-color
:
$input-bg-disabled
;
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
opacity
:
1
;
}
&
[
disabled
],
fieldset
[
disabled
]
&
{
&
:disabled
{
cursor
:
$cursor-disabled
;
}
}
...
...
@@ -233,24 +231,21 @@
input
[
type
=
"radio"
],
input
[
type
=
"checkbox"
]
{
&
:disabled
,
&
.disabled
,
fieldset
[
disabled
]
&
{
&
.disabled
{
cursor
:
$cursor-disabled
;
}
}
// These classes are used directly on <label>s
.radio-inline
,
.checkbox-inline
{
&
.disabled
,
fieldset
[
disabled
]
&
{
&
.disabled
{
cursor
:
$cursor-disabled
;
}
}
// These classes are used on elements with <label> descendants
.radio
,
.checkbox
{
&
.disabled
,
fieldset
[
disabled
]
&
{
&
.disabled
{
label
{
cursor
:
$cursor-disabled
;
}
...
...
scss/_labels.scss
View file @
79aebf6c
...
...
@@ -19,12 +19,12 @@
&
:empty
{
display
:
none
;
}
}
// Quick fix for labels in buttons
.btn
&
{
position
:
relative
;
top
:
-1px
;
}
// Quick fix for labels in buttons
.btn
.label
{
position
:
relative
;
top
:
-1px
;
}
// Add hover effects, but only for links
...
...
scss/mixins/_buttons.scss
View file @
79aebf6c
...
...
@@ -45,8 +45,7 @@
}
&
.disabled
,
&
:disabled
,
fieldset
[
disabled
]
&
{
&
:disabled
{
&
:focus
,
&
.focus
{
background-color
:
$background
;
...
...
@@ -81,8 +80,7 @@
}
&
.disabled
,
&
:disabled
,
fieldset
[
disabled
]
&
{
&
:disabled
{
&
:focus
,
&
.focus
{
border-color
:
lighten
(
$color
,
20%
);
...
...
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