/* 规范全局样式 */ @charset "utf-8"; $primary: #1baeae; $orange: #ff6b01; $back-color: #f7fafe; $font-color: #aaaaaa; * { -webkit-box-sizing: border-box; -ms-box-sizing: border-box; -o-box-sizing: border-box; box-sizing: border-box; -webkit-text-size-adjust: none; margin: 0; padding: 0; } html { font: 14px/1.5 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif; -webkit-text-size-adjust: none; -moz-text-size-adjust: none; -o-text-size-adjust: none; -ms-text-size-adjust: none; text-size-adjust: none; background: #f5f5f5 !important; width: 100%; height: 100%; } body { color: #333; background-size: 100%; background-color: #f8f6f6; margin: 0 auto !important; max-width: 769Px; min-width: 320Px; width: 100%; min-height: 100%; -webkit-tap-highlight-color: transparent; } header { width: 100%; max-width: 769Px; min-width: 320Px; } article, aside, dialog, figure, footer, header, nav, section { display: block; } a, b, span, label, i { display: inline-block; } img { vertical-align: middle; width: 100%; border: 0; } input, button, textarea { border: none; outline: none; } a { text-decoration: none; color: #393900; cursor: pointer; &:hover { text-decoration: none; } &:visited { color: #393900; text-decoration: none; } } ul, li { margin: 0; padding: 0; list-style-type: none; } table { border-collapse: collapse; border-spacing: 0; width: 100%; text-align: center; } th, td { padding: 0; empty-cells: show; } /*--------浮动 清除浮动--------*/ .fl { float: left; } .fr { float: right; } .clear-both { clear: both; height: 0px; line-height: 0px; font-size: 0px; } .clear-fix { zoom: 1; &:after { content: ''; clear: both; display: block; height: 0; visibility: hidden; } } // 水平垂直居中 @mixin center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } // flex 垂直水平居中 @mixin flex-center { display: flex; justify-content: center; align-items: center; } // 背景图 @mixin back-img($url) { background-image: url($url); background-repeat: no-repeat; background-size: 100% 100%; } // 圆角 @mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; -o-border-radius: $radius; border-radius: $radius; } //宽高 @mixin wh($width, $height) { width: $width; height: $height; } //字体大小,颜色 @mixin sc($size, $color) { font-size: $size; color: $color; } //下拉加载样式 .refresh-txt { display: flex; align-items: center; justify-content: center; .icon { margin-right: 5px; width: 18px; } .is-spinning { animation: spin 2s linear infinite; } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } //加载框的样式 .loading-style { background-color: #f5f5f5; color: #333; } .custom-toast { .is-spinning { animation: spin 2s linear infinite; } } /* 定义过渡效果 */ .custom-toast-enter-active, .custom-toast-leave-active { transition: opacity 0.3s; } .custom-toast-enter, .custom-toast-leave-to { opacity: 0; }