Skip to content

Commit 317a5b1

Browse files
committed
1.0.0-beta.20
1 parent 63bf024 commit 317a5b1

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

dist/cell.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,10 @@ $module: null !default;
492492
$pipedContexts: '';
493493
$excludeRootSelector: false;
494494

495+
@if $context == '' {
496+
$context: null;
497+
}
498+
495499
@if $pipeContexts {
496500
@each $item in $context {
497501
@if str-index($item, ':') == 1 {
@@ -1919,7 +1923,7 @@ $css-properties: (
19191923
$context: if(str-index($component, '$') == 1, str-slice($component, 2), ($module, $component));
19201924

19211925
@include context($context) {
1922-
@include parse-cq($value);
1926+
@include parse-cq($value, $prevContext: ($context, ''));
19231927
}
19241928
}
19251929

@@ -2111,8 +2115,8 @@ $css-properties: (
21112115
// @TODO this needs to identify if nested within itself, not nested in general
21122116
$nested: &;
21132117

2118+
// We are creating a root module, so create a global variable
21142119
@if not $nested {
2115-
// We are creating a root module, so create a global variable
21162120
$module: $modules !global;
21172121
$this: $module !global;
21182122
}

0 commit comments

Comments
 (0)