文字列にクォーテーションを付ける

文字列にクォーテーションを付けるには、quote関数を使用します。

構文

							quote(文字列)
						

サンプルコード

SCSS

$str : abcdefg;
 
.sample::before {
    content:quote($str);
}

コンパイル後:CSS

.sample::before {
    content:"abcdefg";
}

SASS・SCSS逆引きリファレンス一覧へ戻る