|
@@ -163,6 +163,7 @@
|
|
|
line-height: 26px;
|
|
|
font-size: 12px;
|
|
|
color: $--color-black;
|
|
|
+ width: 160px;
|
|
|
}
|
|
|
|
|
|
@include e(btn) {
|
|
@@ -202,24 +203,99 @@
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
line-height: normal;
|
|
|
+ height: 40px;
|
|
|
+
|
|
|
+ @include when(disabled) {
|
|
|
+ .el-color-picker__trigger {
|
|
|
+ cursor: not-allowed;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @include m(medium) {
|
|
|
+ height: 36px;
|
|
|
+
|
|
|
+ .el-color-picker__trigger {
|
|
|
+ height: 36px;
|
|
|
+ width: 36px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-color-picker__mask {
|
|
|
+ height: 34px;
|
|
|
+ width: 34px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @include m(small) {
|
|
|
+ height: 32px;
|
|
|
+
|
|
|
+ .el-color-picker__trigger {
|
|
|
+ height: 32px;
|
|
|
+ width: 32px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-color-picker__mask {
|
|
|
+ height: 30px;
|
|
|
+ width: 30px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-color-picker__icon,
|
|
|
+ .el-color-picker__empty {
|
|
|
+ transform: translate3d(-50%, -50%, 0) scale(0.6);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @include m(mini) {
|
|
|
+ height: 28px;
|
|
|
+
|
|
|
+ .el-color-picker__trigger {
|
|
|
+ height: 28px;
|
|
|
+ width: 28px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-color-picker__mask {
|
|
|
+ height: 26px;
|
|
|
+ width: 26px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-color-picker__icon,
|
|
|
+ .el-color-picker__empty {
|
|
|
+ transform: translate3d(-50%, -50%, 0) scale(0.6);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @include e(mask) {
|
|
|
+ height: 38px;
|
|
|
+ width: 38px;
|
|
|
+ border-radius: 4px;
|
|
|
+ position: absolute;
|
|
|
+ top: 1px;
|
|
|
+ left: 1px;
|
|
|
+ z-index: 1;
|
|
|
+ cursor: not-allowed;
|
|
|
+ background-color: rgba(255, 255, 255, .7);
|
|
|
+ }
|
|
|
|
|
|
@include e(trigger) {
|
|
|
display: inline-block;
|
|
|
box-sizing: border-box;
|
|
|
- height: 36px;
|
|
|
- padding: 6px;
|
|
|
- border: 1px solid #bfcbd9;
|
|
|
+ height: 40px;
|
|
|
+ width: 40px;
|
|
|
+ padding: 4px;
|
|
|
+ border: 1px solid #e6e6e6;
|
|
|
border-radius: 4px;
|
|
|
font-size: 0;
|
|
|
+ position: relative;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
|
|
|
@include e(color) {
|
|
|
position: relative;
|
|
|
- display: inline-block;
|
|
|
+ display: block;
|
|
|
box-sizing: border-box;
|
|
|
- border: 1px solid #666;
|
|
|
- width: 22px;
|
|
|
- height: 22px;
|
|
|
+ border: 1px solid #999;
|
|
|
+ border-radius: $--border-radius-small;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
text-align: center;
|
|
|
|
|
|
@include when(alpha) {
|
|
@@ -237,20 +313,21 @@
|
|
|
|
|
|
@include e(empty) {
|
|
|
font-size: 12px;
|
|
|
- vertical-align: middle;
|
|
|
- color: #666;
|
|
|
+ color: #999;
|
|
|
position: absolute;
|
|
|
- top: 4px;
|
|
|
- left: 4px;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate3d(-50%, -50%, 0) scale(0.8);
|
|
|
}
|
|
|
|
|
|
@include e(icon) {
|
|
|
display: inline-block;
|
|
|
- position: relative;
|
|
|
- top: -6px;
|
|
|
- margin-left: 8px;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate3d(-50%, -50%, 0) scale(0.8);
|
|
|
width: 12px;
|
|
|
- color: #888;
|
|
|
+ color: $--color-white;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
@@ -259,7 +336,8 @@
|
|
|
z-index: 10;
|
|
|
padding: 6px;
|
|
|
background-color: $--color-white;
|
|
|
- border: 1px solid $--color-black;
|
|
|
+ border: 1px solid $--border-color-lighter;
|
|
|
+ border-radius: $--border-radius-base;
|
|
|
box-shadow: $--dropdown-menu-box-shadow;
|
|
|
}
|
|
|
}
|