File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,15 @@ namespace Sass {
72
72
append_indentation ();
73
73
append_token (" @media" , rule);
74
74
append_mandatory_space ();
75
- in_media_block = true ;
76
- in_media_block = false ;
77
75
if (rule->block ()) {
78
76
rule->block ()->perform (this );
79
77
}
80
78
}
81
79
82
80
void Inspect::operator ()(CssMediaRule* rule)
83
81
{
82
+ if (output_style () == NESTED)
83
+ indentation += rule->tabs ();
84
84
append_indentation ();
85
85
append_token (" @media" , rule);
86
86
append_mandatory_space ();
@@ -97,6 +97,9 @@ namespace Sass {
97
97
if (rule->block ()) {
98
98
rule->block ()->perform (this );
99
99
}
100
+ in_media_block = false ;
101
+ if (output_style () == NESTED)
102
+ indentation -= rule->tabs ();
100
103
}
101
104
102
105
void Inspect::operator ()(CssMediaQuery* query)
@@ -1056,6 +1059,9 @@ namespace Sass {
1056
1059
{
1057
1060
if (sel->hasPreLineFeed ()) {
1058
1061
append_optional_linefeed ();
1062
+ if (!in_wrapped && output_style () == NESTED) {
1063
+ append_indentation ();
1064
+ }
1059
1065
}
1060
1066
const SelectorComponent* prev = nullptr ;
1061
1067
for (auto & item : sel->elements ()) {
You can’t perform that action at this time.
0 commit comments