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
f4a00dc0
Commit
f4a00dc0
authored
10 years ago
by
Gleb Mazovetskiy
Browse files
Options
Download
Plain Diff
Merge pull request #58 from twbs/libsass-185
Remove libsass @media nesting bug workaround
parents
3be590dd
d6a5ebf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/mixins/_breakpoints.scss
+2
-14
scss/mixins/_breakpoints.scss
with
2 additions
and
14 deletions
+2
-14
scss/mixins/_breakpoints.scss
+
2
-
14
View file @
f4a00dc0
...
...
@@ -68,21 +68,9 @@
// No minimum for the smallest breakpoint, and no maximum for the largest one.
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
@mixin
media-breakpoint-only
(
$name
,
$breakpoints
:
$grid-breakpoints
)
{
// Nested media query combination does not work in libsass yet
// https://github.com/sass/libsass/issues/185
// Work around until the issue is resolved:
$min
:
breakpoint-min
(
$name
,
$breakpoints
);
$max
:
breakpoint-max
(
$name
,
$breakpoints
);
@if
$min
and
$max
{
@media
(
min-width
:
$min
)
and
(
max-width
:
$max
)
{
@include
media-breakpoint-up
(
$name
,
$breakpoints
)
{
@include
media-breakpoint-down
(
$name
,
$breakpoints
)
{
@content
;
}
}
@else
{
// One of min or max is a no-op, so this branch is not affected by libsass#185
@include
media-breakpoint-up
(
$name
,
$breakpoints
)
{
@include
media-breakpoint-down
(
$name
,
$breakpoints
)
{
@content
;
}
}
}
}
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