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
807a837a
Commit
807a837a
authored
Jan 05, 2015
by
Chris Rebert
Committed by
Gleb Mazovetskiy
Jan 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove libsass @media nesting bug workaround
https://github.com/sass/libsass/issues/185
has been fixed. Refs #48
parent
720d02c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
scss/mixins/_breakpoints.scss
scss/mixins/_breakpoints.scss
+2
-14
No files found.
scss/mixins/_breakpoints.scss
View file @
807a837a
...
...
@@ -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
;
}
}
}
}
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