LoginSignup
4
3

More than 5 years have passed since last update.

Stylus calc計算で複数変数を用いる場合の書き方

Last updated at Posted at 2019-01-17

例が思いつかなくて、変なコードですが
下記みたいに書けばOKでした。

image_width = 100px;
image_height = 120px;

.mainImage {
  left "calc(%s + %s)" % (image_width image_height);
}


4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3