scss flex mixin scss

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scss flex mixin scss相关的知识,希望对你有一定的参考价值。

@mixin flex($align: null, $direction: null) {
  display: flex;
  @if $align {
    align-items: $align;
  }
  @if $direction {
    flex-direction: $direction;
  }
}

.header {
  @include flex;
}

.content {
  @include flex(center, column);
}

.footer {
  @include flex;
}

以上是关于scss flex mixin scss的主要内容,如果未能解决你的问题,请参考以下文章

scss Flexbox SASS Mixin:11。flex-basis

scss 来自Foundation(Zurb)的Flex Video Mixin的修改版本https://github.com/zurb/foundation/blob/master/scss/fou

scss よく使ってる便利そうなmixin集(Scss mixin collection)

scss Mixins.scss

scss SCSS Breakpoints Mixin

scss CSS-断点,mixins.scss