-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
The problem occurs when using at-rules to set element parameters at different breakpoints. The compiled CSS outputs media queries in the wrong order, which breaks the expected cascading behavior.
Steps to reproduce:
- use somewhere
md_W100p( e.g., hero-section) in one template with layout; - somewhere in the different template (e.g., the template for the footer) use the following utilities:
sm_W60p md_W100p; - you may see that in the
style.min.cssminified css-file there is a wrong order of at-rules that breaks the behaviour of the layout.
Here are the examples illustrating the described behaviour:
<!-- In the hero-section -->
<img class="D Mxw480 W80p md_W100p" >
<!-- In the footer -->
<div class="W100p sm_W60p md_W100p C-$gray200 D-f Fld-r Flw-w Jc-c md_P0;8u">
...
</div>In style.min.css, the .md_W100p class appears before .sm_W60p, which violates the expected cascade order and breaks responsive behavior
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working