Browse Source
+ fix: 暗黑模式 一些小问题 + 一些 scss 通用方法 (cherry picked from commit 8c149b6fa82dde3d2c03c236c699939154c65508)20230320
邴新科
3 years ago
committed by
MengYX
9 changed files with 220 additions and 16 deletions
@ -0,0 +1,39 @@ |
|||
$color-checkbox: $blue; |
|||
$color-border-el: #DCDFE6; |
|||
|
|||
$btn-radius: 6px; |
|||
|
|||
/* FORM */ |
|||
// checkbox |
|||
.el-checkbox.is-bordered{ |
|||
@include border-radius($btn-radius) ; |
|||
&:hover{ |
|||
border-color: $color-checkbox; |
|||
.el-checkbox__label{ |
|||
color: $color-checkbox; |
|||
} |
|||
} |
|||
.el-checkbox__input.is-focus{ |
|||
.el-checkbox__inner{ |
|||
border-color: $color-border-el; |
|||
} |
|||
} |
|||
&.is-checked{ |
|||
background-color: $color-checkbox; |
|||
.el-checkbox__label{ |
|||
color: white; |
|||
} |
|||
.el-checkbox__inner{ |
|||
border-color: white; |
|||
background-color: white; |
|||
&:after{ |
|||
border-color: $color-checkbox; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
// el-button |
|||
.el-button{ |
|||
@include border-radius($btn-radius) ; |
|||
} |
@ -0,0 +1,72 @@ |
|||
// box-shadow |
|||
@mixin box-shadow($value...){ |
|||
-webkit-box-shadow: $value; |
|||
-moz-box-shadow: $value; |
|||
box-shadow: $value; |
|||
} |
|||
|
|||
// border-radius |
|||
@mixin border-radius($corner...){ |
|||
-webkit-border-radius: $corner; |
|||
-moz-border-radius: $corner; |
|||
border-radius: $corner; |
|||
} |
|||
|
|||
@mixin clearfix(){ |
|||
&:after{ |
|||
content: ''; |
|||
display: block; |
|||
clear: both; |
|||
visibility: hidden; |
|||
} |
|||
} |
|||
|
|||
@mixin transform($value){ |
|||
-webkit-transform: $value; |
|||
-moz-transform: $value; |
|||
-ms-transform: $value; |
|||
-o-transform: $value; |
|||
transform: $value; |
|||
} |
|||
|
|||
@mixin transition($value...){ |
|||
-webkit-transition: $value; |
|||
-moz-transition: $value; |
|||
-ms-transition: $value; |
|||
-o-transition: $value; |
|||
transition: $value; |
|||
} |
|||
|
|||
@mixin animation($value){ |
|||
animation: $value; |
|||
-webkit-animation: $value; |
|||
} |
|||
|
|||
@mixin linear-gradient($direct, $colors){ |
|||
background: linear-gradient($direct, $colors); |
|||
background: -webkit-linear-gradient($direct, $colors); |
|||
background: -moz-linear-gradient($direct, $colors); |
|||
} |
|||
|
|||
@mixin backdrop-filter($value){ |
|||
backdrop-filter: $value ; |
|||
-webkit-backdrop-filter: $value; |
|||
} |
|||
|
|||
|
|||
/* |
|||
Extension |
|||
*/ |
|||
|
|||
.unselectable { |
|||
-webkit-user-select: none; |
|||
-moz-user-select: none; |
|||
-ms-user-select: none; |
|||
user-select: none; |
|||
} |
|||
|
|||
.btn-like{ |
|||
&:active{ |
|||
@include transform(translateY(2px)) |
|||
} |
|||
} |
@ -1,5 +1,26 @@ |
|||
@import "variables"; |
|||
@import "utility"; |
|||
@import "gaps"; |
|||
@import "element-ui-overrite"; |
|||
|
|||
@import "normal"; |
|||
@import "dark-mode"; // dark-mode 放在 normal 后面,以获得更高优先级 |
|||
@import "dark-mode"; // dark-mode 放在 normal 后面,以获得更高优先级 |
|||
|
|||
|
|||
// 首页弹窗提示信息的 更新信息 面板 |
|||
.update-info{ |
|||
@include border-radius(8px); |
|||
overflow: hidden; |
|||
border: 1px solid $color-border-el; |
|||
margin: 10px 0; |
|||
.update-title{ |
|||
font-size: $fz-mini-title; |
|||
padding: 5px 10px; |
|||
background-color: $color-border-el; |
|||
} |
|||
.update-content{ |
|||
font-size: $fz-mini-content; |
|||
line-height: 1.5; |
|||
padding: 10px; |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue