frontend:scss
差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
frontend:scss [2016/09/09 09:46] – 创建 memory | frontend:scss [2023/12/03 10:24] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
====== SCSS / SASS ====== | ====== SCSS / SASS ====== | ||
+ | |||
+ | {{tag> | ||
===== Tricks ===== | ===== Tricks ===== | ||
行 24: | 行 26: | ||
} | } | ||
} | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== AutoPrefix ==== | ||
+ | |||
+ | 以下是为一些不会被[[https:// | ||
+ | |||
+ | <code css _prefix.scss> | ||
+ | /* autoprefixer will not auto prefix user-select */ | ||
+ | @mixin user-select($select) { | ||
+ | -webkit-user-select: | ||
+ | -moz-user-select: | ||
+ | -ms-user-select: | ||
+ | user-select: | ||
+ | } | ||
+ | |||
+ | @mixin placeholder($color) { | ||
+ | /* Firefox */ | ||
+ | &:: | ||
+ | color: $color; | ||
+ | opacity: 1; /* Override Firefox' | ||
+ | } | ||
+ | &: | ||
+ | &:: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== CSS实现折行 ==== | ||
+ | |||
+ | From [[https:// | ||
+ | |||
+ | <code css text-overflow.scss> | ||
+ | /* | ||
+ | * Text overflow | ||
+ | * Requires inline-block or block for proper styling | ||
+ | */ | ||
+ | |||
+ | @mixin text-overflow() { | ||
+ | overflow: hidden; | ||
+ | text-overflow: | ||
+ | white-space: | ||
} | } | ||
</ | </ |
frontend/scss.1473385613.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)