1.全局配置
src/css/app.css
// app global css in SCSS form
@import "src/css/restcss.css";
:root {
color: #fff;
background-color: #001b41;
}
$scadaMaxHeight: 288px;
$scadaMinHeight: 188px;
$scadaHeadBorderBottom: 15px;
$scadaHeadBorderColor: #f0f3f5;
$scadaBackColor: #001b41;
@mixin whiteNowrap() {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
@mixin flexDirection($dir: column) {
display: flex;
flex-direction: $dir;
}
@mixin flexLayout($justify: center, $align: center) {
justify-content: $justify;
align-items: $align;
}
@mixin scadaBorder($width: 15px, $style: solid, $color: #f0f3f5) {
border: $width $style $color;
}
@mixin scadaBorderTop($width: 15px, $style: solid, $color: #f0f3f5) {
border-bottom: $width $style $color;
}
@mixin scadaBorderRight($width: 15px, $style: solid, $color: #f0f3f5) {
border-right: $width $style $color;
}
@mixin scadaBorderBottom($width: 15px, $style: solid, $color: #f0f3f5) {
border-bottom: $width $style $color;
}
@mixin scadaBorderLeft($width: 15px, $style: solid, $color: #f0f3f5) {
border-left: $width $style $color;
}