108 lines
2.0 KiB
SCSS
108 lines
2.0 KiB
SCSS
@charset "utf-8";
|
|
/*--------------------
|
|
默认设置
|
|
-------------------*/
|
|
* {
|
|
padding: 0;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
// -webkit-user-select: none;
|
|
// -moz-user-select: none;
|
|
/*touch-action: none; */
|
|
// -webkit-transform: translate3d(0, 0, 0);
|
|
// -moz-transform: translate3d(0, 0, 0);
|
|
// -ms-transform: translate3d(0, 0, 0);
|
|
// transform: translate3d(0, 0, 0);
|
|
}
|
|
|
|
*:not(input, textarea) {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
//-webkit-touch-callout:none;
|
|
//user-select: none;
|
|
//-webkit-user-select: none;
|
|
}
|
|
|
|
html {
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
-webkit-tap-highlight: rgba(0, 0, 0, 0);
|
|
-webkit-text-size-adjust: none;
|
|
overflow: -moz-scrollbars-vertical;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-size: 100px;
|
|
}
|
|
|
|
body {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
font: normal 12px / auto "Helvetica Neue", Helvetica, "Micorsoft YaHei", Arial,
|
|
sans-serif;
|
|
/* -webkit-user-select: none;*/
|
|
}
|
|
|
|
|
|
/*--------------------
|
|
自定义样式
|
|
-------------------*/
|
|
@font-face {
|
|
font-family: "FZZY_Regular";
|
|
src: url(@/assets/font/FZZY_Regular.ttf) format("truetype");
|
|
}
|
|
|
|
* {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
// DIV宽高
|
|
@mixin box($width, $height) {
|
|
width: $width;
|
|
height: $height;
|
|
}
|
|
|
|
// DIV宽高定位
|
|
@mixin pos($width, $height, $left, $top) {
|
|
width: $width;
|
|
height: $height;
|
|
position: absolute;
|
|
left: $left;
|
|
top: $top;
|
|
}
|
|
|
|
// DIV背景
|
|
@mixin bg_pos($src) {
|
|
background-image: url("@/assets/images/" + $src);
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
// flex居中定位
|
|
@mixin flex() {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
// 全屏样式
|
|
@mixin fixed() {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
// flex垂直水平居中
|
|
@mixin flexCen() {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|