iT邦幫忙

0
  • Variable
    $variablename: value
    define all global variables in "_globals.sass"

  • Nesting

    • Nested Selectors
    • Nested Properties
  • @import / partials file

    • @import filename
    • _filename.sass not be transpiled directly
  • @mixin= and @include+
    https://ithelp.ithome.com.tw/upload/images/20190627/20111666IbOoVqA6Pq.png

  • @extend

    • avoid having to write multiple class names on HTML elements
      https://ithelp.ithome.com.tw/upload/images/20190627/20111666HU6VNH0zFW.png

參考資料
https://sass-lang.com/guide
https://www.w3schools.com/sass/sass_variables.asp


尚未有邦友留言

立即登入留言