タグ

sassに関するshagggyのブックマーク (2)

  • If For Each While – TheSassWay.com

    This time the code executed once and again is evaluated as it is done by — the block was executed once and again. Whenever the specified condition is true, the statement is repeated if it is true even if the condition is false. For – extends an input counter a specified size when passed through a block of code. Table of contents how do you use for and while?can we use for loop in scss?what is if f

  • Media Queriesの効率的な書き方 - Qiita

    メディアクエリは要素ごとに記述する メディアクエリはまとめて書いたり外部ファイル化することもできますが、要素ごとに記述するほうが効率がいいです。 離れた場所にメディアクエリの記述があると、修正のたびにあっちこっち行ったりきたりして手間がかかります。 また、見通しが悪くなるのでメディアクエリごとのルールの影響が把握しづらく、修正漏れが発生する確率が高くなります。 メディアクエリの記述はmixinで書く 自分は以下のようなmixinを定義して、 @mixin max-screen($break-point) { @media screen and (max-width: $break-point) { @content; } } @mixin min-screen($break-point) { @media screen and (min-width: $break-point) { @co

    Media Queriesの効率的な書き方 - Qiita
    shagggy
    shagggy 2016/10/27
    メディアクエリのmixin
  • 1