You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say, I want to declare variables in plain.css file:
variable="value"
and import that in another.css file:
@import"plain.css";
.class{
property: variable;// variable is treated as a literal value of property
}
This compiles as intended if we declare the variable directly or if we change the extension of plain.css to .styl.
Now, I understand that the syntax will be messy in some editors, but considering that a single .css file with stylus content can be compiled normally in the first place, so why not allow plain .css to be treated just like an .styl file when imported?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Say, I want to declare variables in
plain.css
file:and import that in
another.css
file:This compiles as intended if we declare the variable directly or if we change the extension of
plain.css
to.styl
.Now, I understand that the syntax will be messy in some editors, but considering that a single
.css
file with stylus content can be compiled normally in the first place, so why not allow plain.css
to be treated just like an.styl
file when imported?Beta Was this translation helpful? Give feedback.
All reactions