<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>stylus</anon>
    <anon>CSS</anon>
    <anon>Node.js</anon>
  </categories>
  <description>CSSのプリプロセッサはSASSとLESSの2強の様ですが、ぼくは頑なにStylusを使っています。 Stylusで変数を使って値を計算させる時、マイナスの値にしたいとかで不等号を変更する時は注意が必要です。 NGな例 変数名のまま出力される $posX = 100 .myClass background-position: -$posX 0 ↓ 出力されるCSS .myClass { background-position: -$posX 0 } コンパイルエラーになる -$変数名として計算しようとするとエラーになります。-$変数名が文字列になるからでしょう。 $posX = -$step …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2016%2F07%2F13%2F102227&quot; title=&quot;Stylus 変数の計算で不等号を変更するときのメモ。 - かもメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://stylus-lang.com/img/stylus-logo.svg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-07-13 10:22:27</published>
  <title>Stylus 変数の計算で不等号を変更するときのメモ。</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2016/07/13/102227</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
