Skip to content

Commit e7db182

Browse files
committed
Merge branch 'issue_1569bis'
2 parents 0c9624d + 53548ec commit e7db182

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Error: Base-level rules cannot contain the parent-selector-referencing character '&'.
2+
on line 30 of /home/saper/sw/libsass/sass-spec/spec/libsass-todo-tests/parent-selector/missing/input.scss, in `@content'
3+
from line 22 of /home/saper/sw/libsass/sass-spec/spec/libsass-todo-tests/parent-selector/missing/input.scss, in `grid-media-query'
4+
from line 29 of /home/saper/sw/libsass/sass-spec/spec/libsass-todo-tests/parent-selector/missing/input.scss
5+
Use --trace for backtrace.

spec/libsass-todo-tests/parent-selector/missing/expected_output.css

Whitespace-only changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
$tablet-portrait: 768px;
2+
$tablet-landscape: 980px;
3+
$desk-normal: 1120px;
4+
$desk-big: 1280px;
5+
$grid-breakpoints-immobile: (
6+
'tablet-portrait': '(min-width: ' + $tablet-portrait + ') and (max-width: ' + $tablet-landscape + ')',
7+
'tablet-landscape': '(min-width: ' + $tablet-landscape + ') and (max-width: ' + $desk-normal + ')',
8+
'desk-normal': '(min-width: ' + $desk-normal + ') and (max-width: ' + $desk-big + ')',
9+
'desk-big': '(min-width: ' + $desk-big + ')'
10+
);
11+
@mixin grid-media-query($media-query, $breakpointDefinitions) {
12+
$breakpoint-found: false;
13+
14+
@each $breakpoint, $breakpointvalue in $breakpointDefinitions{
15+
$name: $breakpoint;
16+
$declaration: $breakpointvalue;
17+
18+
@if $media-query == $name and $declaration{
19+
$breakpoint-found: true;
20+
21+
@media only screen and #{$declaration} {
22+
@content;
23+
}
24+
}
25+
}
26+
}
27+
28+
@each $name in map-keys($grid-breakpoints-immobile) {
29+
@include grid-media-query($name, $grid-breakpoints-immobile) {
30+
body.immobile & {
31+
margin-bottom: 0;
32+
}
33+
}
34+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
65

0 commit comments

Comments
 (0)