Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 74b683f

Browse files
committed
fix(notification drawer): Fixed tidle-escaped strings in calc
Wrong tidle-escaped strings cause a parsing exception when using the postcss-calc nodejs module. Those are now fixed as specified in the readme.
1 parent 35e1cd3 commit 74b683f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/less/notifications-drawer.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
top: @drawer-pf-top-vertical; //menu height;
218218
@media (max-width: @screen-xs-max) {
219219
width:100%;
220-
height: calc(~"100vh - @{drawer-pf-top-vertical}");
220+
height: ~"calc(100vh - @{drawer-pf-top-vertical})";
221221
}
222222

223223
}
@@ -242,8 +242,8 @@
242242
border-top: 0;
243243
@media (max-width: @screen-xs-max) {
244244
width:100%;
245-
height: calc(~"100vh - @{drawer-pf-top-horizontal} - 32px");
246-
top:calc(~"@{drawer-pf-top-horizontal} + 10px");
245+
height: ~"calc(100vh - @{drawer-pf-top-horizontal} - 32px)";
246+
top: ~"calc(@{drawer-pf-top-horizontal} + 10px)";
247247
}
248248
}
249249
.drawer-pf-trigger-icon { cursor: pointer; }

src/sass/converted/patternfly/_notifications-drawer.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
top: $drawer-pf-top-vertical; //menu height;
218218
@media (max-width: $screen-xs-max) {
219219
width:100%;
220-
height: calc(unquote("100vh - #{$drawer-pf-top-vertical}"));
220+
height: unquote("calc(100vh - #{$drawer-pf-top-vertical})");
221221
}
222222

223223
}
@@ -242,8 +242,8 @@
242242
border-top: 0;
243243
@media (max-width: $screen-xs-max) {
244244
width:100%;
245-
height: calc(unquote("100vh - #{$drawer-pf-top-horizontal} - 32px"));
246-
top:calc(unquote("#{$drawer-pf-top-horizontal} + 10px"));
245+
height: unquote("calc(100vh - #{$drawer-pf-top-horizontal} - 32px)");
246+
top: unquote("calc(#{$drawer-pf-top-horizontal} + 10px)");
247247
}
248248
}
249249
.drawer-pf-trigger-icon { cursor: pointer; }

src/sass/converted/rcue/_notifications-drawer.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
top: $drawer-pf-top-vertical; //menu height;
218218
@media (max-width: $screen-xs-max) {
219219
width:100%;
220-
height: calc(unquote("100vh - #{$drawer-pf-top-vertical}"));
220+
height: unquote("calc(100vh - #{$drawer-pf-top-vertical})");
221221
}
222222

223223
}
@@ -242,8 +242,8 @@
242242
border-top: 0;
243243
@media (max-width: $screen-xs-max) {
244244
width:100%;
245-
height: calc(unquote("100vh - #{$drawer-pf-top-horizontal} - 32px"));
246-
top:calc(unquote("#{$drawer-pf-top-horizontal} + 10px"));
245+
height: unquote("calc(100vh - #{$drawer-pf-top-horizontal} - 32px)");
246+
top: unquote("calc(#{$drawer-pf-top-horizontal} + 10px)");
247247
}
248248
}
249249
.drawer-pf-trigger-icon { cursor: pointer; }

0 commit comments

Comments
 (0)