styd-less-base
v1.0.8
Published
less base style project
Downloads
3
Readme
直接引入使用
使用默认的变量的normalize和引入mixins的简写语法
@import '~styd-less-base'
如果需要使用normalize 并且需要自定义变量
@import '~styd-less-base/initial-variables'
// 复写相关字体
// 预定义字体
// @fontSans: "Helvetica Neue", Helvetica, "Microsoft YaHei", STHeiTi, sans-serif;
// @fontSerif: Georgia, Times, serif;
// @fontCode: Menlo, Monaco, Consolas, "Courier New", monospace;
// @fontWWW: "PingFang SC", "Segoe UI", "Helvetica Neue", Helvetica, "Microsoft YaHei", STHeiTi, SimHei, Arial, sans-serif;
// @fontPC: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", STHeiTi, SimHei, sans-serif;
// @fontMobile: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
// 基础字体 默认@fontSans
@fontBase: @fontSans;
// 基础字号 默认1.2rem
@fontSize: 1.2rem;
// 如需在mobile平台使用请设置为true 会消除user-select
@mobile: false;
// 引入normailzie和mixins
@import '~styd-less-base/main-normal';
如果只是使用mixins
@import '~styd-less-base/main-atom';