L20n/Features/Conditional blocks: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 23: Line 23:
}>
}>
</pre>
</pre>
This syntax would also allow for @import commands to be encapsulated within such a conditional block.
This syntax would also allow for @import commands to be encapsulated within such a conditional block.
Alternatively, we may just add an if clause to @import command:
<pre>
@import ("path/to/resource") if (@width<600)
</pre>


== status ==
== status ==
Line 43: Line 39:
We plan to implement the if clause for @import command. This will also mean that we encourage groups of entities that are to be used in certain
We plan to implement the if clause for @import command. This will also mean that we encourage groups of entities that are to be used in certain
conditions to be exported into a separate file. This should increase readability and will allow us to avoid increasing complexity.
conditions to be exported into a separate file. This should increase readability and will allow us to avoid increasing complexity.
<pre>
@import ("path/to/resource") if (@width<600)
</pre>
Confirmed users
1,016

edits

Navigation menu