/**
* 全局變量
* 命名規(guī)范 —— 遵守語(yǔ)義化命名:lg-大號(hào)岸霹、md-中號(hào)、base-基本號(hào)转培、sm-小號(hào)捅膘、mini-超小號(hào)
*/
$font-weight-base: 400;
$border-color-base: rgba(101, 135, 248, 0.36);
$font-size-lg: 18px;
$font-size-md: 16px;
$color-important: #333333;
@mixin background-ad($color,$color2){
background:$color;
[data-theme="theme-dark"] & {
background:$color2;
}
}
//應(yīng)用
<style lang="scss" scoped>
.boxhome{
min-height:100vh;
// background:#fff;
@include background-ad(#fff,#000)
}
<style>