chushihua
This commit is contained in:
+105
@@ -0,0 +1,105 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(alert) {
|
||||
width: 100%;
|
||||
padding: $--alert-padding;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
border-radius: $--alert-border-radius;
|
||||
position: relative;
|
||||
background-color: $--color-white;
|
||||
overflow: hidden;
|
||||
opacity: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: opacity .2s;
|
||||
|
||||
@include when(center) {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@include m(success) {
|
||||
background-color: $--alert-success-color;
|
||||
color: $--color-success;
|
||||
|
||||
.el-alert__description {
|
||||
color: $--color-success;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(info) {
|
||||
background-color: $--alert-info-color;
|
||||
color: $--color-info;
|
||||
|
||||
.el-alert__description {
|
||||
color: $--color-info;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(warning) {
|
||||
background-color: $--alert-warning-color;
|
||||
color: $--color-warning;
|
||||
|
||||
.el-alert__description {
|
||||
color: $--color-warning;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(error) {
|
||||
background-color: $--alert-danger-color;
|
||||
color: $--color-danger;
|
||||
|
||||
.el-alert__description {
|
||||
color: $--color-danger;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
display: table-cell;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
font-size: $--alert-icon-size;
|
||||
width: $--alert-icon-size;
|
||||
@include when(big) {
|
||||
font-size: $--alert-icon-large-size;
|
||||
width: $--alert-icon-large-size;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
font-size: $--alert-title-font-size;
|
||||
line-height: 18px;
|
||||
@include when(bold) {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
& .el-alert__description {
|
||||
font-size: $--alert-description-font-size;
|
||||
margin: 5px 0 0 0;
|
||||
}
|
||||
|
||||
@include e(closebtn) {
|
||||
font-size: $--alert-close-font-size;
|
||||
color: $--color-text-placeholder;
|
||||
opacity: 1;
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 15px;
|
||||
cursor: pointer;
|
||||
|
||||
@include when(customed) {
|
||||
font-style: normal;
|
||||
font-size: $--alert-close-customed-font-size;
|
||||
top: 9px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-alert-fade-enter,
|
||||
.el-alert-fade-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
@import "mixins/mixins";
|
||||
|
||||
@include b(aside) {
|
||||
overflow: auto;
|
||||
box-sizing: border-box;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
@import "./input.scss";
|
||||
@import "./scrollbar.scss";
|
||||
@import "./popper";
|
||||
|
||||
@include b(autocomplete) {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@include b(autocomplete-suggestion) {
|
||||
margin: 5px 0;
|
||||
box-shadow: $--box-shadow-light;
|
||||
border-radius: $--border-radius-base;
|
||||
border: 1px solid $--border-color-light;
|
||||
box-sizing: border-box;
|
||||
background-color: $--color-white;
|
||||
|
||||
@include e(wrap) {
|
||||
max-height: 280px;
|
||||
padding: 10px 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@include e(list) {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
& li {
|
||||
padding: 0 20px;
|
||||
margin: 0;
|
||||
line-height: 34px;
|
||||
cursor: pointer;
|
||||
color: $--color-text-regular;
|
||||
font-size: $--font-size-base;
|
||||
list-style: none;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:hover {
|
||||
background-color: $--select-option-hover-background;
|
||||
}
|
||||
|
||||
&.highlighted {
|
||||
background-color: $--select-option-hover-background;
|
||||
}
|
||||
|
||||
&.divider {
|
||||
margin-top: 6px;
|
||||
border-top: 1px solid $--color-black;
|
||||
}
|
||||
|
||||
&.divider:last-child {
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(loading) {
|
||||
li {
|
||||
text-align: center;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
font-size: 20px;
|
||||
color: #999;
|
||||
@include utils-vertical-center;
|
||||
|
||||
&:hover {
|
||||
background-color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
& .el-icon-loading {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(badge) {
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
|
||||
@include e(content) {
|
||||
background-color: $--badge-fill;
|
||||
border-radius: $--badge-radius;
|
||||
color: $--color-white;
|
||||
display: inline-block;
|
||||
font-size: $--badge-font-size;
|
||||
height: $--badge-size;
|
||||
line-height: $--badge-size;
|
||||
padding: 0 $--badge-padding;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
border: 1px solid $--color-white;
|
||||
|
||||
@include when(fixed) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: #{1 + $--badge-size / 2};
|
||||
transform: translateY(-50%) translateX(100%);
|
||||
|
||||
@include when(dot) {
|
||||
right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(dot) {
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
padding: 0;
|
||||
right: 0;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
@each $type in (primary, success, warning, info, danger) {
|
||||
@include m($type) {
|
||||
@if $type == primary {
|
||||
background-color: $--color-primary;
|
||||
} @else if $type == success {
|
||||
background-color: $--color-success;
|
||||
} @else if $type == warning {
|
||||
background-color: $--color-warning;
|
||||
} @else if $type == info {
|
||||
background-color: $--color-info;
|
||||
} @else {
|
||||
background-color: $--color-danger;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
@import "common/transition.scss";
|
||||
@import "icon.scss";
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
|
||||
@include b(breadcrumb) {
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
@include utils-clearfix;
|
||||
|
||||
@include e(separator) {
|
||||
margin: 0 9px;
|
||||
font-weight: bold;
|
||||
color: $--color-text-placeholder;
|
||||
|
||||
&[class*=icon] {
|
||||
margin: 0 6px;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(item) {
|
||||
float: left;
|
||||
|
||||
@include e(inner) {
|
||||
color: $--color-text-regular;
|
||||
|
||||
&.is-link, & a {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
transition: $--color-transition-base;
|
||||
color: $--color-text-primary;
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
.el-breadcrumb__inner,
|
||||
.el-breadcrumb__inner a {
|
||||
&, &:hover {
|
||||
font-weight: normal;
|
||||
color: $--color-text-regular;
|
||||
cursor: text;
|
||||
}
|
||||
}
|
||||
|
||||
.el-breadcrumb__separator {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+260
@@ -0,0 +1,260 @@
|
||||
@charset "UTF-8";
|
||||
@import "common/var";
|
||||
@import "mixins/button";
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
|
||||
@include b(button) {
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
background: $--button-default-background-color;
|
||||
border: $--border-base;
|
||||
border-color: $--button-default-border-color;
|
||||
color: $--button-default-font-color;
|
||||
-webkit-appearance: none;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
margin: 0;
|
||||
transition: .1s;
|
||||
font-weight: $--button-font-weight;
|
||||
@include utils-user-select(none);
|
||||
& + & {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
@include button-size($--button-padding-vertical, $--button-padding-horizontal, $--button-font-size, $--button-border-radius);
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $--color-primary;
|
||||
border-color: $--color-primary-light-7;
|
||||
background-color: $--color-primary-light-9;
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
|
||||
border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
& [class*="el-icon-"] {
|
||||
& + span {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(plain) {
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: $--color-white;
|
||||
border-color: $--color-primary;
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: $--color-white;
|
||||
border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
|
||||
color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(active) {
|
||||
color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
|
||||
border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $--button-disabled-font-color;
|
||||
cursor: not-allowed;
|
||||
background-image: none;
|
||||
background-color: $--button-disabled-background-color;
|
||||
border-color: $--button-disabled-border-color;
|
||||
}
|
||||
|
||||
&.el-button--text {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&.is-plain {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: $--color-white;
|
||||
border-color: $--button-disabled-border-color;
|
||||
color: $--button-disabled-font-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include when(loading) {
|
||||
position: relative;
|
||||
pointer-events: none;
|
||||
|
||||
&:before {
|
||||
pointer-events: none;
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -1px;
|
||||
top: -1px;
|
||||
right: -1px;
|
||||
bottom: -1px;
|
||||
border-radius: inherit;
|
||||
background-color: rgba(255,255,255,.35);
|
||||
}
|
||||
}
|
||||
@include when(round) {
|
||||
border-radius: 20px;
|
||||
padding: 12px 23px;
|
||||
}
|
||||
@include when(circle) {
|
||||
border-radius: 50%;
|
||||
padding: $--button-padding-vertical;
|
||||
}
|
||||
@include m(primary) {
|
||||
@include button-variant($--button-primary-font-color, $--button-primary-background-color, $--button-primary-border-color);
|
||||
}
|
||||
@include m(success) {
|
||||
@include button-variant($--button-success-font-color, $--button-success-background-color, $--button-success-border-color);
|
||||
}
|
||||
@include m(warning) {
|
||||
@include button-variant($--button-warning-font-color, $--button-warning-background-color, $--button-warning-border-color);
|
||||
}
|
||||
@include m(danger) {
|
||||
@include button-variant($--button-danger-font-color, $--button-danger-background-color, $--button-danger-border-color);
|
||||
}
|
||||
@include m(info) {
|
||||
@include button-variant($--button-info-font-color, $--button-info-background-color, $--button-info-border-color);
|
||||
}
|
||||
@include m(medium) {
|
||||
@include button-size($--button-medium-padding-vertical, $--button-medium-padding-horizontal, $--button-medium-font-size, $--button-medium-border-radius);
|
||||
@include when(circle) {
|
||||
padding: $--button-medium-padding-vertical;
|
||||
}
|
||||
}
|
||||
@include m(small) {
|
||||
@include button-size($--button-small-padding-vertical, $--button-small-padding-horizontal, $--button-small-font-size, $--button-small-border-radius);
|
||||
@include when(circle) {
|
||||
padding: $--button-small-padding-vertical;
|
||||
}
|
||||
}
|
||||
@include m(mini) {
|
||||
@include button-size($--button-mini-padding-vertical, $--button-mini-padding-horizontal, $--button-mini-font-size, $--button-mini-border-radius);
|
||||
@include when(circle) {
|
||||
padding: $--button-mini-padding-vertical;
|
||||
}
|
||||
}
|
||||
@include m(text) {
|
||||
border-color: transparent;
|
||||
color: $--color-primary;
|
||||
background: transparent;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: mix($--color-white, $--color-primary, $--button-hover-tint-percent);
|
||||
border-color: transparent;
|
||||
background-color: transparent;
|
||||
}
|
||||
&:active {
|
||||
color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
|
||||
border-color: transparent;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&.is-disabled,
|
||||
&.is-disabled:hover,
|
||||
&.is-disabled:focus {
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(button-group) {
|
||||
@include utils-clearfix;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
|
||||
& > .el-button {
|
||||
float: left;
|
||||
position: relative;
|
||||
& + .el-button {
|
||||
margin-left: 0;
|
||||
}
|
||||
&.is-disabled {
|
||||
z-index: 1;
|
||||
}
|
||||
&:first-child {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
&:last-child {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
&:first-child:last-child {
|
||||
border-top-right-radius: $--button-border-radius;
|
||||
border-bottom-right-radius: $--button-border-radius;
|
||||
border-top-left-radius: $--button-border-radius;
|
||||
border-bottom-left-radius: $--button-border-radius;
|
||||
|
||||
&.is-round {
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
&.is-circle {
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
&:not(:first-child):not(:last-child) {
|
||||
border-radius: 0;
|
||||
}
|
||||
&:not(:last-child) {
|
||||
margin-right: -1px;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@include when(active) {
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
& > .el-dropdown {
|
||||
& > .el-button {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-left-color: rgba($--color-white, 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
@each $type in (primary, success, warning, danger, info) {
|
||||
.el-button--#{$type} {
|
||||
&:first-child {
|
||||
border-right-color: rgba($--color-white, 0.5);
|
||||
}
|
||||
&:last-child {
|
||||
border-left-color: rgba($--color-white, 0.5);
|
||||
}
|
||||
&:not(:first-child):not(:last-child) {
|
||||
border-left-color: rgba($--color-white, 0.5);
|
||||
border-right-color: rgba($--color-white, 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(card) {
|
||||
border-radius: $--card-border-radius;
|
||||
border: 1px solid $--card-border-color;
|
||||
background-color: $--color-white;
|
||||
overflow: hidden;
|
||||
color: $--color-text-primary;
|
||||
transition: 0.3s;
|
||||
|
||||
@include when(always-shadow) {
|
||||
box-shadow: $--box-shadow-light;
|
||||
}
|
||||
|
||||
@include when(hover-shadow) {
|
||||
&:hover,
|
||||
&:focus {
|
||||
box-shadow: $--box-shadow-light;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(header) {
|
||||
padding: #{$--card-padding - 2 $--card-padding};
|
||||
border-bottom: 1px solid $--card-border-color;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@include e(body) {
|
||||
padding: $--card-padding;
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(carousel) {
|
||||
@include e(item) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
z-index: #{$--index-normal - 1};
|
||||
|
||||
@include when(active) {
|
||||
z-index: #{$--index-normal + 1};
|
||||
}
|
||||
|
||||
@include when(animating) {
|
||||
transition: transform .4s ease-in-out;
|
||||
}
|
||||
|
||||
@include m(card) {
|
||||
width: 50%;
|
||||
transition: transform .4s ease-in-out;
|
||||
&.is-in-stage {
|
||||
cursor: pointer;
|
||||
z-index: $--index-normal;
|
||||
&:hover .el-carousel__mask,
|
||||
&.is-hover .el-carousel__mask {
|
||||
opacity: 0.12;
|
||||
}
|
||||
}
|
||||
&.is-active {
|
||||
z-index: #{$--index-normal + 1};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(mask) {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: $--color-white;
|
||||
opacity: 0.24;
|
||||
transition: .2s;
|
||||
}
|
||||
}
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(carousel) {
|
||||
overflow-x: hidden;
|
||||
position: relative;
|
||||
|
||||
@include e(container) {
|
||||
position: relative;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
@include e(arrow) {
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: $--carousel-arrow-size;
|
||||
width: $--carousel-arrow-size;
|
||||
cursor: pointer;
|
||||
transition: .3s;
|
||||
border-radius: 50%;
|
||||
background-color: $--carousel-arrow-background;
|
||||
color: $--color-white;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
z-index: 10;
|
||||
transform: translateY(-50%);
|
||||
text-align: center;
|
||||
font-size: $--carousel-arrow-font-size;
|
||||
|
||||
@include m(left) {
|
||||
left: 16px;
|
||||
}
|
||||
|
||||
@include m(right) {
|
||||
right: 16px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $--carousel-arrow-hover-background;
|
||||
}
|
||||
|
||||
& i {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(indicators) {
|
||||
position: absolute;
|
||||
list-style: none;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
z-index: #{$--index-normal + 1};
|
||||
|
||||
@include m(outside) {
|
||||
bottom: #{$--carousel-indicator-height + $--carousel-indicator-padding-vertical * 2};
|
||||
text-align: center;
|
||||
position: static;
|
||||
transform: none;
|
||||
.el-carousel__indicator:hover button {
|
||||
opacity: 0.64;
|
||||
}
|
||||
button {
|
||||
background-color: $--carousel-indicator-out-color;
|
||||
opacity: 0.24;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(labels) {
|
||||
left: 0;
|
||||
right: 0;
|
||||
transform: none;
|
||||
text-align: center;
|
||||
|
||||
.el-carousel__button {
|
||||
height: auto;
|
||||
width: auto;
|
||||
padding: 2px 18px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.el-carousel__indicator {
|
||||
padding: 6px 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(indicator) {
|
||||
display: inline-block;
|
||||
background-color: transparent;
|
||||
padding: $--carousel-indicator-padding-vertical $--carousel-indicator-padding-horizontal;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover button {
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
@include when(active) {
|
||||
button {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(button) {
|
||||
display: block;
|
||||
opacity: 0.48;
|
||||
width: $--carousel-indicator-width;
|
||||
height: $--carousel-indicator-height;
|
||||
background-color: $--color-white;
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
transition: .3s;
|
||||
}
|
||||
}
|
||||
|
||||
.carousel-arrow-left-enter,
|
||||
.carousel-arrow-left-leave-active {
|
||||
transform: translateY(-50%) translateX(-10px);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.carousel-arrow-right-enter,
|
||||
.carousel-arrow-right-leave-active {
|
||||
transform: translateY(-50%) translateX(10px);
|
||||
opacity: 0;
|
||||
}
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
@import "./input.scss";
|
||||
@import "./popper";
|
||||
|
||||
@include b(cascader) {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
font-size: $--font-size-base;
|
||||
line-height: $--input-height;
|
||||
|
||||
.el-input,
|
||||
.el-input__inner {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.el-input.is-focus .el-input__inner {
|
||||
border-color: $--input-focus-border;
|
||||
}
|
||||
|
||||
.el-input__icon {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.el-icon-arrow-down {
|
||||
transition: transform .3s;
|
||||
font-size: 14px;
|
||||
|
||||
@include when(reverse) {
|
||||
transform: rotateZ(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
.el-icon-circle-close {
|
||||
z-index: #{$--index-normal + 1};
|
||||
transition: $--color-transition-base;
|
||||
|
||||
&:hover {
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(clearIcon) {
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
padding: 0 25px 0 15px;
|
||||
color: $--input-color;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
font-size: inherit;
|
||||
|
||||
span {
|
||||
color: $--color-black;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
font-size: $--input-medium-font-size;
|
||||
line-height: #{$--input-medium-height};
|
||||
}
|
||||
|
||||
@include m(small) {
|
||||
font-size: $--input-small-font-size;
|
||||
line-height: #{$--input-small-height};
|
||||
}
|
||||
|
||||
@include m(mini) {
|
||||
font-size: $--input-mini-font-size;
|
||||
line-height: #{$--input-mini-height};
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
.el-cascader__label {
|
||||
z-index: #{$--index-normal + 1};
|
||||
color: $--disabled-color-base;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(cascader-menus) {
|
||||
white-space: nowrap;
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
margin: 5px 0;
|
||||
z-index: #{$--index-normal + 1};
|
||||
border: $--select-dropdown-border;
|
||||
border-radius: $--border-radius-small;
|
||||
box-shadow: $--select-dropdown-shadow;
|
||||
}
|
||||
|
||||
@include b(cascader-menu) {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
height: 204px;
|
||||
overflow: auto;
|
||||
border-right: $--select-dropdown-border;
|
||||
background-color: $--select-dropdown-background;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 6px 0;
|
||||
min-width: 160px;
|
||||
|
||||
&:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
@include e(item) {
|
||||
font-size: $--select-font-size;
|
||||
padding: 8px 20px;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: $--select-option-color;
|
||||
height: $--select-option-height;
|
||||
line-height: 1.5;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
|
||||
span {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
@include m(extensible) {
|
||||
&:after {
|
||||
font-family: 'element-icons';
|
||||
content: "\e604";
|
||||
font-size: 14px;
|
||||
color: rgb(191, 203, 217);
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
color: $--select-option-disabled-color;
|
||||
background-color: $--select-option-disabled-background;
|
||||
cursor: not-allowed;
|
||||
|
||||
&:hover {
|
||||
background-color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(active) {
|
||||
color: $--select-option-selected;
|
||||
}
|
||||
|
||||
&:hover, &:focus:not(:active) {
|
||||
background-color: $--select-option-hover-background;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
color: $--color-white;
|
||||
background-color: $--select-option-selected-hover;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(item__keyword) {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@include m(flexible) {
|
||||
height: auto;
|
||||
max-height: 180px;
|
||||
overflow: auto;
|
||||
|
||||
.el-cascader-menu__item {
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
+359
@@ -0,0 +1,359 @@
|
||||
@import "common/var";
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/_button";
|
||||
@import "mixins/utils";
|
||||
|
||||
@include b(checkbox) {
|
||||
color: $--checkbox-color;
|
||||
font-weight: $--checkbox-font-weight;
|
||||
font-size: $--font-size-base;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
user-select: none;
|
||||
margin-right: 30px;
|
||||
|
||||
@include when(bordered) {
|
||||
padding: $--checkbox-bordered-padding;
|
||||
border-radius: $--border-radius-base;
|
||||
border: $--border-base;
|
||||
box-sizing: border-box;
|
||||
line-height: normal;
|
||||
height: $--checkbox-bordered-height;
|
||||
|
||||
&.is-checked {
|
||||
border-color: $--color-primary;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
border-color: $--border-color-lighter;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
& + .el-checkbox.is-bordered {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&.el-checkbox--medium {
|
||||
padding: $--checkbox-bordered-medium-padding;
|
||||
border-radius: $--button-medium-border-radius;
|
||||
height: $--checkbox-bordered-medium-height;
|
||||
|
||||
.el-checkbox__label {
|
||||
line-height: 17px;
|
||||
font-size: $--button-medium-font-size;
|
||||
}
|
||||
|
||||
.el-checkbox__inner {
|
||||
height: $--checkbox-bordered-medium-input-height;
|
||||
width: $--checkbox-bordered-medium-input-width;
|
||||
}
|
||||
}
|
||||
|
||||
&.el-checkbox--small {
|
||||
padding: $--checkbox-bordered-small-padding;
|
||||
border-radius: $--button-small-border-radius;
|
||||
height: $--checkbox-bordered-small-height;
|
||||
|
||||
.el-checkbox__label {
|
||||
line-height: 15px;
|
||||
font-size: $--button-small-font-size;
|
||||
}
|
||||
|
||||
.el-checkbox__inner {
|
||||
height: $--checkbox-bordered-small-input-height;
|
||||
width: $--checkbox-bordered-small-input-width;
|
||||
|
||||
&::after {
|
||||
height: 6px;
|
||||
width: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.el-checkbox--mini {
|
||||
padding: $--checkbox-bordered-mini-padding;
|
||||
border-radius: $--button-mini-border-radius;
|
||||
height: $--checkbox-bordered-mini-height;
|
||||
|
||||
.el-checkbox__label {
|
||||
line-height: 12px;
|
||||
font-size: $--button-mini-font-size;
|
||||
}
|
||||
|
||||
.el-checkbox__inner {
|
||||
height: $--checkbox-bordered-mini-input-height;
|
||||
width: $--checkbox-bordered-mini-input-width;
|
||||
&::after {
|
||||
height: 6px;
|
||||
width: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(input) {
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
|
||||
@include when(disabled) {
|
||||
.el-checkbox__inner {
|
||||
background-color: $--checkbox-disabled-input-fill;
|
||||
border-color: $--checkbox-disabled-input-border-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&::after {
|
||||
cursor: not-allowed;
|
||||
border-color: $--checkbox-disabled-icon-color;
|
||||
}
|
||||
|
||||
& + .el-checkbox__label {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-checked {
|
||||
.el-checkbox__inner {
|
||||
background-color: $--checkbox-disabled-checked-input-fill;
|
||||
border-color: $--checkbox-disabled-checked-input-border-color;
|
||||
|
||||
&::after {
|
||||
border-color: $--checkbox-disabled-checked-icon-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.is-indeterminate {
|
||||
.el-checkbox__inner {
|
||||
background-color: $--checkbox-disabled-checked-input-fill;
|
||||
border-color: $--checkbox-disabled-checked-input-border-color;
|
||||
|
||||
&::before {
|
||||
background-color: $--checkbox-disabled-checked-icon-color;
|
||||
border-color: $--checkbox-disabled-checked-icon-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& + span.el-checkbox__label {
|
||||
color: $--disabled-color-base;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(checked) {
|
||||
.el-checkbox__inner {
|
||||
background-color: $--checkbox-checked-input-fill;
|
||||
border-color: $--checkbox-checked-input-border-color;
|
||||
|
||||
&::after {
|
||||
transform: rotate(45deg) scaleY(1);
|
||||
}
|
||||
}
|
||||
|
||||
& + .el-checkbox__label {
|
||||
color: $--checkbox-checked-text-color;
|
||||
}
|
||||
}
|
||||
@include when(focus) { /*focus时 视觉上区分*/
|
||||
.el-checkbox__inner {
|
||||
border-color: $--checkbox-input-border-color-hover;
|
||||
}
|
||||
}
|
||||
@include when(indeterminate) {
|
||||
.el-checkbox__inner {
|
||||
background-color: $--checkbox-checked-input-fill;
|
||||
border-color: $--checkbox-checked-input-border-color;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
display: block;
|
||||
background-color: $--checkbox-checked-icon-color;
|
||||
height: 2px;
|
||||
transform: scale(0.5);
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@include e(inner) {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
border: $--checkbox-input-border;
|
||||
border-radius: $--checkbox-input-border-radius;
|
||||
box-sizing: border-box;
|
||||
width: $--checkbox-input-width;
|
||||
height: $--checkbox-input-height;
|
||||
background-color: $--checkbox-input-fill;
|
||||
z-index: $--index-normal;
|
||||
transition: border-color .25s cubic-bezier(.71,-.46,.29,1.46),
|
||||
background-color .25s cubic-bezier(.71,-.46,.29,1.46);
|
||||
|
||||
&:hover {
|
||||
border-color: $--checkbox-input-border-color-hover;
|
||||
}
|
||||
|
||||
&::after {
|
||||
box-sizing: content-box;
|
||||
content: "";
|
||||
border: 1px solid $--checkbox-checked-icon-color;
|
||||
border-left: 0;
|
||||
border-top: 0;
|
||||
height: 7px;
|
||||
left: 4px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
transform: rotate(45deg) scaleY(0);
|
||||
width: 3px;
|
||||
transition: transform .15s ease-in .05s;
|
||||
transform-origin: center;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(original) {
|
||||
opacity: 0;
|
||||
outline: none;
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
display: inline-block;
|
||||
padding-left: 10px;
|
||||
line-height: 19px;
|
||||
font-size: $--checkbox-font-size;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(checkbox-button) {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
@include e(inner) {
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
font-weight: $--checkbox-font-weight;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
background: $--button-default-background-color;
|
||||
border: $--border-base;
|
||||
border-left: 0;
|
||||
color: $--button-default-font-color;
|
||||
-webkit-appearance: none;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
transition: $--all-transition;
|
||||
@include utils-user-select(none);
|
||||
|
||||
@include button-size($--button-padding-vertical, $--button-padding-horizontal, $--button-font-size, 0);
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
& [class*="el-icon-"] {
|
||||
line-height: 0.9;
|
||||
|
||||
& + span {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(original) {
|
||||
opacity: 0;
|
||||
outline: none;
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
&.is-checked {
|
||||
& .el-checkbox-button__inner {
|
||||
color: $--checkbox-button-checked-color;
|
||||
background-color: $--checkbox-button-checked-fill;
|
||||
border-color: $--checkbox-button-checked-border-color;
|
||||
box-shadow: -1px 0 0 0 $--color-primary-light-4;
|
||||
}
|
||||
&:first-child .el-checkbox-button__inner {
|
||||
border-left-color: $--checkbox-button-checked-border-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
& .el-checkbox-button__inner {
|
||||
color: $--button-disabled-font-color;
|
||||
cursor: not-allowed;
|
||||
background-image: none;
|
||||
background-color: $--button-disabled-background-color;
|
||||
border-color: $--button-disabled-border-color;
|
||||
box-shadow: none;
|
||||
}
|
||||
&:first-child .el-checkbox-button__inner {
|
||||
border-left-color: $--button-disabled-border-color;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
.el-checkbox-button__inner {
|
||||
border-left: $--border-base;
|
||||
border-radius: $--border-radius-base 0 0 $--border-radius-base;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-focus {
|
||||
& .el-checkbox-button__inner {
|
||||
border-color: $--checkbox-button-checked-border-color;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
.el-checkbox-button__inner {
|
||||
border-radius: 0 $--border-radius-base $--border-radius-base 0;
|
||||
}
|
||||
}
|
||||
@include m(medium) {
|
||||
.el-checkbox-button__inner {
|
||||
@include button-size($--button-medium-padding-vertical, $--button-medium-padding-horizontal, $--button-medium-font-size, 0);
|
||||
}
|
||||
}
|
||||
@include m(small) {
|
||||
.el-checkbox-button__inner {
|
||||
@include button-size($--button-small-padding-vertical, $--button-small-padding-horizontal, $--button-small-font-size, 0);
|
||||
}
|
||||
}
|
||||
@include m(mini) {
|
||||
.el-checkbox-button__inner {
|
||||
@include button-size($--button-mini-padding-vertical, $--button-mini-padding-horizontal, $--button-mini-font-size, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(checkbox-group) {
|
||||
font-size: 0;
|
||||
}
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
@import "./common/var.scss";
|
||||
@import "./mixins/mixins.scss";
|
||||
|
||||
[class*="el-col-"] {
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.el-col-0 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@for $i from 0 through 24 {
|
||||
.el-col-#{$i} {
|
||||
width: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-offset-#{$i} {
|
||||
margin-left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-pull-#{$i} {
|
||||
position: relative;
|
||||
right: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-push-#{$i} {
|
||||
position: relative;
|
||||
left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
}
|
||||
|
||||
@include res(xs) {
|
||||
.el-col-xs-0 {
|
||||
display: none;
|
||||
}
|
||||
@for $i from 0 through 24 {
|
||||
.el-col-xs-#{$i} {
|
||||
width: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-xs-offset-#{$i} {
|
||||
margin-left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-xs-pull-#{$i} {
|
||||
position: relative;
|
||||
right: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-xs-push-#{$i} {
|
||||
position: relative;
|
||||
left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include res(sm) {
|
||||
.el-col-sm-0 {
|
||||
display: none;
|
||||
}
|
||||
@for $i from 0 through 24 {
|
||||
.el-col-sm-#{$i} {
|
||||
width: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-sm-offset-#{$i} {
|
||||
margin-left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-sm-pull-#{$i} {
|
||||
position: relative;
|
||||
right: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-sm-push-#{$i} {
|
||||
position: relative;
|
||||
left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include res(md) {
|
||||
.el-col-md-0 {
|
||||
display: none;
|
||||
}
|
||||
@for $i from 0 through 24 {
|
||||
.el-col-md-#{$i} {
|
||||
width: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-md-offset-#{$i} {
|
||||
margin-left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-md-pull-#{$i} {
|
||||
position: relative;
|
||||
right: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-md-push-#{$i} {
|
||||
position: relative;
|
||||
left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include res(lg) {
|
||||
.el-col-lg-0 {
|
||||
display: none;
|
||||
}
|
||||
@for $i from 0 through 24 {
|
||||
.el-col-lg-#{$i} {
|
||||
width: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-lg-offset-#{$i} {
|
||||
margin-left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-lg-pull-#{$i} {
|
||||
position: relative;
|
||||
right: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-lg-push-#{$i} {
|
||||
position: relative;
|
||||
left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include res(xl) {
|
||||
.el-col-xl-0 {
|
||||
display: none;
|
||||
}
|
||||
@for $i from 0 through 24 {
|
||||
.el-col-xl-#{$i} {
|
||||
width: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-xl-offset-#{$i} {
|
||||
margin-left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-xl-pull-#{$i} {
|
||||
position: relative;
|
||||
right: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
|
||||
.el-col-xl-push-#{$i} {
|
||||
position: relative;
|
||||
left: (1 / 24 * $i * 100) * 1%;
|
||||
}
|
||||
}
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
@import "common/transition";
|
||||
|
||||
@include b(collapse) {
|
||||
border-top: 1px solid $--collapse-border-color;
|
||||
border-bottom: 1px solid $--collapse-border-color;
|
||||
}
|
||||
@include b(collapse-item) {
|
||||
@include e(header) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: $--collapse-header-height;
|
||||
line-height: $--collapse-header-height;
|
||||
background-color: $--collapse-header-fill;
|
||||
color: $--collapse-header-color;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid $--collapse-border-color;
|
||||
font-size: $--collapse-header-size;
|
||||
font-weight: 500;
|
||||
transition: border-bottom-color .3s;
|
||||
outline: none;
|
||||
@include e(arrow) {
|
||||
margin: 0 8px 0 auto;
|
||||
transition: transform .3s;
|
||||
font-weight: 300;
|
||||
@include when(active) {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
&.focusing:focus:not(:hover){
|
||||
color: $--color-primary;
|
||||
}
|
||||
@include when(active) {
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(wrap) {
|
||||
will-change: height;
|
||||
background-color: $--collapse-content-fill;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid $--collapse-border-color;
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
padding-bottom: 25px;
|
||||
font-size: $--collapse-content-size;
|
||||
color: $--collapse-content-color;
|
||||
line-height: 1.769230769230769;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
}
|
||||
+384
@@ -0,0 +1,384 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(color-predefine) {
|
||||
display: flex;
|
||||
font-size: 12px;
|
||||
margin-top: 8px;
|
||||
width: 280px;
|
||||
|
||||
@include e(colors) {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
@include e(color-selector) {
|
||||
margin: 0 0 8px 8px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
|
||||
&:nth-child(10n + 1) {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
box-shadow: 0 0 3px 2px $--color-primary;
|
||||
}
|
||||
|
||||
> div {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
@include when(alpha) {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(color-hue-slider) {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
width: 280px;
|
||||
height: 12px;
|
||||
background-color: #f00;
|
||||
padding: 0 2px;
|
||||
|
||||
@include e(bar) {
|
||||
position: relative;
|
||||
background: linear-gradient(
|
||||
to right, #f00 0%,
|
||||
#ff0 17%, #0f0 33%,
|
||||
#0ff 50%, #00f 67%,
|
||||
#f0f 83%, #f00 100%);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@include e(thumb) {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
border-radius: 1px;
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@include when(vertical) {
|
||||
width: 12px;
|
||||
height: 180px;
|
||||
padding: 2px 0;
|
||||
|
||||
.el-color-hue-slider__bar {
|
||||
background: linear-gradient(
|
||||
to bottom, #f00 0%,
|
||||
#ff0 17%, #0f0 33%,
|
||||
#0ff 50%, #00f 67%,
|
||||
#f0f 83%, #f00 100%);
|
||||
}
|
||||
|
||||
.el-color-hue-slider__thumb {
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(color-svpanel) {
|
||||
position: relative;
|
||||
width: 280px;
|
||||
height: 180px;
|
||||
|
||||
@include e(('white', 'black')) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
@include e('white') {
|
||||
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||||
}
|
||||
|
||||
@include e('black') {
|
||||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
}
|
||||
|
||||
@include e(cursor) {
|
||||
position: absolute;
|
||||
|
||||
> div {
|
||||
cursor: head;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,0.3), 0 0 1px 2px rgba(0,0,0,0.4);
|
||||
border-radius: 50%;
|
||||
transform: translate(-2px, -2px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(color-alpha-slider) {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
width: 280px;
|
||||
height: 12px;
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
||||
|
||||
@include e(bar) {
|
||||
position: relative;
|
||||
background: linear-gradient(
|
||||
to right, rgba(255, 255, 255, 0) 0%,
|
||||
rgba(255, 255, 255, 1) 100%);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@include e(thumb) {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
border-radius: 1px;
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@include when(vertical) {
|
||||
width: 20px;
|
||||
height: 180px;
|
||||
|
||||
.el-color-alpha-slider__bar {
|
||||
background: linear-gradient(
|
||||
to bottom, rgba(255, 255, 255, 0) 0%,
|
||||
rgba(255, 255, 255, 1) 100%);
|
||||
}
|
||||
|
||||
.el-color-alpha-slider__thumb {
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(color-dropdown) {
|
||||
width: 300px;
|
||||
|
||||
@include e(main-wrapper) {
|
||||
margin-bottom: 6px;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(btns) {
|
||||
margin-top: 6px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@include e(value) {
|
||||
float: left;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
color: $--color-black;
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
@include e(btn) {
|
||||
border: 1px solid #dcdcdc;
|
||||
color: #333;
|
||||
line-height: 24px;
|
||||
border-radius: 2px;
|
||||
padding: 0 20px;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
font-size: 12px;
|
||||
|
||||
&[disabled] {
|
||||
color: #cccccc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
border-color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(link-btn) {
|
||||
cursor: pointer;
|
||||
color: $--color-primary;
|
||||
text-decoration: none;
|
||||
padding: 15px;
|
||||
font-size: 12px;
|
||||
&:hover {
|
||||
color: tint($--color-primary, $--button-hover-tint-percent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(color-picker) {
|
||||
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.8);
|
||||
}
|
||||
}
|
||||
|
||||
@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.8);
|
||||
}
|
||||
}
|
||||
|
||||
@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: 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: block;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #999;
|
||||
border-radius: $--border-radius-small;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
|
||||
@include when(alpha) {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
||||
}
|
||||
}
|
||||
|
||||
@include e(color-inner) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
@include e(empty) {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate3d(-50%, -50%, 0);
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate3d(-50%, -50%, 0);
|
||||
color: $--color-white;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@include e(panel) {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
padding: 6px;
|
||||
box-sizing: content-box;
|
||||
background-color: $--color-white;
|
||||
border: 1px solid $--border-color-lighter;
|
||||
border-radius: $--border-radius-base;
|
||||
box-shadow: $--dropdown-menu-box-shadow;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
@import "../mixins/mixins";
|
||||
|
||||
.v-modal-enter {
|
||||
animation: v-modal-in .2s ease;
|
||||
}
|
||||
|
||||
.v-modal-leave {
|
||||
animation: v-modal-out .2s ease forwards;
|
||||
}
|
||||
|
||||
@keyframes v-modal-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes v-modal-out {
|
||||
0% {
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.v-modal {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0.5;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
@include b(popup-parent) {
|
||||
@include m(hidden) {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
@import "var";
|
||||
|
||||
.fade-in-linear-enter-active,
|
||||
.fade-in-linear-leave-active {
|
||||
transition: $--fade-linear-transition;
|
||||
}
|
||||
.fade-in-linear-enter,
|
||||
.fade-in-linear-leave,
|
||||
.fade-in-linear-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.el-fade-in-linear-enter-active,
|
||||
.el-fade-in-linear-leave-active {
|
||||
transition: $--fade-linear-transition;
|
||||
}
|
||||
.el-fade-in-linear-enter,
|
||||
.el-fade-in-linear-leave,
|
||||
.el-fade-in-linear-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.el-fade-in-enter-active,
|
||||
.el-fade-in-leave-active {
|
||||
transition: all .3s cubic-bezier(.55,0,.1,1);
|
||||
}
|
||||
.el-fade-in-enter,
|
||||
.el-fade-in-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.el-zoom-in-center-enter-active,
|
||||
.el-zoom-in-center-leave-active {
|
||||
transition: all .3s cubic-bezier(.55,0,.1,1);
|
||||
}
|
||||
.el-zoom-in-center-enter,
|
||||
.el-zoom-in-center-leave-active {
|
||||
opacity: 0;
|
||||
transform: scaleX(0);
|
||||
}
|
||||
|
||||
.el-zoom-in-top-enter-active,
|
||||
.el-zoom-in-top-leave-active {
|
||||
opacity: 1;
|
||||
transform: scaleY(1);
|
||||
transition: $--md-fade-transition;
|
||||
transform-origin: center top;
|
||||
}
|
||||
.el-zoom-in-top-enter,
|
||||
.el-zoom-in-top-leave-active {
|
||||
opacity: 0;
|
||||
transform: scaleY(0);
|
||||
}
|
||||
|
||||
.el-zoom-in-bottom-enter-active,
|
||||
.el-zoom-in-bottom-leave-active {
|
||||
opacity: 1;
|
||||
transform: scaleY(1);
|
||||
transition: $--md-fade-transition;
|
||||
transform-origin: center bottom;
|
||||
}
|
||||
.el-zoom-in-bottom-enter,
|
||||
.el-zoom-in-bottom-leave-active {
|
||||
opacity: 0;
|
||||
transform: scaleY(0);
|
||||
}
|
||||
|
||||
.el-zoom-in-left-enter-active,
|
||||
.el-zoom-in-left-leave-active {
|
||||
opacity: 1;
|
||||
transform: scale(1, 1);
|
||||
transition: $--md-fade-transition;
|
||||
transform-origin: top left;
|
||||
}
|
||||
.el-zoom-in-left-enter,
|
||||
.el-zoom-in-left-leave-active {
|
||||
opacity: 0;
|
||||
transform: scale(.45, .45);
|
||||
}
|
||||
|
||||
.collapse-transition {
|
||||
transition: 0.3s height ease-in-out, 0.3s padding-top ease-in-out, 0.3s padding-bottom ease-in-out;
|
||||
}
|
||||
.horizontal-collapse-transition {
|
||||
transition: 0.3s width ease-in-out, 0.3s padding-left ease-in-out, 0.3s padding-right ease-in-out;
|
||||
}
|
||||
|
||||
.el-list-enter-active,
|
||||
.el-list-leave-active {
|
||||
transition: all 1s;
|
||||
}
|
||||
.el-list-enter, .el-list-leave-active {
|
||||
opacity: 0;
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
|
||||
.el-opacity-transition {
|
||||
transition: opacity .3s cubic-bezier(.55,0,.1,1);
|
||||
}
|
||||
+792
@@ -0,0 +1,792 @@
|
||||
/* Element Chalk Variables */
|
||||
|
||||
// Special comment for theme configurator
|
||||
// type|[Chinese Name, English Name, Spanish Name, French Name]|Category|Order
|
||||
|
||||
/* Transition
|
||||
-------------------------- */
|
||||
$--all-transition: all .3s cubic-bezier(.645,.045,.355,1) !default;
|
||||
$--fade-transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) !default;
|
||||
$--fade-linear-transition: opacity 200ms linear !default;
|
||||
$--md-fade-transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) !default;
|
||||
$--border-transition-base: border-color .2s cubic-bezier(.645,.045,.355,1) !default;
|
||||
$--color-transition-base: color .2s cubic-bezier(.645,.045,.355,1) !default;
|
||||
|
||||
/* Color
|
||||
-------------------------- */
|
||||
/// color|[主题色,primary color,color primario]|BrandColor|0
|
||||
$--color-primary: #409EFF !default;
|
||||
/// color|[基础白色,basic white,basic white]|BackgroundColor|4
|
||||
$--color-white: #FFFFFF !default;
|
||||
/// color|[基础黑色,basic black,basic black]|BackgroundColor|4
|
||||
$--color-black: #000000 !default;
|
||||
$--color-primary-light-1: mix($--color-white, $--color-primary, 10%) !default; /* 53a8ff */
|
||||
$--color-primary-light-2: mix($--color-white, $--color-primary, 20%) !default; /* 66b1ff */
|
||||
$--color-primary-light-3: mix($--color-white, $--color-primary, 30%) !default; /* 79bbff */
|
||||
$--color-primary-light-4: mix($--color-white, $--color-primary, 40%) !default; /* 8cc5ff */
|
||||
$--color-primary-light-5: mix($--color-white, $--color-primary, 50%) !default; /* a0cfff */
|
||||
$--color-primary-light-6: mix($--color-white, $--color-primary, 60%) !default; /* b3d8ff */
|
||||
$--color-primary-light-7: mix($--color-white, $--color-primary, 70%) !default; /* c6e2ff */
|
||||
$--color-primary-light-8: mix($--color-white, $--color-primary, 80%) !default; /* d9ecff */
|
||||
$--color-primary-light-9: mix($--color-white, $--color-primary, 90%) !default; /* ecf5ff */
|
||||
/// color|[成功颜色,success color,success color]|SecondaryColor|1
|
||||
$--color-success: #67C23A !default;
|
||||
/// color|[警告颜色,warning color,warning color]|SecondaryColor|1
|
||||
$--color-warning: #E6A23C !default;
|
||||
/// color|[危险颜色,danger color,danger color]|SecondaryColor|1
|
||||
$--color-danger: #F56C6C !default;
|
||||
/// color|[信息颜色,info color,info color]|SecondaryColor|1
|
||||
$--color-info: #909399 !default;
|
||||
|
||||
$--color-success-light: mix($--color-white, $--color-success, 80%) !default;
|
||||
$--color-warning-light: mix($--color-white, $--color-warning, 80%) !default;
|
||||
$--color-danger-light: mix($--color-white, $--color-danger, 80%) !default;
|
||||
$--color-info-light: mix($--color-white, $--color-info, 80%) !default;
|
||||
|
||||
$--color-success-lighter: mix($--color-white, $--color-success, 90%) !default;
|
||||
$--color-warning-lighter: mix($--color-white, $--color-warning, 90%) !default;
|
||||
$--color-danger-lighter: mix($--color-white, $--color-danger, 90%) !default;
|
||||
$--color-info-lighter: mix($--color-white, $--color-info, 90%) !default;
|
||||
/// color|[主要文字颜色,primary text color,primary text color]|FontColor|2
|
||||
$--color-text-primary: #303133 !default;
|
||||
/// color|[常规文字颜色,regular text color,regular text color]|FontColor|2
|
||||
$--color-text-regular: #606266 !default;
|
||||
/// color|[次要文字颜色,secondary text color,secondary text color]|FontColor|2
|
||||
$--color-text-secondary: #909399 !default;
|
||||
/// color|[占位文字颜色,placeholder text color,placeholder text color]|FontColor|2
|
||||
$--color-text-placeholder: #C0C4CC !default;
|
||||
/// color|[一级边框颜色,border color,border color]|BorderColor|3
|
||||
$--border-color-base: #DCDFE6 !default;
|
||||
/// color|[二级边框颜色,border color light,border color light]|BorderColor|3
|
||||
$--border-color-light: #E4E7ED !default;
|
||||
/// color|[三级边框颜色,border color lighter,border color lighter]|BorderColor|3
|
||||
$--border-color-lighter: #EBEEF5 !default;
|
||||
/// color|[四级边框颜色,border color extra light,border color extra light]|BorderColor|3
|
||||
$--border-color-extra-light: #F2F6FC !default;
|
||||
|
||||
// Background
|
||||
/// color|[基础背景色,base background color,base background color]|BackgroundColor|4
|
||||
$--background-color-base: #f5f7fa !default;
|
||||
|
||||
/* Link
|
||||
-------------------------- */
|
||||
$--link-color: $--color-primary-light-2 !default;
|
||||
$--link-hover-color: $--color-primary !default;
|
||||
|
||||
/* Border
|
||||
-------------------------- */
|
||||
$--border-width-base: 1px !default;
|
||||
$--border-style-base: solid !default;
|
||||
$--border-color-hover: $--color-text-placeholder !default;
|
||||
$--border-base: $--border-width-base $--border-style-base $--border-color-base !default;
|
||||
/// borderRadius|[大圆角,border radius base,border radius base]|Radius|0
|
||||
$--border-radius-base: 4px !default;
|
||||
/// borderRadius|[小圆角,border radius small,border radius small]|Radius|0
|
||||
$--border-radius-small: 2px !default;
|
||||
/// borderRadius|[圆形圆角,border radius circle,border radius circle]|Radius|0
|
||||
$--border-radius-circle: 100% !default;
|
||||
|
||||
// Box-shadow
|
||||
/// boxShadow|[基础投影,box shadow base,box shadow base]|Shadow|1
|
||||
$--box-shadow-base: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04) !default;
|
||||
// boxShadow|[深色投影,box shadow,box shadow]|Shadow|1
|
||||
$--box-shadow-dark: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .12) !default;
|
||||
/// boxShadow|[浅色投影,box shadow,box shadow]|Shadow|1
|
||||
$--box-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !default;
|
||||
|
||||
/* Fill
|
||||
-------------------------- */
|
||||
$--fill-base: $--color-white !default;
|
||||
|
||||
/* Typography
|
||||
-------------------------- */
|
||||
$--font-path: 'fonts' !default;
|
||||
/// fontSize|[主标题文字大小,Extra large font size,Extra large font size]|FontSize|0
|
||||
$--font-size-extra-large: 20px !default;
|
||||
/// fontSize|[标题文字大小,large font size,large font size]|FontSize|0
|
||||
$--font-size-large: 18px !default;
|
||||
/// fontSize|[小标题文字大小,Medium font size,Medium font size]|FontSize|0
|
||||
$--font-size-medium: 16px !default;
|
||||
/// fontSize|[正文文字大小,base font size,base font size]|FontSize|0
|
||||
$--font-size-base: 14px !default;
|
||||
/// fontSize|[正文(小)文字大小,small font size,small font size]|FontSize|0
|
||||
$--font-size-small: 13px !default;
|
||||
/// fontSize|[辅助文字大小,Extra small font size,Extra small font size]|FontSize|0
|
||||
$--font-size-extra-small: 12px !default;
|
||||
/// fontWeight|[主要文字粗细,primary font weight,primary font weight]|FontWeight|1
|
||||
$--font-weight-primary: 500 !default;
|
||||
/// fontWeight|[次要文字粗细,secondary font weight,secondary font weight]|FontWeight|1
|
||||
$--font-weight-secondary: 100 !default;
|
||||
/// fontLineHeight|[主要文字行高,primary font line height,primary font line height]|LineHeight|2
|
||||
$--font-line-height-primary: 24px !default;
|
||||
/// fontLineHeight|[次要文字行高,secondary font line height,secondary font line height]|LineHeight|2
|
||||
$--font-line-height-secondary: 16px !default;
|
||||
$--font-color-disabled-base: #bbb !default;
|
||||
/* Size
|
||||
-------------------------- */
|
||||
$--size-base: 14px !default;
|
||||
|
||||
/* z-index
|
||||
-------------------------- */
|
||||
$--index-normal: 1 !default;
|
||||
$--index-top: 1000 !default;
|
||||
$--index-popper: 2000 !default;
|
||||
|
||||
/* Disable base
|
||||
-------------------------- */
|
||||
$--disabled-fill-base: $--background-color-base !default;
|
||||
$--disabled-color-base: $--color-text-placeholder !default;
|
||||
$--disabled-border-base: $--border-color-light !default;
|
||||
|
||||
/* Icon
|
||||
-------------------------- */
|
||||
$--icon-color: #666 !default;
|
||||
$--icon-color-base: $--color-info !default;
|
||||
|
||||
/* Checkbox
|
||||
-------------------------- */
|
||||
$--checkbox-font-size: 14px !default;
|
||||
$--checkbox-font-weight: $--font-weight-primary !default;
|
||||
$--checkbox-color: $--color-text-regular !default;
|
||||
$--checkbox-input-height: 14px !default;
|
||||
$--checkbox-input-width: 14px !default;
|
||||
$--checkbox-input-border-radius: $--border-radius-small !default;
|
||||
$--checkbox-input-fill: $--color-white !default;
|
||||
$--checkbox-input-border: $--border-base !default;
|
||||
$--checkbox-input-border-color: $--border-color-base !default;
|
||||
$--checkbox-icon-color: $--color-white !default;
|
||||
|
||||
$--checkbox-disabled-input-border-color: $--border-color-base !default;
|
||||
$--checkbox-disabled-input-fill: #edf2fc !default;
|
||||
$--checkbox-disabled-icon-color: $--color-text-placeholder !default;
|
||||
|
||||
$--checkbox-disabled-checked-input-fill: $--border-color-extra-light !default;
|
||||
$--checkbox-disabled-checked-input-border-color: $--border-color-base !default;
|
||||
$--checkbox-disabled-checked-icon-color: $--color-text-placeholder !default;
|
||||
|
||||
$--checkbox-checked-text-color: $--color-primary !default;
|
||||
$--checkbox-checked-input-border-color: $--color-primary !default;
|
||||
$--checkbox-checked-input-fill: $--color-primary !default;
|
||||
$--checkbox-checked-icon-color: $--fill-base !default;
|
||||
|
||||
$--checkbox-input-border-color-hover: $--color-primary !default;
|
||||
|
||||
$--checkbox-bordered-height: 40px !default;
|
||||
$--checkbox-bordered-padding: 9px 20px 9px 10px !default;
|
||||
$--checkbox-bordered-medium-padding: 7px 20px 7px 10px !default;
|
||||
$--checkbox-bordered-small-padding: 5px 15px 5px 10px !default;
|
||||
$--checkbox-bordered-mini-padding: 3px 15px 3px 10px !default;
|
||||
$--checkbox-bordered-medium-input-height: 14px !default;
|
||||
$--checkbox-bordered-medium-input-width: 14px !default;
|
||||
$--checkbox-bordered-medium-height: 36px !default;
|
||||
$--checkbox-bordered-small-input-height: 12px !default;
|
||||
$--checkbox-bordered-small-input-width: 12px !default;
|
||||
$--checkbox-bordered-small-height: 32px !default;
|
||||
$--checkbox-bordered-mini-input-height: 12px !default;
|
||||
$--checkbox-bordered-mini-input-width: 12px !default;
|
||||
$--checkbox-bordered-mini-height: 28px !default;
|
||||
|
||||
$--checkbox-button-font-size: $--font-size-base !default;
|
||||
$--checkbox-button-checked-fill: $--color-primary !default;
|
||||
$--checkbox-button-checked-color: $--color-white !default;
|
||||
$--checkbox-button-checked-border-color: $--color-primary !default;
|
||||
|
||||
|
||||
|
||||
/* Radio
|
||||
-------------------------- */
|
||||
/// fontSize|[]|Font|1
|
||||
$--radio-font-size: $--font-size-base !default;
|
||||
/// fontWeight|[]|Font|1
|
||||
$--radio-font-weight: $--font-weight-primary !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-font-color: $--color-text-regular !default;
|
||||
$--radio-input-height: 14px !default;
|
||||
$--radio-input-width: 14px !default;
|
||||
/// borderRadius|[]|Border|2
|
||||
$--radio-input-border-radius: $--border-radius-circle !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-input-background-color: $--color-white !default;
|
||||
$--radio-input-border: $--border-base !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-input-border-color: $--border-color-base !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-icon-color: $--color-white !default;
|
||||
|
||||
$--radio-disabled-input-border-color: $--disabled-border-base !default;
|
||||
$--radio-disabled-input-fill: $--disabled-fill-base !default;
|
||||
$--radio-disabled-icon-color: $--disabled-fill-base !default;
|
||||
|
||||
$--radio-disabled-checked-input-border-color: $--disabled-border-base !default;
|
||||
$--radio-disabled-checked-input-fill: $--disabled-fill-base !default;
|
||||
$--radio-disabled-checked-icon-color: $--color-text-placeholder !default;
|
||||
|
||||
/// color|[]|Color|0
|
||||
$--radio-checked-font-color: $--color-primary !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-checked-input-border-color: $--color-primary !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-checked-input-background-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-checked-icon-color: $--color-primary !default;
|
||||
|
||||
$--radio-input-border-color-hover: $--color-primary !default;
|
||||
|
||||
$--radio-bordered-height: 40px !default;
|
||||
$--radio-bordered-padding: 12px 20px 0 10px !default;
|
||||
$--radio-bordered-medium-padding: 10px 20px 0 10px !default;
|
||||
$--radio-bordered-small-padding: 8px 15px 0 10px !default;
|
||||
$--radio-bordered-mini-padding: 6px 15px 0 10px !default;
|
||||
$--radio-bordered-medium-input-height: 14px !default;
|
||||
$--radio-bordered-medium-input-width: 14px !default;
|
||||
$--radio-bordered-medium-height: 36px !default;
|
||||
$--radio-bordered-small-input-height: 12px !default;
|
||||
$--radio-bordered-small-input-width: 12px !default;
|
||||
$--radio-bordered-small-height: 32px !default;
|
||||
$--radio-bordered-mini-input-height: 12px !default;
|
||||
$--radio-bordered-mini-input-width: 12px !default;
|
||||
$--radio-bordered-mini-height: 28px !default;
|
||||
|
||||
/// fontSize|[]|Font|1
|
||||
$--radio-button-font-size: $--font-size-base !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-button-checked-background-color: $--color-primary !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-button-checked-font-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--radio-button-checked-border-color: $--color-primary !default;
|
||||
$--radio-button-disabled-checked-fill: $--border-color-extra-light !default;
|
||||
|
||||
/* Select
|
||||
-------------------------- */
|
||||
$--select-border-color-hover: $--border-color-hover !default;
|
||||
$--select-disabled-border: $--disabled-border-base !default;
|
||||
$--select-font-size: $--font-size-base !default;
|
||||
$--select-close-hover-color: $--color-text-secondary !default;
|
||||
|
||||
$--select-input-color: $--color-text-placeholder !default;
|
||||
$--select-multiple-input-color: #666 !default;
|
||||
$--select-input-focus-background: $--color-primary !default;
|
||||
$--select-input-font-size: 14px !default;
|
||||
|
||||
$--select-option-color: $--color-text-regular !default;
|
||||
$--select-option-disabled-color: $--color-text-placeholder !default;
|
||||
$--select-option-disabled-background: $--color-white !default;
|
||||
$--select-option-height: 34px !default;
|
||||
$--select-option-hover-background: $--background-color-base !default;
|
||||
$--select-option-selected: $--color-primary !default;
|
||||
$--select-option-selected-hover: $--background-color-base !default;
|
||||
|
||||
$--select-group-color: $--color-info !default;
|
||||
$--select-group-height: 30px !default;
|
||||
$--select-group-font-size: 12px !default;
|
||||
|
||||
$--select-dropdown-background: $--color-white !default;
|
||||
$--select-dropdown-shadow: $--box-shadow-light !default;
|
||||
$--select-dropdown-empty-color: #999 !default;
|
||||
$--select-dropdown-max-height: 274px !default;
|
||||
$--select-dropdown-padding: 6px 0 !default;
|
||||
$--select-dropdown-empty-padding: 10px 0 !default;
|
||||
$--select-dropdown-border: solid 1px $--border-color-light !default;
|
||||
|
||||
/* Alert
|
||||
-------------------------- */
|
||||
$--alert-padding: 8px 16px !default;
|
||||
$--alert-border-radius: $--border-radius-base !default;
|
||||
$--alert-title-font-size: 13px !default;
|
||||
$--alert-description-font-size: 12px !default;
|
||||
$--alert-close-font-size: 12px !default;
|
||||
$--alert-close-customed-font-size: 13px !default;
|
||||
|
||||
$--alert-success-color: $--color-success-lighter !default;
|
||||
$--alert-info-color: $--color-info-lighter !default;
|
||||
$--alert-warning-color: $--color-warning-lighter !default;
|
||||
$--alert-danger-color: $--color-danger-lighter !default;
|
||||
|
||||
$--alert-icon-size: 16px !default;
|
||||
$--alert-icon-large-size: 28px !default;
|
||||
|
||||
/* Message Box
|
||||
-------------------------- */
|
||||
$--msgbox-width: 420px !default;
|
||||
$--msgbox-border-radius: 4px !default;
|
||||
$--msgbox-font-size: $--font-size-large !default;
|
||||
$--msgbox-content-font-size: $--font-size-base !default;
|
||||
$--msgbox-content-color: $--color-text-regular !default;
|
||||
$--msgbox-error-font-size: 12px !default;
|
||||
$--msgbox-padding-primary: 15px !default;
|
||||
|
||||
$--msgbox-success-color: $--color-success !default;
|
||||
$--msgbox-info-color: $--color-info !default;
|
||||
$--msgbox-warning-color: $--color-warning !default;
|
||||
$--msgbox-danger-color: $--color-danger !default;
|
||||
|
||||
/* Message
|
||||
-------------------------- */
|
||||
$--message-shadow: $--box-shadow-base !default;
|
||||
$--message-min-width: 380px !default;
|
||||
$--message-background-color: #edf2fc !default;
|
||||
$--message-padding: 15px 15px 15px 20px !default;
|
||||
$--message-content-color: $--color-text-regular !default;
|
||||
$--message-close-color: $--color-text-placeholder !default;
|
||||
$--message-close-size: 16px !default;
|
||||
$--message-close-hover-color: $--color-text-secondary !default;
|
||||
|
||||
$--message-success-color: $--color-success !default;
|
||||
$--message-info-color: $--color-info !default;
|
||||
$--message-warning-color: $--color-warning !default;
|
||||
$--message-danger-color: $--color-danger !default;
|
||||
|
||||
/* Notification
|
||||
-------------------------- */
|
||||
$--notification-width: 330px !default;
|
||||
$--notification-padding: 14px 26px 14px 13px !default;
|
||||
$--notification-radius: 8px !default;
|
||||
$--notification-shadow: $--box-shadow-light !default;
|
||||
$--notification-border-color: $--border-color-lighter !default;
|
||||
$--notification-icon-size: 24px !default;
|
||||
$--notification-close-font-size: $--message-close-size !default;
|
||||
$--notification-group-margin: 13px !default;
|
||||
$--notification-font-size: $--font-size-base !default;
|
||||
$--notification-color: $--color-text-regular !default;
|
||||
$--notification-title-font-size: 16px !default;
|
||||
$--notification-title-color: $--color-text-primary !default;
|
||||
|
||||
$--notification-close-color: $--color-text-secondary !default;
|
||||
$--notification-close-hover-color: $--color-text-regular !default;
|
||||
|
||||
$--notification-success-color: $--color-success !default;
|
||||
$--notification-info-color: $--color-info !default;
|
||||
$--notification-warning-color: $--color-warning !default;
|
||||
$--notification-danger-color: $--color-danger !default;
|
||||
|
||||
/* Input
|
||||
-------------------------- */
|
||||
$--input-font-size: $--font-size-base !default;
|
||||
$--input-color: $--color-text-regular !default;
|
||||
$--input-width: 140px !default;
|
||||
$--input-height: 40px !default;
|
||||
$--input-border: $--border-base !default;
|
||||
$--input-border-color: $--border-color-base !default;
|
||||
$--input-border-radius: $--border-radius-base !default;
|
||||
$--input-border-color-hover: $--border-color-hover !default;
|
||||
$--input-fill: $--color-white !default;
|
||||
$--input-fill-disabled: $--disabled-fill-base !default;
|
||||
$--input-color-disabled: $--font-color-disabled-base !default;
|
||||
$--input-icon-color: $--color-text-placeholder !default;
|
||||
$--input-placeholder-color: $--color-text-placeholder !default;
|
||||
$--input-max-width: 314px !default;
|
||||
|
||||
$--input-hover-border: $--border-color-hover !default;
|
||||
$--input-clear-hover-color: $--color-text-secondary !default;
|
||||
|
||||
$--input-focus-border: $--color-primary !default;
|
||||
$--input-focus-fill: $--color-white !default;
|
||||
|
||||
$--input-disabled-fill: $--disabled-fill-base !default;
|
||||
$--input-disabled-border: $--disabled-border-base !default;
|
||||
$--input-disabled-color: $--disabled-color-base !default;
|
||||
$--input-disabled-placeholder-color: $--color-text-placeholder !default;
|
||||
|
||||
$--input-medium-font-size: 14px !default;
|
||||
$--input-medium-height: 36px !default;
|
||||
|
||||
$--input-small-font-size: 13px !default;
|
||||
$--input-small-height: 32px !default;
|
||||
|
||||
$--input-mini-font-size: 12px !default;
|
||||
$--input-mini-height: 28px !default;
|
||||
|
||||
/* Cascader
|
||||
-------------------------- */
|
||||
$--cascader-menu-fill: $--fill-base !default;
|
||||
$--cascader-menu-font-size: $--font-size-base !default;
|
||||
$--cascader-menu-radius: $--border-radius-base !default;
|
||||
$--cascader-menu-border: $--border-base !default;
|
||||
$--cascader-menu-border-color: $--border-color-base !default;
|
||||
$--cascader-menu-border-width: $--border-width-base !default;
|
||||
$--cascader-menu-color: $--color-text-regular !default;
|
||||
$--cascader-menu-option-color-active: $--color-text-secondary !default;
|
||||
$--cascader-menu-option-fill-active: rgba($--color-text-secondary, 0.12) !default;
|
||||
$--cascader-menu-option-color-hover: $--color-text-regular !default;
|
||||
$--cascader-menu-option-fill-hover: rgba($--color-text-primary, 0.06) !default;
|
||||
$--cascader-menu-option-color-disabled: #999 !default;
|
||||
$--cascader-menu-option-fill-disabled: rgba($--color-black, 0.06) !default;
|
||||
$--cascader-menu-option-empty-color: #666 !default;
|
||||
$--cascader-menu-group-color: #999 !default;
|
||||
$--cascader-menu-shadow: 0 1px 2px rgba($--color-black, 0.14), 0 0 3px rgba($--color-black, 0.14) !default;
|
||||
$--cascader-menu-option-pinyin-color: #999 !default;
|
||||
$--cascader-menu-submenu-shadow: 1px 1px 2px rgba($--color-black, 0.14), 1px 0 2px rgba($--color-black, 0.14) !default;
|
||||
|
||||
/* Group
|
||||
-------------------------- */
|
||||
$--group-option-flex: 0 0 (1/5) * 100% !default;
|
||||
$--group-option-offset-bottom: 12px !default;
|
||||
$--group-option-fill-hover: rgba($--color-black, 0.06) !default;
|
||||
$--group-title-color: $--color-black !default;
|
||||
$--group-title-font-size: $--font-size-base !default;
|
||||
$--group-title-width: 66px !default;
|
||||
|
||||
/* Tab
|
||||
-------------------------- */
|
||||
$--tab-font-size: $--font-size-base !default;
|
||||
$--tab-border-line: 1px solid #e4e4e4 !default;
|
||||
$--tab-header-color-active: $--color-text-secondary !default;
|
||||
$--tab-header-color-hover: $--color-text-regular !default;
|
||||
$--tab-header-color: $--color-text-regular !default;
|
||||
$--tab-header-fill-active: rgba($--color-black, 0.06) !default;
|
||||
$--tab-header-fill-hover: rgba($--color-black, 0.06) !default;
|
||||
$--tab-vertical-header-width: 90px !default;
|
||||
$--tab-vertical-header-count-color: $--color-white !default;
|
||||
$--tab-vertical-header-count-fill: $--color-text-secondary !default;
|
||||
|
||||
/* Button
|
||||
-------------------------- */
|
||||
/// fontSize|[]|Font|1
|
||||
$--button-font-size: $--font-size-base !default;
|
||||
/// fontWeight|[]|Font|1
|
||||
$--button-font-weight: $--font-weight-primary !default;
|
||||
/// borderRadius|[]|Border|2
|
||||
$--button-border-radius: $--border-radius-base !default;
|
||||
$--button-padding-vertical: 12px !default;
|
||||
$--button-padding-horizontal: 20px !default;
|
||||
|
||||
/// fontSize|[]|Font|1
|
||||
$--button-medium-font-size: $--font-size-base !default;
|
||||
/// borderRadius|[]|Border|2
|
||||
$--button-medium-border-radius: $--border-radius-base !default;
|
||||
$--button-medium-padding-vertical: 10px !default;
|
||||
$--button-medium-padding-horizontal: 20px !default;
|
||||
|
||||
/// fontSize|[]|Font|1
|
||||
$--button-small-font-size: 12px !default;
|
||||
$--button-small-border-radius: #{$--border-radius-base - 1} !default;
|
||||
$--button-small-padding-vertical: 9px !default;
|
||||
$--button-small-padding-horizontal: 15px !default;
|
||||
|
||||
$--button-mini-font-size: 12px !default;
|
||||
$--button-mini-border-radius: #{$--border-radius-base - 1} !default;
|
||||
$--button-mini-padding-vertical: 7px !default;
|
||||
$--button-mini-padding-horizontal: 15px !default;
|
||||
|
||||
/// color|[]|Color|0
|
||||
$--button-default-font-color: $--color-text-regular !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-default-background-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-default-border-color: $--border-color-base !default;
|
||||
|
||||
/// color|[]|Color|0
|
||||
$--button-disabled-font-color: $--color-text-placeholder !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-disabled-background-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-disabled-border-color: $--border-color-lighter !default;
|
||||
|
||||
/// color|[]|Color|0
|
||||
$--button-primary-border-color: $--color-primary !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-primary-font-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-primary-background-color: $--color-primary !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-success-border-color: $--color-success !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-success-font-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-success-background-color: $--color-success !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-warning-border-color: $--color-warning !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-warning-font-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-warning-background-color: $--color-warning !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-danger-border-color: $--color-danger !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-danger-font-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-danger-background-color: $--color-danger !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-info-border-color: $--color-info !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-info-font-color: $--color-white !default;
|
||||
/// color|[]|Color|0
|
||||
$--button-info-background-color: $--color-info !default;
|
||||
|
||||
$--button-hover-tint-percent: 20% !default;
|
||||
$--button-active-shade-percent: 10% !default;
|
||||
|
||||
|
||||
/* cascader
|
||||
-------------------------- */
|
||||
$--cascader-height: 200px !default;
|
||||
|
||||
/* Switch
|
||||
-------------------------- */
|
||||
$--switch-on-color: $--color-primary !default;
|
||||
$--switch-off-color: $--border-color-base !default;
|
||||
$--switch-disabled-color: $--border-color-lighter !default;
|
||||
$--switch-disabled-text-color: $--color-text-placeholder !default;
|
||||
|
||||
$--switch-font-size: $--font-size-base !default;
|
||||
$--switch-core-border-radius: 10px !default;
|
||||
$--switch-width: 40px !default;
|
||||
$--switch-height: 20px !default;
|
||||
$--switch-button-size: 16px !default;
|
||||
|
||||
/* Dialog
|
||||
-------------------------- */
|
||||
$--dialog-background-color: $--color-primary-light-4 !default;
|
||||
$--dialog-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !default;
|
||||
$--dialog-close-hover-color: $--color-primary !default;
|
||||
$--dialog-title-font-size: $--font-size-large !default;
|
||||
$--dialog-font-size: 14px !default;
|
||||
/// fontLineHeight|[]
|
||||
$--dialog-font-line-height: $--font-line-height-primary !default;
|
||||
$--dialog-padding-primary: 20px !default;
|
||||
|
||||
/* Table
|
||||
-------------------------- */
|
||||
$--table-border-color: $--border-color-lighter !default;
|
||||
$--table-border: 1px solid $--table-border-color !default;
|
||||
$--table-text-color: $--color-text-regular !default;
|
||||
$--table-header-color: $--color-text-secondary !default;
|
||||
$--table-row-hover-background: $--background-color-base !default;
|
||||
$--table-current-row-background: $--color-primary-light-9 !default;
|
||||
$--table-header-background: $--color-white !default;
|
||||
$--table-footer-background: $--color-text-placeholder !default;
|
||||
$--table-fixed-box-shadow: 0 0 10px rgba(0, 0, 0, .12) !default;
|
||||
|
||||
/* Pagination
|
||||
-------------------------- */
|
||||
$--pagination-font-size: 13px !default;
|
||||
$--pagination-fill: $--color-white !default;
|
||||
$--pagination-color: $--color-text-primary !default;
|
||||
$--pagination-border-radius: 3px !default;
|
||||
$--pagination-button-color: $--color-text-primary !default;
|
||||
$--pagination-button-width: 35.5px !default;
|
||||
$--pagination-button-height: 28px !default;
|
||||
$--pagination-button-disabled-color: $--color-text-placeholder !default;
|
||||
$--pagination-button-disabled-fill: $--color-white !default;
|
||||
$--pagination-hover-fill: $--color-primary !default;
|
||||
$--pagination-hover-color: $--color-white !default;
|
||||
|
||||
/* Popover
|
||||
-------------------------- */
|
||||
$--popover-fill: $--color-white !default;
|
||||
$--popover-font-size: $--font-size-base !default;
|
||||
$--popover-border-color: $--border-color-lighter !default;
|
||||
$--popover-arrow-size: 6px !default;
|
||||
$--popover-padding: 12px !default;
|
||||
$--popover-padding-large: 18px 20px !default;
|
||||
$--popover-title-font-size: 16px !default;
|
||||
$--popover-title-color: $--color-text-primary !default;
|
||||
|
||||
/* Tooltip
|
||||
-------------------------- */
|
||||
$--tooltip-fill: $--color-text-primary !default;
|
||||
$--tooltip-color: $--color-white !default;
|
||||
$--tooltip-font-size: 12px !default;
|
||||
$--tooltip-border-color: $--color-text-primary !default;
|
||||
$--tooltip-arrow-size: 6px !default;
|
||||
$--tooltip-padding: 10px !default;
|
||||
|
||||
/* Tag
|
||||
-------------------------- */
|
||||
$--tag-padding: 0 10px !default;
|
||||
$--tag-fill: rgba($--color-primary, 0.10) !default;
|
||||
$--tag-color: $--color-primary !default;
|
||||
$--tag-border: rgba($--color-primary, 0.20) !default;
|
||||
$--tag-font-size: 12px !default;
|
||||
$--tag-border-radius: 4px !default;
|
||||
|
||||
$--tag-info-fill: rgba($--color-info, 0.10) !default;
|
||||
$--tag-info-border: rgba($--color-info, 0.20) !default;
|
||||
$--tag-info-color: $--color-info !default;
|
||||
|
||||
$--tag-primary-fill: rgba($--color-primary, 0.10) !default;
|
||||
$--tag-primary-border: rgba($--color-primary, 0.20) !default;
|
||||
$--tag-primary-color: $--color-primary !default;
|
||||
|
||||
$--tag-success-fill: rgba($--color-success, 0.10) !default;
|
||||
$--tag-success-border: rgba($--color-success, 0.20) !default;
|
||||
$--tag-success-color: $--color-success !default;
|
||||
|
||||
$--tag-warning-fill: rgba($--color-warning, 0.10) !default;
|
||||
$--tag-warning-border: rgba($--color-warning, 0.20) !default;
|
||||
$--tag-warning-color: $--color-warning !default;
|
||||
|
||||
$--tag-danger-fill: rgba($--color-danger, 0.10) !default;
|
||||
$--tag-danger-border: rgba($--color-danger, 0.20) !default;
|
||||
$--tag-danger-color: $--color-danger !default;
|
||||
|
||||
/* Tree
|
||||
-------------------------- */
|
||||
$--tree-node-hover-color: $--background-color-base !default;
|
||||
$--tree-text-color: $--color-text-regular !default;
|
||||
$--tree-expand-icon-color: $--color-text-placeholder !default;
|
||||
|
||||
/* Dropdown
|
||||
-------------------------- */
|
||||
$--dropdown-menu-box-shadow: $--box-shadow-light !default;
|
||||
$--dropdown-menuItem-hover-fill: $--color-primary-light-9 !default;
|
||||
$--dropdown-menuItem-hover-color: $--link-color !default;
|
||||
|
||||
/* Badge
|
||||
-------------------------- */
|
||||
$--badge-fill: $--color-danger !default;
|
||||
$--badge-radius: 10px !default;
|
||||
$--badge-font-size: 12px !default;
|
||||
$--badge-padding: 6px !default;
|
||||
$--badge-size: 18px !default;
|
||||
|
||||
/* Card
|
||||
--------------------------*/
|
||||
$--card-border-color: $--border-color-lighter !default;
|
||||
$--card-border-radius: 4px !default;
|
||||
$--card-padding: 20px !default;
|
||||
|
||||
/* Slider
|
||||
--------------------------*/
|
||||
$--slider-main-background-color: $--color-primary !default;
|
||||
$--slider-runway-background-color: $--border-color-light !default;
|
||||
$--slider-button-hover-color: mix($--color-primary, black, 97%) !default;
|
||||
$--slider-stop-background-color: $--color-white !default;
|
||||
$--slider-disable-color: $--color-text-placeholder !default;
|
||||
|
||||
$--slider-margin: 16px 0 !default;
|
||||
$--slider-border-radius: 3px !default;
|
||||
$--slider-height: 6px !default;
|
||||
$--slider-button-size: 16px !default;
|
||||
$--slider-button-wrapper-size: 36px !default;
|
||||
$--slider-button-wrapper-offset: -15px !default;
|
||||
|
||||
/* Steps
|
||||
--------------------------*/
|
||||
$--steps-border-color: $--disabled-border-base !default;
|
||||
$--steps-border-radius: 4px !default;
|
||||
$--steps-padding: 20px !default;
|
||||
|
||||
/* Menu
|
||||
--------------------------*/
|
||||
$--menu-item-font-size: $--font-size-base !default;
|
||||
$--menu-item-color: $--color-text-primary !default;
|
||||
$--menu-item-fill: $--color-white !default;
|
||||
$--menu-item-hover-fill: $--color-primary-light-9 !default;
|
||||
|
||||
/* Rate
|
||||
--------------------------*/
|
||||
$--rate-height: 20px !default;
|
||||
$--rate-font-size: $--font-size-base !default;
|
||||
$--rate-icon-size: 18px !default;
|
||||
$--rate-icon-margin: 6px !default;
|
||||
$--rate-icon-color: $--color-text-placeholder !default;
|
||||
|
||||
/* DatePicker
|
||||
--------------------------*/
|
||||
$--datepicker-color: $--color-text-regular !default;
|
||||
$--datepicker-off-color: $--color-text-placeholder !default;
|
||||
$--datepicker-header-color: $--color-text-regular !default;
|
||||
$--datepicker-icon-color: $--color-text-primary !default;
|
||||
$--datepicker-border-color: $--disabled-border-base !default;
|
||||
$--datepicker-inner-border-color: #e4e4e4 !default;
|
||||
$--datepicker-inrange-color: $--border-color-extra-light !default;
|
||||
$--datepicker-inrange-hover-color: $--border-color-extra-light !default;
|
||||
$--datepicker-active-color: $--color-primary !default;
|
||||
$--datepicker-text-hover-color: $--color-primary !default;
|
||||
$--datepicker-cell-hover-color: #fff !default;
|
||||
|
||||
/* Loading
|
||||
--------------------------*/
|
||||
$--loading-spinner-size: 42px !default;
|
||||
$--loading-fullscreen-spinner-size: 50px !default;
|
||||
|
||||
/* Scrollbar
|
||||
--------------------------*/
|
||||
$--scrollbar-background-color: rgba($--color-text-secondary, .3) !default;
|
||||
$--scrollbar-hover-background-color: rgba($--color-text-secondary, .5) !default;
|
||||
|
||||
/* Carousel
|
||||
--------------------------*/
|
||||
$--carousel-arrow-font-size: 12px !default;
|
||||
$--carousel-arrow-size: 36px !default;
|
||||
$--carousel-arrow-background: rgba(31, 45, 61, 0.11) !default;
|
||||
$--carousel-arrow-hover-background: rgba(31, 45, 61, 0.23) !default;
|
||||
$--carousel-indicator-width: 30px !default;
|
||||
$--carousel-indicator-height: 2px !default;
|
||||
$--carousel-indicator-padding-horizontal: 4px !default;
|
||||
$--carousel-indicator-padding-vertical: 12px !default;
|
||||
$--carousel-indicator-out-color: $--border-color-hover !default;
|
||||
|
||||
/* Collapse
|
||||
--------------------------*/
|
||||
$--collapse-border-color: $--border-color-lighter !default;
|
||||
$--collapse-header-height: 48px !default;
|
||||
$--collapse-header-padding: 20px !default;
|
||||
$--collapse-header-fill: $--color-white !default;
|
||||
$--collapse-header-color: $--color-text-primary !default;
|
||||
$--collapse-header-size: 13px !default;
|
||||
$--collapse-content-fill: $--color-white !default;
|
||||
$--collapse-content-size: 13px !default;
|
||||
$--collapse-content-color: $--color-text-primary !default;
|
||||
|
||||
/* Transfer
|
||||
--------------------------*/
|
||||
$--transfer-border-color: $--border-color-lighter !default;
|
||||
$--transfer-border-radius: $--border-radius-base !default;
|
||||
$--transfer-panel-width: 200px !default;
|
||||
$--transfer-panel-header-height: 40px !default;
|
||||
$--transfer-panel-header-background: $--background-color-base !default;
|
||||
$--transfer-panel-footer-height: 40px !default;
|
||||
$--transfer-panel-body-height: 246px !default;
|
||||
$--transfer-item-height: 30px !default;
|
||||
$--transfer-item-hover-background: $--color-text-secondary !default;
|
||||
$--transfer-filter-height: 32px !default;
|
||||
|
||||
/* Header
|
||||
--------------------------*/
|
||||
$--header-padding: 0 20px !default;
|
||||
|
||||
/* Footer
|
||||
--------------------------*/
|
||||
$--footer-padding: 0 20px !default;
|
||||
|
||||
/* Main
|
||||
--------------------------*/
|
||||
$--main-padding: 20px !default;
|
||||
|
||||
/* Timeline
|
||||
--------------------------*/
|
||||
$--timeline-node-size-normal: 12px !default;
|
||||
$--timeline-node-size-large: 14px !default;
|
||||
$--timeline-node-color: $--border-color-light !default;
|
||||
|
||||
/* Break-point
|
||||
--------------------------*/
|
||||
$--sm: 768px !default;
|
||||
$--md: 992px !default;
|
||||
$--lg: 1200px !default;
|
||||
$--xl: 1920px !default;
|
||||
|
||||
$--breakpoints: (
|
||||
'xs' : (max-width: $--sm - 1),
|
||||
'sm' : (min-width: $--sm),
|
||||
'md' : (min-width: $--md),
|
||||
'lg' : (min-width: $--lg),
|
||||
'xl' : (min-width: $--xl)
|
||||
);
|
||||
|
||||
$--breakpoints-spec: (
|
||||
'xs-only' : (max-width: $--sm - 1),
|
||||
'sm-and-up' : (min-width: $--sm),
|
||||
'sm-only': "(min-width: #{$--sm}) and (max-width: #{$--md} - 1)",
|
||||
'sm-and-down': (max-width: $--md - 1),
|
||||
'md-and-up' : (min-width: $--md),
|
||||
'md-only': "(min-width: #{$--md}) and (max-width: #{$--lg } - 1)",
|
||||
'md-and-down': (max-width: $--lg - 1),
|
||||
'lg-and-up' : (min-width: $--lg),
|
||||
'lg-only': "(min-width: #{$--lg}) and (max-width: #{$--xl } - 1)",
|
||||
'lg-and-down': (max-width: $--xl - 1),
|
||||
'xl-only' : (min-width: $--xl),
|
||||
);
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
@import "mixins/mixins";
|
||||
|
||||
@include b(container) {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex: 1;
|
||||
flex-basis: auto;
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
|
||||
@include when(vertical) {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
@import "./date-picker/date-table.scss";
|
||||
@import "./date-picker/month-table.scss";
|
||||
@import "./date-picker/year-table.scss";
|
||||
@import "./date-picker/time-spinner.scss";
|
||||
@import "./date-picker/picker.scss";
|
||||
@import "./date-picker/date-picker.scss";
|
||||
@import "./date-picker/date-range-picker.scss";
|
||||
@import "./date-picker/time-range-picker.scss";
|
||||
@import "./date-picker/time-picker.scss";
|
||||
@import "./input.scss";
|
||||
@import "./scrollbar.scss";
|
||||
@import "./popper";
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
@import "../common/var";
|
||||
@import "../mixins/mixins";
|
||||
@import "./picker-panel.scss";
|
||||
|
||||
@include b(date-picker) {
|
||||
width: 322px;
|
||||
|
||||
&.has-sidebar.has-time {
|
||||
width: 434px;
|
||||
}
|
||||
|
||||
&.has-sidebar {
|
||||
width: 438px;
|
||||
}
|
||||
|
||||
&.has-time .el-picker-panel__body-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.el-picker-panel__content {
|
||||
width: 292px;
|
||||
}
|
||||
|
||||
table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@include e(editor-wrap) {
|
||||
position: relative;
|
||||
display: table-cell;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
@include e(time-header) {
|
||||
position: relative;
|
||||
border-bottom: 1px solid $--datepicker-inner-border-color;
|
||||
font-size: 12px;
|
||||
padding: 8px 5px 5px 5px;
|
||||
display: table;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@include e(header) {
|
||||
margin: 12px;
|
||||
text-align: center;
|
||||
|
||||
@include m(bordered) {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: solid 1px $--border-color-lighter;
|
||||
|
||||
& + .el-picker-panel__content {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(header-label) {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
padding: 0 5px;
|
||||
line-height: 22px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
color: $--color-text-regular;
|
||||
|
||||
&:hover {
|
||||
color: $--datepicker-text-hover-color;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $--datepicker-active-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(prev-btn) {
|
||||
float: left;
|
||||
}
|
||||
|
||||
@include e(next-btn) {
|
||||
float: right;
|
||||
}
|
||||
|
||||
@include e(time-wrap) {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include e(time-label) {
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
line-height: 30px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
Generated
Vendored
+104
@@ -0,0 +1,104 @@
|
||||
@import "../common/var";
|
||||
|
||||
@include b(date-range-picker) {
|
||||
width: 646px;
|
||||
|
||||
&.has-sidebar {
|
||||
width: 756px;
|
||||
}
|
||||
|
||||
table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.el-picker-panel__body {
|
||||
min-width: 513px;
|
||||
}
|
||||
|
||||
.el-picker-panel__content {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@include e(header) {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
height: 28px;
|
||||
|
||||
[class*=arrow-left] {
|
||||
float: left;
|
||||
}
|
||||
|
||||
[class*=arrow-right] {
|
||||
float: right;
|
||||
}
|
||||
|
||||
div {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin-right: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
float: left;
|
||||
width: 50%;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 16px;
|
||||
|
||||
@include when(left) {
|
||||
border-right: 1px solid $--datepicker-inner-border-color;
|
||||
}
|
||||
|
||||
@include when(right) {
|
||||
.el-date-range-picker__header {
|
||||
|
||||
div {
|
||||
margin-left: 50px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(editors-wrap) {
|
||||
box-sizing: border-box;
|
||||
display: table-cell;
|
||||
|
||||
@include when(right) {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(time-header) {
|
||||
position: relative;
|
||||
border-bottom: 1px solid $--datepicker-inner-border-color;
|
||||
font-size: 12px;
|
||||
padding: 8px 5px 5px 5px;
|
||||
display: table;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
> .el-icon-arrow-right {
|
||||
font-size: 20px;
|
||||
vertical-align: middle;
|
||||
display: table-cell;
|
||||
color: $--datepicker-icon-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(time-picker-wrap) {
|
||||
position: relative;
|
||||
display: table-cell;
|
||||
padding: 0 5px;
|
||||
|
||||
.el-picker-panel {
|
||||
position: absolute;
|
||||
top: 13px;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
background: $--color-white;
|
||||
}
|
||||
}
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
@import "../common/var";
|
||||
@import "../mixins/mixins";
|
||||
|
||||
@include b(date-table) {
|
||||
font-size: 12px;
|
||||
user-select: none;
|
||||
|
||||
@include when(week-mode) {
|
||||
.el-date-table__row {
|
||||
&:hover {
|
||||
div {
|
||||
background-color: $--datepicker-inrange-color;
|
||||
}
|
||||
td.available:hover {
|
||||
color: $--datepicker-color;
|
||||
}
|
||||
td:first-child div {
|
||||
margin-left: 5px;
|
||||
border-top-left-radius: 15px;
|
||||
border-bottom-left-radius: 15px;
|
||||
}
|
||||
td:last-child div {
|
||||
margin-right: 5px;
|
||||
border-top-right-radius: 15px;
|
||||
border-bottom-right-radius: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
&.current div {
|
||||
background-color: $--datepicker-inrange-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
width: 32px;
|
||||
height: 30px;
|
||||
padding: 4px 0;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
& div {
|
||||
height: 30px;
|
||||
padding: 3px 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
& span {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
line-height: 24px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
&.next-month,
|
||||
&.prev-month {
|
||||
color: $--datepicker-off-color;
|
||||
}
|
||||
|
||||
&.today {
|
||||
position: relative;
|
||||
span {
|
||||
color: $--color-primary;
|
||||
font-weight: bold;
|
||||
}
|
||||
&.start-date span,
|
||||
&.end-date span {
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
&.available:hover {
|
||||
color: $--datepicker-text-hover-color;
|
||||
}
|
||||
|
||||
&.in-range div {
|
||||
background-color: $--datepicker-inrange-color;
|
||||
&:hover {
|
||||
background-color: $--datepicker-inrange-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.current:not(.disabled) span {
|
||||
color: $--color-white;
|
||||
background-color: $--datepicker-active-color;
|
||||
}
|
||||
&.start-date div,
|
||||
&.end-date div {
|
||||
color: $--color-white;
|
||||
}
|
||||
|
||||
&.start-date span,
|
||||
&.end-date span {
|
||||
background-color: $--datepicker-active-color;
|
||||
}
|
||||
|
||||
&.start-date div {
|
||||
margin-left: 5px;
|
||||
border-top-left-radius: 15px;
|
||||
border-bottom-left-radius: 15px;
|
||||
}
|
||||
|
||||
&.end-date div {
|
||||
margin-right: 5px;
|
||||
border-top-right-radius: 15px;
|
||||
border-bottom-right-radius: 15px;
|
||||
}
|
||||
|
||||
&.disabled div {
|
||||
background-color: $--background-color-base;
|
||||
opacity: 1;
|
||||
cursor: not-allowed;
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
|
||||
&.selected div {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
background-color: $--datepicker-inrange-color;
|
||||
border-radius: 15px;
|
||||
&:hover {
|
||||
background-color: $--datepicker-inrange-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.selected span {
|
||||
background-color: $--datepicker-active-color;
|
||||
color: $--color-white;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
&.week {
|
||||
font-size: 80%;
|
||||
color: $--datepicker-header-color;
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
padding: 5px;
|
||||
color: $--datepicker-header-color;
|
||||
font-weight: 400;
|
||||
border-bottom: solid 1px $--border-color-lighter;
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
@import "../common/var";
|
||||
|
||||
@include b(month-table) {
|
||||
font-size: 12px;
|
||||
margin: -1px;
|
||||
border-collapse: collapse;
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
padding: 20px 3px;
|
||||
cursor: pointer;
|
||||
|
||||
&.today {
|
||||
.cell {
|
||||
color: $--color-primary;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled .cell {
|
||||
background-color: $--background-color-base;
|
||||
cursor: not-allowed;
|
||||
color: $--color-text-placeholder;
|
||||
|
||||
&:hover {
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
.cell {
|
||||
width: 48px;
|
||||
height: 32px;
|
||||
display: block;
|
||||
line-height: 32px;
|
||||
color: $--datepicker-color;
|
||||
margin: 0 auto;
|
||||
|
||||
&:hover {
|
||||
color: $--datepicker-text-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.current:not(.disabled) .cell {
|
||||
color: $--datepicker-active-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
@import "../common/var";
|
||||
|
||||
@include b(picker-panel) {
|
||||
color: $--color-text-regular;
|
||||
border: 1px solid $--datepicker-border-color;
|
||||
box-shadow: $--box-shadow-light;
|
||||
background: $--color-white;
|
||||
border-radius: $--border-radius-base;
|
||||
line-height: 30px;
|
||||
margin: 5px 0;
|
||||
|
||||
@include e((body, body-wrapper)) {
|
||||
&::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
position: relative;
|
||||
margin: 15px;
|
||||
}
|
||||
|
||||
@include e(footer) {
|
||||
border-top: 1px solid $--datepicker-inner-border-color;
|
||||
padding: 4px;
|
||||
text-align: right;
|
||||
background-color: $--color-white;
|
||||
position: relative;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
@include e(shortcut) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
line-height: 28px;
|
||||
font-size: 14px;
|
||||
color: $--datepicker-color;
|
||||
padding-left: 12px;
|
||||
text-align: left;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: $--datepicker-text-hover-color;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: #e6f1fe;
|
||||
color: $--datepicker-active-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(btn) {
|
||||
border: 1px solid #dcdcdc;
|
||||
color: #333;
|
||||
line-height: 24px;
|
||||
border-radius: 2px;
|
||||
padding: 0 20px;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
font-size: 12px;
|
||||
|
||||
&[disabled] {
|
||||
color: #cccccc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(icon-btn) {
|
||||
font-size: 12px;
|
||||
color: $--datepicker-icon-color;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
margin-top: 8px;
|
||||
|
||||
&:hover {
|
||||
color: $--datepicker-text-hover-color;
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
color: $--font-color-disabled-base;
|
||||
|
||||
&:hover {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(link-btn) {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.el-picker-panel *[slot=sidebar],
|
||||
.el-picker-panel__sidebar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 110px;
|
||||
border-right: 1px solid $--datepicker-inner-border-color;
|
||||
box-sizing: border-box;
|
||||
padding-top: 6px;
|
||||
background-color: $--color-white;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.el-picker-panel *[slot=sidebar] + .el-picker-panel__body,
|
||||
.el-picker-panel__sidebar + .el-picker-panel__body {
|
||||
margin-left: 110px;
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
@import "../mixins/mixins";
|
||||
@import "../common/var";
|
||||
@import "../common/transition";
|
||||
|
||||
@include b(date-editor) {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
|
||||
&.el-input,
|
||||
&.el-input__inner {
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
@include m((daterange, timerange)) {
|
||||
&.el-input,
|
||||
&.el-input__inner {
|
||||
width: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(datetimerange) {
|
||||
&.el-input,
|
||||
&.el-input__inner {
|
||||
width: 400px;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(dates) {
|
||||
.el-input__inner {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.el-icon-circle-close {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.el-range__icon {
|
||||
font-size: 14px;
|
||||
margin-left: -5px;
|
||||
color: $--color-text-placeholder;
|
||||
float: left;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.el-range-input {
|
||||
appearance: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 39%;
|
||||
text-align: center;
|
||||
font-size: $--font-size-base;
|
||||
color: $--color-text-regular;
|
||||
|
||||
&::placeholder {
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
.el-range-separator {
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
padding: 0 5px;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
line-height: 32px;
|
||||
font-size: 14px;
|
||||
width: 5%;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
|
||||
.el-range__close-icon {
|
||||
font-size: 14px;
|
||||
color: $--color-text-placeholder;
|
||||
width: 25px;
|
||||
display: inline-block;
|
||||
float: right;
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(range-editor) {
|
||||
&.el-input__inner {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 3px 10px;
|
||||
}
|
||||
|
||||
.el-range-input {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
@include when(active) {
|
||||
border-color: $--color-primary;
|
||||
|
||||
&:hover {
|
||||
border-color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
&.el-input__inner {
|
||||
height: $--input-medium-height;
|
||||
}
|
||||
|
||||
.el-range-separator {
|
||||
line-height: 28px;
|
||||
font-size: $--input-medium-font-size;
|
||||
}
|
||||
|
||||
.el-range-input {
|
||||
font-size: $--input-medium-font-size;
|
||||
}
|
||||
|
||||
.el-range__icon,
|
||||
.el-range__close-icon {
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(small) {
|
||||
&.el-input__inner {
|
||||
height: $--input-small-height;
|
||||
}
|
||||
|
||||
.el-range-separator {
|
||||
line-height: 24px;
|
||||
font-size: $--input-small-font-size;
|
||||
}
|
||||
|
||||
.el-range-input {
|
||||
font-size: $--input-small-font-size;
|
||||
}
|
||||
|
||||
.el-range__icon,
|
||||
.el-range__close-icon {
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(mini) {
|
||||
&.el-input__inner {
|
||||
height: $--input-mini-height;
|
||||
}
|
||||
|
||||
.el-range-separator {
|
||||
line-height: 20px;
|
||||
font-size: $--input-mini-font-size;
|
||||
}
|
||||
|
||||
.el-range-input {
|
||||
font-size: $--input-mini-font-size;
|
||||
}
|
||||
|
||||
.el-range__icon,
|
||||
.el-range__close-icon {
|
||||
line-height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
background-color: $--input-disabled-fill;
|
||||
border-color: $--input-disabled-border;
|
||||
color: $--input-disabled-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&:hover, &:focus {
|
||||
border-color: $--input-disabled-border;
|
||||
}
|
||||
|
||||
input {
|
||||
background-color: $--input-disabled-fill;
|
||||
color: $--input-disabled-color;
|
||||
cursor: not-allowed;
|
||||
&::placeholder {
|
||||
color: $--input-disabled-placeholder-color;
|
||||
}
|
||||
}
|
||||
|
||||
.el-range-separator {
|
||||
color: $--input-disabled-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
@import "../common/var";
|
||||
|
||||
@include b(time-panel) {
|
||||
margin: 5px 0;
|
||||
border: solid 1px $--datepicker-border-color;
|
||||
background-color: $--color-white;
|
||||
box-shadow: $--box-shadow-light;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
width: 180px;
|
||||
left: 0;
|
||||
z-index: $--index-top;
|
||||
user-select: none;
|
||||
box-sizing: content-box;
|
||||
|
||||
@include e(content) {
|
||||
font-size: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&::after, &::before {
|
||||
content: "";
|
||||
top: 50%;
|
||||
position: absolute;
|
||||
margin-top: -15px;
|
||||
height: 32px;
|
||||
z-index: -1;
|
||||
left: 0;
|
||||
right: 0;
|
||||
box-sizing: border-box;
|
||||
padding-top: 6px;
|
||||
text-align: left;
|
||||
border-top: 1px solid $--border-color-light;
|
||||
border-bottom: 1px solid $--border-color-light;
|
||||
}
|
||||
|
||||
&::after {
|
||||
left: 50%;
|
||||
margin-left: 12%;
|
||||
margin-right: 12%;
|
||||
}
|
||||
|
||||
&::before {
|
||||
padding-left: 50%;
|
||||
margin-right: 12%;
|
||||
margin-left: 12%;
|
||||
}
|
||||
|
||||
&.has-seconds {
|
||||
&::after {
|
||||
left: calc(100% / 3 * 2);
|
||||
}
|
||||
|
||||
&::before {
|
||||
padding-left: calc(100% / 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(footer) {
|
||||
border-top: 1px solid $--datepicker-inner-border-color;
|
||||
padding: 4px;
|
||||
height: 36px;
|
||||
line-height: 25px;
|
||||
text-align: right;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@include e(btn) {
|
||||
border: none;
|
||||
line-height: 28px;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
font-size: 12px;
|
||||
color: $--color-text-primary;
|
||||
|
||||
&.confirm {
|
||||
font-weight: 800;
|
||||
color: $--datepicker-active-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
@import "../common/var";
|
||||
|
||||
@include b(time-range-picker) {
|
||||
width: 354px;
|
||||
overflow: visible;
|
||||
|
||||
@include e(content) {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@include e(cell) {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 4px 7px 7px;
|
||||
width: 50%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@include e(header) {
|
||||
margin-bottom: 5px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@include e(body) {
|
||||
border-radius:2px;
|
||||
border: 1px solid $--datepicker-border-color;
|
||||
}
|
||||
}
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
@import "../common/var";
|
||||
|
||||
@include b(time-spinner) {
|
||||
&.has-seconds {
|
||||
.el-time-spinner__wrapper {
|
||||
width: 33.3%;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(wrapper) {
|
||||
max-height: 190px;
|
||||
overflow: auto;
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
|
||||
& .el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default) {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
@include when(arrow) {
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
|
||||
.el-time-spinner__list {
|
||||
transform: translateY(-32px);
|
||||
}
|
||||
|
||||
.el-time-spinner__item:hover:not(.disabled):not(.active) {
|
||||
background: $--color-white;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(arrow) {
|
||||
font-size: 12px;
|
||||
color: $--color-text-secondary;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: $--index-normal;
|
||||
text-align: center;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
&.el-icon-arrow-up {
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
&.el-icon-arrow-down {
|
||||
bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(input) {
|
||||
&.el-input {
|
||||
width: 70%;
|
||||
|
||||
.el-input__inner {
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(list) {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
text-align: center;
|
||||
|
||||
&::after,
|
||||
&::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(item) {
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
font-size: 12px;
|
||||
color: $--color-text-regular;
|
||||
|
||||
&:hover:not(.disabled):not(.active) {
|
||||
background: $--background-color-base;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.active:not(.disabled) {
|
||||
color: $--color-text-primary;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
color: $--color-text-placeholder;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
@import "../common/var";
|
||||
|
||||
@include b(year-table) {
|
||||
font-size: 12px;
|
||||
margin: -1px;
|
||||
border-collapse: collapse;
|
||||
|
||||
.el-icon {
|
||||
color: $--datepicker-icon-color;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
padding: 20px 3px;
|
||||
cursor: pointer;
|
||||
|
||||
&.today {
|
||||
.cell {
|
||||
color: $--color-primary;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled .cell {
|
||||
background-color: $--background-color-base;
|
||||
cursor: not-allowed;
|
||||
color: $--color-text-placeholder;
|
||||
|
||||
&:hover {
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
.cell {
|
||||
width: 48px;
|
||||
height: 32px;
|
||||
display: block;
|
||||
line-height: 32px;
|
||||
color: $--datepicker-color;
|
||||
margin: 0 auto;
|
||||
|
||||
&:hover {
|
||||
color: $--datepicker-text-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.current:not(.disabled) .cell {
|
||||
color: $--datepicker-active-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
@import "common/popup";
|
||||
|
||||
@include b(dialog) {
|
||||
position: relative;
|
||||
margin: 0 auto 50px;
|
||||
background: $--color-white;
|
||||
border-radius: $--border-radius-small;
|
||||
box-shadow: $--dialog-box-shadow;
|
||||
box-sizing: border-box;
|
||||
width: 50%;
|
||||
|
||||
@include when(fullscreen) {
|
||||
width: 100%;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
@include e(wrapper) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: auto;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@include e(header) {
|
||||
padding: $--dialog-padding-primary;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
@include e(headerbtn) {
|
||||
position: absolute;
|
||||
top: $--dialog-padding-primary;
|
||||
right: $--dialog-padding-primary;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
font-size: $--message-close-size;
|
||||
|
||||
.el-dialog__close {
|
||||
color: $--color-info;
|
||||
}
|
||||
|
||||
&:focus, &:hover {
|
||||
.el-dialog__close {
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
line-height: $--dialog-font-line-height;
|
||||
font-size: $--dialog-title-font-size;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
|
||||
@include e(body) {
|
||||
padding: 30px 20px;
|
||||
color: $--color-text-regular;
|
||||
font-size: $--dialog-font-size;
|
||||
}
|
||||
|
||||
@include e(footer) {
|
||||
padding: $--dialog-padding-primary;
|
||||
padding-top: 10px;
|
||||
text-align: right;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
// 内容居中布局
|
||||
@include m(center) {
|
||||
text-align: center;
|
||||
|
||||
@include e(body) {
|
||||
text-align: initial;
|
||||
padding: 25px ($--dialog-padding-primary + 5px) 30px;
|
||||
}
|
||||
|
||||
@include e(footer) {
|
||||
text-align: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-fade-enter-active {
|
||||
animation: dialog-fade-in .3s;
|
||||
}
|
||||
|
||||
.dialog-fade-leave-active {
|
||||
animation: dialog-fade-out .3s;
|
||||
}
|
||||
|
||||
@keyframes dialog-fade-in {
|
||||
0% {
|
||||
transform: translate3d(0, -20px, 0);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(0, 0, 0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes dialog-fade-out {
|
||||
0% {
|
||||
transform: translate3d(0, 0, 0);
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(0, -20px, 0);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
@import "common/var";
|
||||
@import "mixins/mixins";
|
||||
|
||||
.hidden {
|
||||
@each $break-point-name, $value in $--breakpoints-spec {
|
||||
&-#{$break-point-name} {
|
||||
@include res($break-point-name, $--breakpoints-spec) {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
@import "button";
|
||||
@import "./popper";
|
||||
|
||||
@include b(dropdown) {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
color: $--color-text-regular;
|
||||
font-size: $--font-size-base;
|
||||
|
||||
.el-button-group {
|
||||
display: block;
|
||||
.el-button {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
|
||||
& .el-dropdown__caret-button {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
position: relative;
|
||||
border-left: none;
|
||||
|
||||
&::before {
|
||||
$gap: 5px;
|
||||
|
||||
content: '';
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 1px;
|
||||
top: $gap;
|
||||
bottom: $gap;
|
||||
left: 0;
|
||||
background: mix(white, transparent, 50%);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&::before {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
& .el-dropdown__icon {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
@include e(icon) {
|
||||
font-size: 12px;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.el-dropdown-selfdefine { // 自定义
|
||||
&:focus:active, &:focus:not(.focusing) {
|
||||
outline-width: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(dropdown-menu) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
padding: 10px 0;
|
||||
margin: 5px 0;
|
||||
background-color: $--color-white;
|
||||
border: 1px solid $--border-color-lighter;
|
||||
border-radius: $--border-radius-base;
|
||||
box-shadow: $--dropdown-menu-box-shadow;
|
||||
max-height: 400px;
|
||||
overflow: auto;
|
||||
|
||||
@include e(item) {
|
||||
list-style: none;
|
||||
line-height: 36px;
|
||||
padding: 0 20px;
|
||||
margin: 0;
|
||||
font-size: $--font-size-base;
|
||||
color: $--color-text-regular;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
&:not(.is-disabled):hover, &:focus {
|
||||
background-color: $--dropdown-menuItem-hover-fill;
|
||||
color: $--dropdown-menuItem-hover-color;
|
||||
}
|
||||
|
||||
i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
@include m(divided) {
|
||||
$divided-offset: 6px;
|
||||
|
||||
position: relative;
|
||||
margin-top: $divided-offset;
|
||||
border-top: 1px solid $--border-color-lighter;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
height: $divided-offset;
|
||||
display: block;
|
||||
margin: 0 -20px;
|
||||
background-color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
cursor: default;
|
||||
color: $--font-color-disabled-base;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
padding: 6px 0;
|
||||
|
||||
@include e(item) {
|
||||
line-height: 30px;
|
||||
padding: 0 17px;
|
||||
font-size: 14px;
|
||||
|
||||
&.el-dropdown-menu__item--divided {
|
||||
$divided-offset: 6px;
|
||||
margin-top: $divided-offset;
|
||||
|
||||
&:before {
|
||||
height: $divided-offset;
|
||||
margin: 0 -17px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include m(small) {
|
||||
padding: 6px 0;
|
||||
|
||||
@include e(item) {
|
||||
line-height: 27px;
|
||||
padding: 0 15px;
|
||||
font-size: 13px;
|
||||
|
||||
&.el-dropdown-menu__item--divided {
|
||||
$divided-offset: 4px;
|
||||
margin-top: $divided-offset;
|
||||
|
||||
&:before {
|
||||
height: $divided-offset;
|
||||
margin: 0 -15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include m(mini) {
|
||||
padding: 3px 0;
|
||||
|
||||
@include e(item) {
|
||||
line-height: 24px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
|
||||
&.el-dropdown-menu__item--divided {
|
||||
$divided-offset: 3px;
|
||||
margin-top: $divided-offset;
|
||||
|
||||
&:before {
|
||||
height: $divided-offset;
|
||||
margin: 0 -10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(footer) {
|
||||
padding: $--footer-padding;
|
||||
box-sizing: border-box;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
+174
@@ -0,0 +1,174 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
|
||||
@include b(form) {
|
||||
@include m(label-left) {
|
||||
& .el-form-item__label {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
@include m(label-top) {
|
||||
& .el-form-item__label {
|
||||
float: none;
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
padding: 0 0 10px 0;
|
||||
}
|
||||
}
|
||||
@include m(inline) {
|
||||
& .el-form-item {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
vertical-align: top;
|
||||
}
|
||||
& .el-form-item__label {
|
||||
float: none;
|
||||
display: inline-block;
|
||||
}
|
||||
& .el-form-item__content {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
&.el-form--label-top .el-form-item__content {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include b(form-item) {
|
||||
margin-bottom: 22px;
|
||||
@include utils-clearfix;
|
||||
|
||||
& .el-form-item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
& .el-input__validateIcon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
.el-form-item__label {
|
||||
line-height: 36px;
|
||||
}
|
||||
.el-form-item__content {
|
||||
line-height: 36px;
|
||||
}
|
||||
}
|
||||
@include m(small) {
|
||||
.el-form-item__label {
|
||||
line-height: 32px;
|
||||
}
|
||||
.el-form-item__content {
|
||||
line-height: 32px;
|
||||
}
|
||||
&.el-form-item {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.el-form-item__error {
|
||||
padding-top: 2px;
|
||||
}
|
||||
}
|
||||
@include m(mini) {
|
||||
.el-form-item__label {
|
||||
line-height: 28px;
|
||||
}
|
||||
.el-form-item__content {
|
||||
line-height: 28px;
|
||||
}
|
||||
&.el-form-item {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.el-form-item__error {
|
||||
padding-top: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
float: left;
|
||||
font-size: 14px;
|
||||
color: $--color-text-regular;
|
||||
line-height: 40px;
|
||||
padding: 0 12px 0 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@include e(content) {
|
||||
line-height: 40px;
|
||||
position: relative;
|
||||
font-size: 14px;
|
||||
@include utils-clearfix;
|
||||
|
||||
.el-input-group {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
@include e(error) {
|
||||
color: $--color-danger;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
padding-top: 4px;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
|
||||
@include m(inline) {
|
||||
position: relative;
|
||||
top: auto;
|
||||
left: auto;
|
||||
display: inline-block;
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(required) {
|
||||
@include pseudo('not(.is-no-asterisk)') {
|
||||
& > .el-form-item__label:before {
|
||||
content: '*';
|
||||
color: $--color-danger;
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include when(error) {
|
||||
& .el-input__inner,
|
||||
& .el-textarea__inner {
|
||||
&, &:focus {
|
||||
border-color: $--color-danger;
|
||||
}
|
||||
}
|
||||
& .el-input-group__append,
|
||||
& .el-input-group__prepend {
|
||||
& .el-input__inner {
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
.el-input__validateIcon {
|
||||
color: $--color-danger;
|
||||
}
|
||||
}
|
||||
@include when(success) {
|
||||
& .el-input__inner,
|
||||
& .el-textarea__inner {
|
||||
&, &:focus {
|
||||
border-color: $--color-success;
|
||||
}
|
||||
}
|
||||
& .el-input-group__append,
|
||||
& .el-input-group__prepend {
|
||||
& .el-input__inner {
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
.el-input__validateIcon {
|
||||
color: $--color-success;
|
||||
}
|
||||
}
|
||||
@include m(feedback) {
|
||||
.el-input__validateIcon {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(header) {
|
||||
padding: $--header-padding;
|
||||
box-sizing: border-box;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
@import "common/var";
|
||||
|
||||
@font-face {
|
||||
font-family: 'element-icons';
|
||||
src: url('#{$--font-path}/element-icons.woff') format('woff'), /* chrome, firefox */
|
||||
url('#{$--font-path}/element-icons.ttf') format('truetype'); /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
||||
font-weight: normal;
|
||||
font-style: normal
|
||||
}
|
||||
|
||||
[class^="el-icon-"], [class*=" el-icon-"] {
|
||||
/* use !important to prevent issues with browser extensions that change fonts */
|
||||
font-family: 'element-icons' !important;
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
vertical-align: baseline;
|
||||
display: inline-block;
|
||||
|
||||
/* Better Font Rendering =========== */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.el-icon-info:before { content: "\e61a"; }
|
||||
|
||||
.el-icon-error:before { content: "\e62c"; }
|
||||
|
||||
.el-icon-success:before { content: "\e62d"; }
|
||||
|
||||
.el-icon-warning:before { content: "\e62e"; }
|
||||
|
||||
.el-icon-question:before { content: "\e634"; }
|
||||
|
||||
.el-icon-back:before { content: "\e606"; }
|
||||
|
||||
.el-icon-arrow-left:before { content: "\e600"; }
|
||||
|
||||
.el-icon-arrow-down:before { content: "\e603"; }
|
||||
|
||||
.el-icon-arrow-right:before { content: "\e604"; }
|
||||
|
||||
.el-icon-arrow-up:before { content: "\e605"; }
|
||||
|
||||
.el-icon-caret-left:before { content: "\e60a"; }
|
||||
|
||||
.el-icon-caret-bottom:before { content: "\e60b"; }
|
||||
|
||||
.el-icon-caret-top:before { content: "\e60c"; }
|
||||
|
||||
.el-icon-caret-right:before { content: "\e60e"; }
|
||||
|
||||
.el-icon-d-arrow-left:before { content: "\e610"; }
|
||||
|
||||
.el-icon-d-arrow-right:before { content: "\e613"; }
|
||||
|
||||
.el-icon-minus:before { content: "\e621"; }
|
||||
|
||||
.el-icon-plus:before { content: "\e62b"; }
|
||||
|
||||
.el-icon-remove:before { content: "\e635"; }
|
||||
|
||||
.el-icon-circle-plus:before { content: "\e601"; }
|
||||
|
||||
.el-icon-remove-outline:before { content: "\e63c"; }
|
||||
|
||||
.el-icon-circle-plus-outline:before { content: "\e602"; }
|
||||
|
||||
.el-icon-close:before { content: "\e60f"; }
|
||||
|
||||
.el-icon-check:before { content: "\e611"; }
|
||||
|
||||
.el-icon-circle-close:before { content: "\e607"; }
|
||||
|
||||
.el-icon-circle-check:before { content: "\e639"; }
|
||||
|
||||
.el-icon-circle-close-outline:before { content: "\e609"; }
|
||||
|
||||
.el-icon-circle-check-outline:before { content: "\e63e"; }
|
||||
|
||||
.el-icon-zoom-out:before { content: "\e645"; }
|
||||
|
||||
.el-icon-zoom-in:before { content: "\e641"; }
|
||||
|
||||
.el-icon-d-caret:before { content: "\e615"; }
|
||||
|
||||
.el-icon-sort:before { content: "\e640"; }
|
||||
|
||||
.el-icon-sort-down:before { content: "\e630"; }
|
||||
|
||||
.el-icon-sort-up:before { content: "\e631"; }
|
||||
|
||||
.el-icon-tickets:before { content: "\e63f"; }
|
||||
|
||||
.el-icon-document:before { content: "\e614"; }
|
||||
|
||||
.el-icon-goods:before { content: "\e618"; }
|
||||
|
||||
.el-icon-sold-out:before { content: "\e63b"; }
|
||||
|
||||
.el-icon-news:before { content: "\e625"; }
|
||||
|
||||
.el-icon-message:before { content: "\e61b"; }
|
||||
|
||||
.el-icon-date:before { content: "\e608"; }
|
||||
|
||||
.el-icon-printer:before { content: "\e62f"; }
|
||||
|
||||
.el-icon-time:before { content: "\e642"; }
|
||||
|
||||
.el-icon-bell:before { content: "\e622"; }
|
||||
|
||||
.el-icon-mobile-phone:before { content: "\e624"; }
|
||||
|
||||
.el-icon-service:before { content: "\e63a"; }
|
||||
|
||||
.el-icon-view:before { content: "\e643"; }
|
||||
|
||||
.el-icon-menu:before { content: "\e620"; }
|
||||
|
||||
.el-icon-more:before { content: "\e646"; }
|
||||
|
||||
.el-icon-more-outline:before { content: "\e626"; }
|
||||
|
||||
.el-icon-star-on:before { content: "\e637"; }
|
||||
|
||||
.el-icon-star-off:before { content: "\e63d"; }
|
||||
|
||||
.el-icon-location:before { content: "\e61d"; }
|
||||
|
||||
.el-icon-location-outline:before { content: "\e61f"; }
|
||||
|
||||
.el-icon-phone:before { content: "\e627"; }
|
||||
|
||||
.el-icon-phone-outline:before { content: "\e628"; }
|
||||
|
||||
.el-icon-picture:before { content: "\e629"; }
|
||||
|
||||
.el-icon-picture-outline:before { content: "\e62a"; }
|
||||
|
||||
.el-icon-delete:before { content: "\e612"; }
|
||||
|
||||
.el-icon-search:before { content: "\e619"; }
|
||||
|
||||
.el-icon-edit:before { content: "\e61c"; }
|
||||
|
||||
.el-icon-edit-outline:before { content: "\e616"; }
|
||||
|
||||
.el-icon-rank:before { content: "\e632"; }
|
||||
|
||||
.el-icon-refresh:before { content: "\e633"; }
|
||||
|
||||
.el-icon-share:before { content: "\e636"; }
|
||||
|
||||
.el-icon-setting:before { content: "\e638"; }
|
||||
|
||||
.el-icon-upload:before { content: "\e60d"; }
|
||||
|
||||
.el-icon-upload2:before { content: "\e644"; }
|
||||
|
||||
.el-icon-download:before { content: "\e617"; }
|
||||
|
||||
.el-icon-loading:before { content: "\e61e"; }
|
||||
|
||||
.el-icon-loading {
|
||||
animation: rotating 2s linear infinite;
|
||||
}
|
||||
|
||||
.el-icon--right {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.el-icon--left {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
@keyframes rotating {
|
||||
0% {
|
||||
transform: rotateZ(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotateZ(360deg);
|
||||
}
|
||||
}
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
@import "./base.scss";
|
||||
@import "./pagination.scss";
|
||||
@import "./dialog.scss";
|
||||
@import "./autocomplete.scss";
|
||||
@import "./dropdown.scss";
|
||||
@import "./dropdown-menu.scss";
|
||||
@import "./dropdown-item.scss";
|
||||
@import "./menu.scss";
|
||||
@import "./submenu.scss";
|
||||
@import "./menu-item.scss";
|
||||
@import "./menu-item-group.scss";
|
||||
@import "./input.scss";
|
||||
@import "./input-number.scss";
|
||||
@import "./radio.scss";
|
||||
@import "./radio-group.scss";
|
||||
@import "./radio-button.scss";
|
||||
@import "./checkbox.scss";
|
||||
@import "./checkbox-button.scss";
|
||||
@import "./checkbox-group.scss";
|
||||
@import "./switch.scss";
|
||||
@import "./select.scss";
|
||||
@import "./button.scss";
|
||||
@import "./button-group.scss";
|
||||
@import "./table.scss";
|
||||
@import "./table-column.scss";
|
||||
@import "./date-picker.scss";
|
||||
@import "./time-select.scss";
|
||||
@import "./time-picker.scss";
|
||||
@import "./popover.scss";
|
||||
@import "./tooltip.scss";
|
||||
@import "./message-box.scss";
|
||||
@import "./breadcrumb.scss";
|
||||
@import "./breadcrumb-item.scss";
|
||||
@import "./form.scss";
|
||||
@import "./form-item.scss";
|
||||
@import "./tabs.scss";
|
||||
@import "./tab-pane.scss";
|
||||
@import "./tag.scss";
|
||||
@import "./tree.scss";
|
||||
@import "./alert.scss";
|
||||
@import "./notification.scss";
|
||||
@import "./slider.scss";
|
||||
@import "./loading.scss";
|
||||
@import "./row.scss";
|
||||
@import "./col.scss";
|
||||
@import "./upload.scss";
|
||||
@import "./progress.scss";
|
||||
@import "./spinner.scss";
|
||||
@import "./message.scss";
|
||||
@import "./badge.scss";
|
||||
@import "./card.scss";
|
||||
@import "./rate.scss";
|
||||
@import "./steps.scss";
|
||||
@import "./step.scss";
|
||||
@import "./carousel.scss";
|
||||
@import "./scrollbar.scss";
|
||||
@import "./carousel-item.scss";
|
||||
@import "./collapse.scss";
|
||||
@import "./collapse-item.scss";
|
||||
@import "./cascader.scss";
|
||||
@import "./color-picker.scss";
|
||||
@import "./transfer.scss";
|
||||
@import "./container.scss";
|
||||
@import "./header.scss";
|
||||
@import "./aside.scss";
|
||||
@import "./main.scss";
|
||||
@import "./footer.scss";
|
||||
@import "./timeline.scss";
|
||||
@import "./timeline-item.scss";
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
@import "input";
|
||||
|
||||
@include b(input-number) {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 180px;
|
||||
line-height: #{$--input-height - 2};
|
||||
|
||||
.el-input {
|
||||
display: block;
|
||||
|
||||
&__inner {
|
||||
-webkit-appearance: none;
|
||||
padding-left: #{$--input-height + 10};
|
||||
padding-right: #{$--input-height + 10};
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@include e((increase, decrease)) {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 1px;
|
||||
width: $--input-height;
|
||||
height: auto;
|
||||
text-align: center;
|
||||
background: $--background-color-base;
|
||||
color: $--color-text-regular;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
|
||||
&:not(.is-disabled) ~ .el-input .el-input__inner:not(.is-disabled) {
|
||||
border-color: $--input-focus-border;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
color: $--disabled-color-base;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(increase) {
|
||||
right: 1px;
|
||||
border-radius: 0 $--border-radius-base $--border-radius-base 0;
|
||||
border-left: $--border-base;
|
||||
}
|
||||
|
||||
@include e(decrease) {
|
||||
left: 1px;
|
||||
border-radius: $--border-radius-base 0 0 $--border-radius-base;
|
||||
border-right: $--border-base;
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
@include e((increase, decrease)) {
|
||||
border-color: $--disabled-border-base;
|
||||
color: $--disabled-border-base;
|
||||
|
||||
&:hover {
|
||||
color: $--disabled-border-base;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
width: 200px;
|
||||
line-height: #{$--input-medium-height - 2};
|
||||
|
||||
@include e((increase, decrease)) {
|
||||
width: $--input-medium-height;
|
||||
font-size: $--input-medium-font-size;
|
||||
}
|
||||
|
||||
.el-input__inner {
|
||||
padding-left: #{$--input-medium-height + 7};
|
||||
padding-right: #{$--input-medium-height + 7};
|
||||
}
|
||||
}
|
||||
|
||||
@include m(small) {
|
||||
width: 130px;
|
||||
line-height: #{$--input-small-height - 2};
|
||||
|
||||
@include e((increase, decrease)) {
|
||||
width: $--input-small-height;
|
||||
font-size: $--input-small-font-size;
|
||||
|
||||
[class*=el-icon] {
|
||||
transform: scale(.9);
|
||||
}
|
||||
}
|
||||
|
||||
.el-input__inner {
|
||||
padding-left: #{$--input-small-height + 7};
|
||||
padding-right: #{$--input-small-height + 7};
|
||||
}
|
||||
}
|
||||
|
||||
@include m(mini) {
|
||||
width: 130px;
|
||||
line-height: #{$--input-mini-height - 2};
|
||||
|
||||
@include e((increase, decrease)) {
|
||||
width: $--input-mini-height;
|
||||
font-size: $--input-mini-font-size;
|
||||
|
||||
[class*=el-icon] {
|
||||
transform: scale(.8);
|
||||
}
|
||||
}
|
||||
|
||||
.el-input__inner {
|
||||
padding-left: #{$--input-mini-height + 7};
|
||||
padding-right: #{$--input-mini-height + 7};
|
||||
}
|
||||
}
|
||||
|
||||
@include when(without-controls) {
|
||||
.el-input__inner {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(controls-right) {
|
||||
.el-input__inner {
|
||||
padding-left: 15px;
|
||||
padding-right: #{$--input-height + 10};
|
||||
}
|
||||
|
||||
@include e((increase, decrease)) {
|
||||
height: auto;
|
||||
line-height: #{($--input-height - 2) / 2};
|
||||
|
||||
[class*=el-icon] {
|
||||
transform: scale(.8);
|
||||
}
|
||||
}
|
||||
|
||||
@include e(increase) {
|
||||
border-radius: 0 $--border-radius-base 0 0;
|
||||
border-bottom: $--border-base;
|
||||
}
|
||||
|
||||
@include e(decrease) {
|
||||
right: 1px;
|
||||
bottom: 1px;
|
||||
top: auto;
|
||||
left: auto;
|
||||
border-right: none;
|
||||
border-left: $--border-base;
|
||||
border-radius: 0 0 $--border-radius-base 0;
|
||||
}
|
||||
|
||||
&[class*=medium] {
|
||||
[class*=increase], [class*=decrease] {
|
||||
line-height: #{($--input-medium-height - 2) / 2};
|
||||
}
|
||||
}
|
||||
|
||||
&[class*=small] {
|
||||
[class*=increase], [class*=decrease] {
|
||||
line-height: #{($--input-small-height - 2) / 2};
|
||||
}
|
||||
}
|
||||
|
||||
&[class*=mini] {
|
||||
[class*=increase], [class*=decrease] {
|
||||
line-height: #{($--input-mini-height - 2) / 2};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+310
@@ -0,0 +1,310 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(textarea) {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
vertical-align: bottom;
|
||||
font-size: $--font-size-base;
|
||||
|
||||
@include e(inner) {
|
||||
display: block;
|
||||
resize: vertical;
|
||||
padding: 5px 15px;
|
||||
line-height: 1.5;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
font-size: inherit;
|
||||
color: $--input-color;
|
||||
background-color: $--input-fill;
|
||||
background-image: none;
|
||||
border: $--input-border;
|
||||
border-radius: $--input-border-radius;
|
||||
transition: $--border-transition-base;
|
||||
|
||||
&::placeholder {
|
||||
color: $--input-placeholder-color;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: $--input-hover-border;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: $--input-focus-border;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
.el-textarea__inner {
|
||||
background-color: $--input-disabled-fill;
|
||||
border-color: $--input-disabled-border;
|
||||
color: $--input-disabled-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&::placeholder {
|
||||
color: $--input-disabled-placeholder-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(input) {
|
||||
position: relative;
|
||||
font-size: $--font-size-base;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
@include scroll-bar;
|
||||
|
||||
& .el-input__clear {
|
||||
color: $--input-icon-color;
|
||||
font-size: $--input-font-size;
|
||||
line-height: 16px;
|
||||
cursor: pointer;
|
||||
transition: $--color-transition-base;
|
||||
|
||||
&:hover {
|
||||
color: $--input-clear-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(inner) {
|
||||
-webkit-appearance: none;
|
||||
background-color: $--input-fill;
|
||||
background-image: none;
|
||||
border-radius: $--input-border-radius;
|
||||
border: $--input-border;
|
||||
box-sizing: border-box;
|
||||
color: $--input-color;
|
||||
display: inline-block;
|
||||
font-size: inherit;
|
||||
height: $--input-height;
|
||||
line-height: $--input-height;
|
||||
outline: none;
|
||||
padding: 0 15px;
|
||||
transition: $--border-transition-base;
|
||||
width: 100%;
|
||||
|
||||
&::placeholder {
|
||||
color: $--input-placeholder-color;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: $--input-hover-border;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: $--input-focus-border;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(suffix) {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
right: 5px;
|
||||
top: 0;
|
||||
text-align: center;
|
||||
color: $--input-icon-color;
|
||||
transition: all .3s;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@include e(suffix-inner) {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
@include e(prefix) {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
left: 5px;
|
||||
top: 0;
|
||||
text-align: center;
|
||||
color: $--input-icon-color;
|
||||
transition: all .3s;
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
height: 100%;
|
||||
width: 25px;
|
||||
text-align: center;
|
||||
transition: all .3s;
|
||||
line-height: $--input-height;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
height: 100%;
|
||||
width: 0;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(validateIcon) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@include when(active) {
|
||||
.el-input__inner {
|
||||
outline: none;
|
||||
border-color: $--input-focus-border;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
.el-input__inner {
|
||||
background-color: $--input-disabled-fill;
|
||||
border-color: $--input-disabled-border;
|
||||
color: $--input-disabled-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&::placeholder {
|
||||
color: $--input-disabled-placeholder-color;
|
||||
}
|
||||
}
|
||||
|
||||
.el-input__icon {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(suffix) {
|
||||
.el-input__inner {
|
||||
padding-right: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(prefix) {
|
||||
.el-input__inner {
|
||||
padding-left: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
font-size: $--input-medium-font-size;
|
||||
|
||||
@include e(inner) {
|
||||
height: $--input-medium-height;
|
||||
line-height: $--input-medium-height;
|
||||
}
|
||||
|
||||
.el-input__icon {
|
||||
line-height: $--input-medium-height;
|
||||
}
|
||||
}
|
||||
@include m(small) {
|
||||
font-size: $--input-small-font-size;
|
||||
|
||||
@include e(inner) {
|
||||
height: $--input-small-height;
|
||||
line-height: $--input-small-height;
|
||||
}
|
||||
|
||||
.el-input__icon {
|
||||
line-height: $--input-small-height;
|
||||
}
|
||||
}
|
||||
@include m(mini) {
|
||||
font-size: $--input-mini-font-size;
|
||||
|
||||
@include e(inner) {
|
||||
height: $--input-mini-height;
|
||||
line-height: $--input-mini-height;
|
||||
}
|
||||
|
||||
.el-input__icon {
|
||||
line-height: $--input-mini-height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(input-group) {
|
||||
line-height: normal;
|
||||
display: inline-table;
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing:0;
|
||||
|
||||
> .el-input__inner {
|
||||
vertical-align: middle;
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
@include e((append, prepend)) {
|
||||
background-color: $--background-color-base;
|
||||
color: $--color-info;
|
||||
vertical-align: middle;
|
||||
display: table-cell;
|
||||
position: relative;
|
||||
border: $--border-base;
|
||||
border-radius: $--input-border-radius;
|
||||
padding: 0 20px;
|
||||
width: 1px;
|
||||
white-space: nowrap;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.el-select,
|
||||
.el-button {
|
||||
display: inline-block;
|
||||
margin: -10px -20px;
|
||||
}
|
||||
|
||||
button.el-button,
|
||||
div.el-select .el-input__inner,
|
||||
div.el-select:hover .el-input__inner {
|
||||
border-color: transparent;
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
border-top: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.el-button,
|
||||
.el-input {
|
||||
font-size: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(prepend) {
|
||||
border-right: 0;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
@include e(append) {
|
||||
border-left: 0;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
@include m(prepend) {
|
||||
.el-input__inner {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
.el-select .el-input.is-focus .el-input__inner {
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(append) {
|
||||
.el-input__inner {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
.el-select .el-input.is-focus .el-input__inner {
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** disalbe default clear on IE */
|
||||
.el-input__inner::-ms-clear {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(loading-parent) {
|
||||
@include m(relative) {
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
@include m(hidden) {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(loading-mask) {
|
||||
position: absolute;
|
||||
z-index: 2000;
|
||||
background-color: rgba(255, 255, 255, .9);
|
||||
margin: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
transition: opacity 0.3s;
|
||||
|
||||
@include when(fullscreen) {
|
||||
position: fixed;
|
||||
|
||||
.el-loading-spinner {
|
||||
margin-top: #{- $--loading-fullscreen-spinner-size / 2};
|
||||
|
||||
.circular {
|
||||
height: $--loading-fullscreen-spinner-size;
|
||||
width: $--loading-fullscreen-spinner-size;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(loading-spinner) {
|
||||
top: 50%;
|
||||
margin-top: #{- $--loading-spinner-size / 2};
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
|
||||
.el-loading-text {
|
||||
color: $--color-primary;
|
||||
margin: 3px 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.circular {
|
||||
height: $--loading-spinner-size;
|
||||
width: $--loading-spinner-size;
|
||||
animation: loading-rotate 2s linear infinite;
|
||||
}
|
||||
|
||||
.path {
|
||||
animation: loading-dash 1.5s ease-in-out infinite;
|
||||
stroke-dasharray: 90, 150;
|
||||
stroke-dashoffset: 0;
|
||||
stroke-width: 2;
|
||||
stroke: $--color-primary;
|
||||
stroke-linecap: round;
|
||||
}
|
||||
|
||||
i {
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
.el-loading-fade-enter,
|
||||
.el-loading-fade-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@keyframes loading-rotate {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loading-dash {
|
||||
0% {
|
||||
stroke-dasharray: 1, 200;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
50% {
|
||||
stroke-dasharray: 90, 150;
|
||||
stroke-dashoffset: -40px;
|
||||
}
|
||||
100% {
|
||||
stroke-dasharray: 90, 150;
|
||||
stroke-dashoffset: -120px;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(main) {
|
||||
// IE11 supports the <main> element partially https://caniuse.com/#search=main
|
||||
display: block;
|
||||
flex: 1;
|
||||
flex-basis: auto;
|
||||
overflow: auto;
|
||||
box-sizing: border-box;
|
||||
padding: $--main-padding;
|
||||
}
|
||||
+289
@@ -0,0 +1,289 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
@import "common/transition";
|
||||
|
||||
@mixin menu-item {
|
||||
height: 56px;
|
||||
line-height: 56px;
|
||||
font-size: $--menu-item-font-size;
|
||||
color: $--menu-item-color;
|
||||
padding: 0 20px;
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: border-color .3s, background-color .3s, color .3s;
|
||||
box-sizing: border-box;
|
||||
white-space: nowrap;
|
||||
|
||||
* {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
i {
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
outline: none;
|
||||
background-color: $--menu-item-hover-fill;
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
opacity: 0.25;
|
||||
cursor: not-allowed;
|
||||
background: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(menu) {
|
||||
border-right: solid 1px #e6e6e6;
|
||||
list-style: none;
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
background-color: $--menu-item-fill;
|
||||
@include utils-clearfix;
|
||||
&.el-menu--horizontal {
|
||||
border-bottom: solid 1px #e6e6e6;
|
||||
}
|
||||
|
||||
@include m(horizontal) {
|
||||
border-right: none;
|
||||
& > .el-menu-item {
|
||||
float: left;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
margin: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
color: $--color-text-secondary;
|
||||
|
||||
a,
|
||||
a:hover {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&:not(.is-disabled):hover,
|
||||
&:not(.is-disabled):focus{
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
& > .el-submenu {
|
||||
float: left;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
outline: none;
|
||||
.el-submenu__title {
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
.el-submenu__title {
|
||||
border-bottom: 2px solid $--color-primary;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
}
|
||||
|
||||
& .el-submenu__title {
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
border-bottom: 2px solid transparent;
|
||||
color: $--color-text-secondary;
|
||||
|
||||
&:hover {
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
& .el-submenu__icon-arrow {
|
||||
position: static;
|
||||
vertical-align: middle;
|
||||
margin-left: 8px;
|
||||
margin-top: -3px;
|
||||
}
|
||||
}
|
||||
& .el-menu {
|
||||
& .el-menu-item,
|
||||
& .el-submenu__title {
|
||||
background-color: $--color-white;
|
||||
float: none;
|
||||
height: 36px;
|
||||
line-height: 36px;
|
||||
padding: 0 10px;
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
& .el-menu-item.is-active,
|
||||
& .el-submenu.is-active > .el-submenu__title {
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
}
|
||||
& .el-menu-item:not(.is-disabled):hover,
|
||||
& .el-menu-item:not(.is-disabled):focus {
|
||||
outline: none;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
& > .el-menu-item.is-active {
|
||||
border-bottom: 2px solid $--color-primary;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
}
|
||||
@include m(collapse) {
|
||||
width: 64px;
|
||||
|
||||
> .el-menu-item,
|
||||
> .el-submenu > .el-submenu__title {
|
||||
[class^="el-icon-"] {
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
width: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
.el-submenu__icon-arrow {
|
||||
display: none;
|
||||
}
|
||||
span {
|
||||
height: 0;
|
||||
width: 0;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
> .el-menu-item.is-active i {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.el-menu .el-submenu {
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.el-submenu {
|
||||
position: relative;
|
||||
& .el-menu {
|
||||
position: absolute;
|
||||
margin-left: 5px;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
z-index: 10;
|
||||
border: 1px solid $--border-color-light;
|
||||
border-radius: $--border-radius-small;
|
||||
box-shadow: $--box-shadow-light;
|
||||
}
|
||||
|
||||
&.is-opened {
|
||||
> .el-submenu__title .el-submenu__icon-arrow {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@include m(popup) {
|
||||
z-index: 100;
|
||||
min-width: 200px;
|
||||
border: none;
|
||||
padding: 5px 0;
|
||||
border-radius: $--border-radius-small;
|
||||
box-shadow: $--box-shadow-light;
|
||||
|
||||
&-bottom-start {
|
||||
margin-top: 5px;
|
||||
}
|
||||
&-right-start {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include b(menu-item) {
|
||||
@include menu-item;
|
||||
|
||||
& [class^="el-icon-"] {
|
||||
margin-right: 5px;
|
||||
width: 24px;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@include when(active) {
|
||||
color: $--color-primary;
|
||||
i {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(submenu) {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
|
||||
@include e(title) {
|
||||
@include menu-item;
|
||||
|
||||
&:hover {
|
||||
background-color: $--menu-item-hover-fill;
|
||||
}
|
||||
}
|
||||
& .el-menu {
|
||||
border: none;
|
||||
}
|
||||
& .el-menu-item {
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
padding: 0 45px;
|
||||
min-width: 200px;
|
||||
}
|
||||
@include e(icon-arrow) {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 20px;
|
||||
margin-top: -7px;
|
||||
transition: transform .3s;
|
||||
font-size: 12px;
|
||||
}
|
||||
@include when(active) {
|
||||
.el-submenu__title {
|
||||
border-bottom-color: $--color-primary;
|
||||
}
|
||||
}
|
||||
@include when(opened) {
|
||||
> .el-submenu__title .el-submenu__icon-arrow {
|
||||
transform: rotateZ(180deg);
|
||||
}
|
||||
}
|
||||
@include when(disabled) {
|
||||
.el-submenu__title,
|
||||
.el-menu-item {
|
||||
opacity: 0.25;
|
||||
cursor: not-allowed;
|
||||
background: none !important;
|
||||
}
|
||||
}
|
||||
[class^="el-icon-"] {
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
width: 24px;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(menu-item-group) {
|
||||
> ul {
|
||||
padding: 0;
|
||||
}
|
||||
@include e(title) {
|
||||
padding: 7px 0 7px 20px;
|
||||
line-height: normal;
|
||||
font-size: 12px;
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
}
|
||||
|
||||
.horizontal-collapse-transition .el-submenu__title .el-submenu__icon-arrow {
|
||||
transition: .2s;
|
||||
opacity: 0;
|
||||
}
|
||||
+223
@@ -0,0 +1,223 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
@import "common/popup";
|
||||
@import "button";
|
||||
@import "input";
|
||||
|
||||
@include b(message-box) {
|
||||
display: inline-block;
|
||||
width: $--msgbox-width;
|
||||
padding-bottom: 10px;
|
||||
vertical-align: middle;
|
||||
background-color: $--color-white;
|
||||
border-radius: $--msgbox-border-radius;
|
||||
border: 1px solid $--border-color-lighter;
|
||||
font-size: $--msgbox-font-size;
|
||||
box-shadow: $--box-shadow-light;
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
backface-visibility: hidden;
|
||||
|
||||
@include e(wrapper) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
width: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(header) {
|
||||
position: relative;
|
||||
padding: $--msgbox-padding-primary;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
padding-left: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: $--msgbox-font-size;
|
||||
line-height: 1;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
|
||||
@include e(headerbtn) {
|
||||
position: absolute;
|
||||
top: $--msgbox-padding-primary;
|
||||
right: $--msgbox-padding-primary;
|
||||
padding: 0;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
font-size: $--message-close-size;
|
||||
cursor: pointer;
|
||||
|
||||
.el-message-box__close {
|
||||
color: $--color-info;
|
||||
}
|
||||
|
||||
&:focus, &:hover {
|
||||
.el-message-box__close {
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
position: relative;
|
||||
padding: 10px $--msgbox-padding-primary;
|
||||
color: $--msgbox-content-color;
|
||||
font-size: $--msgbox-content-font-size;
|
||||
}
|
||||
|
||||
@include e(input) {
|
||||
padding-top: 15px;
|
||||
|
||||
& input.invalid {
|
||||
border-color: $--color-danger;
|
||||
&:focus {
|
||||
border-color: $--color-danger;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(status) {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 24px !important;
|
||||
|
||||
&::before {
|
||||
// 防止图标切割
|
||||
padding-left: 1px;
|
||||
}
|
||||
|
||||
+ .el-message-box__message {
|
||||
padding-left: 36px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
&.el-icon-success {
|
||||
color: $--msgbox-success-color;
|
||||
}
|
||||
|
||||
&.el-icon-info {
|
||||
color: $--msgbox-info-color;
|
||||
}
|
||||
|
||||
&.el-icon-warning {
|
||||
color: $--msgbox-warning-color;
|
||||
}
|
||||
|
||||
&.el-icon-error {
|
||||
color: $--msgbox-danger-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(message) {
|
||||
margin: 0;
|
||||
|
||||
& p {
|
||||
margin: 0;
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(errormsg) {
|
||||
color: $--color-danger;
|
||||
font-size: $--msgbox-error-font-size;
|
||||
min-height: 18px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
@include e(btns) {
|
||||
padding: 5px 15px 0;
|
||||
text-align: right;
|
||||
|
||||
& button:nth-child(2) {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(btns-reverse) {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
// centerAlign 布局
|
||||
@include m(center) {
|
||||
padding-bottom: 30px;
|
||||
|
||||
@include e(header) {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@include e(status) {
|
||||
position: relative;
|
||||
top: auto;
|
||||
padding-right: 5px;
|
||||
text-align: center;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@include e(message) {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
@include e((btns, content)) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
$padding-horizontal: $--msgbox-padding-primary + 12px;
|
||||
|
||||
padding-left: $padding-horizontal;
|
||||
padding-right: $padding-horizontal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.msgbox-fade-enter-active {
|
||||
animation: msgbox-fade-in .3s;
|
||||
}
|
||||
|
||||
.msgbox-fade-leave-active {
|
||||
animation: msgbox-fade-out .3s;
|
||||
}
|
||||
|
||||
@keyframes msgbox-fade-in {
|
||||
0% {
|
||||
transform: translate3d(0, -20px, 0);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(0, 0, 0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes msgbox-fade-out {
|
||||
0% {
|
||||
transform: translate3d(0, 0, 0);
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(0, -20px, 0);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(message) {
|
||||
min-width: $--message-min-width;
|
||||
box-sizing: border-box;
|
||||
border-radius: $--border-radius-base;
|
||||
border-width: $--border-width-base;
|
||||
border-style: $--border-style-base;
|
||||
border-color: $--border-color-lighter;
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 20px;
|
||||
transform: translateX(-50%);
|
||||
background-color: $--message-background-color;
|
||||
transition: opacity 0.3s, transform .4s;
|
||||
overflow: hidden;
|
||||
padding: $--message-padding;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@include when(center) {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@include when(closable) {
|
||||
.el-message__content {
|
||||
padding-right: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@include m(info) {
|
||||
.el-message__content {
|
||||
color: $--message-info-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(success) {
|
||||
background-color: $--color-success-lighter;
|
||||
border-color: $--color-success-light;
|
||||
|
||||
.el-message__content {
|
||||
color: $--message-success-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(warning) {
|
||||
background-color: $--color-warning-lighter;
|
||||
border-color: $--color-warning-light;
|
||||
|
||||
.el-message__content {
|
||||
color: $--message-warning-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(error) {
|
||||
background-color: $--color-danger-lighter;
|
||||
border-color: $--color-danger-light;
|
||||
|
||||
.el-message__content {
|
||||
color: $--message-danger-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
&:focus {
|
||||
outline-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(closeBtn) {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 15px;
|
||||
transform: translateY(-50%);
|
||||
cursor: pointer;
|
||||
color: $--message-close-color;
|
||||
font-size: $--message-close-size;
|
||||
|
||||
&:focus {
|
||||
outline-width: 0;
|
||||
}
|
||||
&:hover {
|
||||
color: $--message-close-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
& .el-icon-success {
|
||||
color: $--message-success-color;
|
||||
}
|
||||
|
||||
& .el-icon-error {
|
||||
color: $--message-danger-color;
|
||||
}
|
||||
|
||||
& .el-icon-info {
|
||||
color: $--message-info-color;
|
||||
}
|
||||
|
||||
& .el-icon-warning {
|
||||
color: $--message-warning-color;
|
||||
}
|
||||
}
|
||||
|
||||
.el-message-fade-enter,
|
||||
.el-message-fade-leave-active {
|
||||
opacity: 0;
|
||||
transform: translate(-50%, -100%);
|
||||
}
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
@import "../common/var";
|
||||
@mixin button-plain($color) {
|
||||
color: $color;
|
||||
background: mix($--color-white, $color, 90%);
|
||||
border-color: mix($--color-white, $color, 60%);
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: $color;
|
||||
border-color: $color;
|
||||
color: $--color-white;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: mix($--color-black, $color, $--button-active-shade-percent);
|
||||
border-color: mix($--color-black, $color, $--button-active-shade-percent);
|
||||
color: $--color-white;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
color: mix($--color-white, $color, 40%);
|
||||
background-color: mix($--color-white, $color, 90%);
|
||||
border-color: mix($--color-white, $color, 80%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin button-variant($color, $background-color, $border-color) {
|
||||
color: $color;
|
||||
background-color: $background-color;
|
||||
border-color: $border-color;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: mix($--color-white, $background-color, $--button-hover-tint-percent);
|
||||
border-color: mix($--color-white, $border-color, $--button-hover-tint-percent);
|
||||
color: $color;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: mix($--color-black, $background-color, $--button-active-shade-percent);
|
||||
border-color: mix($--color-black, $border-color, $--button-active-shade-percent);
|
||||
color: $color;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
background: mix($--color-black, $background-color, $--button-active-shade-percent);
|
||||
border-color: mix($--color-black, $border-color, $--button-active-shade-percent);
|
||||
color: $color;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
color: $--color-white;
|
||||
background-color: mix($background-color, $--color-white);
|
||||
border-color: mix($border-color, $--color-white);
|
||||
}
|
||||
}
|
||||
|
||||
&.is-plain {
|
||||
@include button-plain($background-color);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
|
||||
padding: $padding-vertical $padding-horizontal;
|
||||
font-size: $font-size;
|
||||
border-radius: $border-radius;
|
||||
&.is-round {
|
||||
padding: $padding-vertical $padding-horizontal;
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
$namespace: 'el';
|
||||
$element-separator: '__';
|
||||
$modifier-separator: '--';
|
||||
$state-prefix: 'is-';
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
@import "config";
|
||||
|
||||
/* BEM support Func
|
||||
-------------------------- */
|
||||
@function selectorToString($selector) {
|
||||
$selector: inspect($selector);
|
||||
$selector: str-slice($selector, 2, -2);
|
||||
@return $selector;
|
||||
}
|
||||
|
||||
@function containsModifier($selector) {
|
||||
$selector: selectorToString($selector);
|
||||
|
||||
@if str-index($selector, $modifier-separator) {
|
||||
@return true;
|
||||
} @else {
|
||||
@return false;
|
||||
}
|
||||
}
|
||||
|
||||
@function containWhenFlag($selector) {
|
||||
$selector: selectorToString($selector);
|
||||
|
||||
@if str-index($selector, '.' + $state-prefix) {
|
||||
@return true
|
||||
} @else {
|
||||
@return false
|
||||
}
|
||||
}
|
||||
|
||||
@function containPseudoClass($selector) {
|
||||
$selector: selectorToString($selector);
|
||||
|
||||
@if str-index($selector, ':') {
|
||||
@return true
|
||||
} @else {
|
||||
@return false
|
||||
}
|
||||
}
|
||||
|
||||
@function hitAllSpecialNestRule($selector) {
|
||||
|
||||
@return containsModifier($selector) or containWhenFlag($selector) or containPseudoClass($selector);
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
@import "function";
|
||||
@import "../common/var";
|
||||
|
||||
/* Break-points
|
||||
-------------------------- */
|
||||
@mixin res($key, $map: $--breakpoints) {
|
||||
// 循环断点Map,如果存在则返回
|
||||
@if map-has-key($map, $key) {
|
||||
@media only screen and #{inspect(map-get($map, $key))} {
|
||||
@content;
|
||||
}
|
||||
} @else {
|
||||
@warn "Undefeined points: `#{$map}`";
|
||||
}
|
||||
}
|
||||
|
||||
/* Scrollbar
|
||||
-------------------------- */
|
||||
@mixin scroll-bar {
|
||||
$--scrollbar-thumb-background: #b4bccc;
|
||||
$--scrollbar-track-background: #fff;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
z-index: 11;
|
||||
width: 6px;
|
||||
|
||||
&:horizontal {
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
&-thumb {
|
||||
border-radius: 5px;
|
||||
width: 6px;
|
||||
background: $--scrollbar-thumb-background;
|
||||
}
|
||||
|
||||
&-corner {
|
||||
background: $--scrollbar-track-background;
|
||||
}
|
||||
|
||||
&-track {
|
||||
background: $--scrollbar-track-background;
|
||||
|
||||
&-piece {
|
||||
background: $--scrollbar-track-background;
|
||||
width: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Placeholder
|
||||
-------------------------- */
|
||||
@mixin placeholder {
|
||||
&::-webkit-input-placeholder {
|
||||
@content
|
||||
}
|
||||
|
||||
&::-moz-placeholder {
|
||||
@content
|
||||
}
|
||||
|
||||
&:-ms-input-placeholder {
|
||||
@content
|
||||
}
|
||||
}
|
||||
|
||||
/* BEM
|
||||
-------------------------- */
|
||||
@mixin b($block) {
|
||||
$B: $namespace+'-'+$block !global;
|
||||
|
||||
.#{$B} {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin e($element) {
|
||||
$E: $element !global;
|
||||
$selector: &;
|
||||
$currentSelector: "";
|
||||
@each $unit in $element {
|
||||
$currentSelector: #{$currentSelector + "." + $B + $element-separator + $unit + ","};
|
||||
}
|
||||
|
||||
@if hitAllSpecialNestRule($selector) {
|
||||
@at-root {
|
||||
#{$selector} {
|
||||
#{$currentSelector} {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
} @else {
|
||||
@at-root {
|
||||
#{$currentSelector} {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin m($modifier) {
|
||||
$selector: &;
|
||||
$currentSelector: "";
|
||||
@each $unit in $modifier {
|
||||
$currentSelector: #{$currentSelector + & + $modifier-separator + $unit + ","};
|
||||
}
|
||||
|
||||
@at-root {
|
||||
#{$currentSelector} {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin configurable-m($modifier, $E-flag: false) {
|
||||
$selector: &;
|
||||
$interpolation: '';
|
||||
|
||||
@if $E-flag {
|
||||
$interpolation: $element-separator + $E-flag;
|
||||
}
|
||||
|
||||
@at-root {
|
||||
#{$selector} {
|
||||
.#{$B+$interpolation+$modifier-separator+$modifier} {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin spec-selector($specSelector: '', $element: $E, $modifier: false, $block: $B) {
|
||||
$modifierCombo: '';
|
||||
|
||||
@if $modifier {
|
||||
$modifierCombo: $modifier-separator + $modifier;
|
||||
}
|
||||
|
||||
@at-root {
|
||||
#{&}#{$specSelector}.#{$block+$element-separator+$element+$modifierCombo} {
|
||||
@content
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin meb($modifier: false, $element: $E, $block: $B) {
|
||||
$selector: &;
|
||||
$modifierCombo: '';
|
||||
|
||||
@if $modifier {
|
||||
$modifierCombo: $modifier-separator + $modifier;
|
||||
}
|
||||
|
||||
@at-root {
|
||||
#{$selector} {
|
||||
.#{$block+$element-separator+$element+$modifierCombo} {
|
||||
@content
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin when($state) {
|
||||
@at-root {
|
||||
&.#{$state-prefix + $state} {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin extend-rule($name) {
|
||||
@extend #{'%shared-'+$name};
|
||||
}
|
||||
|
||||
@mixin share-rule($name) {
|
||||
$rule-name: '%shared-'+$name;
|
||||
|
||||
@at-root #{$rule-name} {
|
||||
@content
|
||||
}
|
||||
}
|
||||
|
||||
@mixin pseudo($pseudo) {
|
||||
@at-root #{&}#{':#{$pseudo}'} {
|
||||
@content
|
||||
}
|
||||
}
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
@mixin utils-user-select($value) {
|
||||
-moz-user-select: $value;
|
||||
-webkit-user-select: $value;
|
||||
-ms-user-select: $value;
|
||||
}
|
||||
|
||||
@mixin utils-clearfix {
|
||||
$selector: &;
|
||||
|
||||
@at-root {
|
||||
#{$selector}::before,
|
||||
#{$selector}::after {
|
||||
display: table;
|
||||
content: "";
|
||||
}
|
||||
#{$selector}::after {
|
||||
clear: both
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin utils-vertical-center {
|
||||
$selector: &;
|
||||
|
||||
@at-root {
|
||||
#{$selector}::after {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
height: 100%;
|
||||
vertical-align: middle
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin utils-ellipsis {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(notification) {
|
||||
display: flex;
|
||||
width: $--notification-width;
|
||||
padding: $--notification-padding;
|
||||
border-radius: $--notification-radius;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid $--notification-border-color;
|
||||
position: fixed;
|
||||
background-color: $--color-white;
|
||||
box-shadow: $--notification-shadow;
|
||||
transition: opacity .3s, transform .3s, left .3s, right .3s, top 0.4s, bottom .3s;
|
||||
overflow: hidden;
|
||||
|
||||
&.right {
|
||||
right: 16px;
|
||||
}
|
||||
|
||||
&.left {
|
||||
left: 16px;
|
||||
}
|
||||
|
||||
@include e(group) {
|
||||
margin-left: $--notification-group-margin;
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
font-weight: bold;
|
||||
font-size: $--notification-title-font-size;
|
||||
color: $--notification-title-color;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
font-size: $--notification-font-size;
|
||||
line-height: 21px;
|
||||
margin: 6px 0 0 0;
|
||||
color: $--notification-color;
|
||||
text-align: justify;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
height: $--notification-icon-size;
|
||||
width: $--notification-icon-size;
|
||||
font-size: $--notification-icon-size;
|
||||
}
|
||||
|
||||
@include e(closeBtn) {
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
right: 15px;
|
||||
cursor: pointer;
|
||||
color: $--notification-close-color;
|
||||
font-size: $--notification-close-font-size;
|
||||
|
||||
&:hover {
|
||||
color: $--notification-close-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
.el-icon-success {
|
||||
color: $--notification-success-color;
|
||||
}
|
||||
|
||||
.el-icon-error {
|
||||
color: $--notification-danger-color;
|
||||
}
|
||||
|
||||
.el-icon-info {
|
||||
color: $--notification-info-color;
|
||||
}
|
||||
|
||||
.el-icon-warning {
|
||||
color: $--notification-warning-color;
|
||||
}
|
||||
}
|
||||
|
||||
.el-notification-fade-enter {
|
||||
&.right {
|
||||
right: 0;
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
&.left {
|
||||
left: 0;
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
}
|
||||
|
||||
.el-notification-fade-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(select-group) {
|
||||
$gap: 20px;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
@include e(wrap) {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
&:not(:last-of-type) {
|
||||
padding-bottom: 24px;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
display: block;
|
||||
left: $gap;
|
||||
right: $gap;
|
||||
bottom: 12px;
|
||||
height: 1px;
|
||||
background: $--border-color-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
padding-left: $gap;
|
||||
font-size: $--select-group-font-size;
|
||||
color: $--select-group-color;
|
||||
line-height: $--select-group-height;
|
||||
}
|
||||
|
||||
& .el-select-dropdown__item {
|
||||
padding-left: $gap;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(select-dropdown) {
|
||||
@include e(item) {
|
||||
font-size: $--select-font-size;
|
||||
padding: 0 20px;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: $--select-option-color;
|
||||
height: $--select-option-height;
|
||||
line-height: $--select-option-height;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
|
||||
@include when(disabled) {
|
||||
color: $--select-option-disabled-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&:hover {
|
||||
background-color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
&.hover, &:hover {
|
||||
background-color: $--select-option-hover-background;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
color: $--select-option-selected;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
+295
@@ -0,0 +1,295 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
@import "select";
|
||||
|
||||
@include b(pagination) {
|
||||
white-space: nowrap;
|
||||
padding: 2px 5px;
|
||||
color: $--pagination-color;
|
||||
font-weight: bold;
|
||||
@include utils-clearfix;
|
||||
|
||||
span:not([class*=suffix]),
|
||||
button {
|
||||
display: inline-block;
|
||||
font-size: $--pagination-font-size;
|
||||
min-width: $--pagination-button-width;
|
||||
height: $--pagination-button-height;
|
||||
line-height: $--pagination-button-height;
|
||||
vertical-align: top;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.el-input__inner {
|
||||
text-align: center;
|
||||
-moz-appearance: textfield;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
// pagesize 的下拉 icon
|
||||
.el-input__suffix {
|
||||
right: 0;
|
||||
transform: scale(.8);
|
||||
}
|
||||
|
||||
.el-select .el-input {
|
||||
width: 100px;
|
||||
margin: 0 5px;
|
||||
|
||||
.el-input__inner {
|
||||
padding-right: 25px;
|
||||
border-radius: $--pagination-border-radius;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
border: none;
|
||||
padding: 0 6px;
|
||||
background: transparent;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $--pagination-hover-fill;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: $--pagination-button-disabled-color;
|
||||
background-color: $--pagination-button-disabled-fill;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-prev,
|
||||
.btn-next {
|
||||
background: center center no-repeat;
|
||||
background-size: 16px;
|
||||
background-color: $--pagination-fill;
|
||||
cursor: pointer;
|
||||
margin: 0;
|
||||
color: $--pagination-button-color;
|
||||
|
||||
.el-icon {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-prev {
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.btn-next {
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
.el-pager li.disabled {
|
||||
color: $--color-text-placeholder;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
@include m(small) {
|
||||
.btn-prev,
|
||||
.btn-next,
|
||||
.el-pager li,
|
||||
.el-pager li.btn-quicknext,
|
||||
.el-pager li.btn-quickprev,
|
||||
.el-pager li:last-child {
|
||||
border-color: transparent;
|
||||
font-size: 12px;
|
||||
line-height: 22px;
|
||||
height: 22px;
|
||||
min-width: 22px;
|
||||
}
|
||||
|
||||
.arrow.disabled {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.more::before,
|
||||
li.more::before {
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
span:not([class*=suffix]),
|
||||
button {
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
@include e(editor) {
|
||||
height: 22px;
|
||||
&.el-input .el-input__inner {
|
||||
height: 22px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(sizes) {
|
||||
margin: 0 10px 0 0;
|
||||
font-weight: normal;
|
||||
color: $--color-text-regular;
|
||||
|
||||
.el-input .el-input__inner {
|
||||
font-size: $--pagination-font-size;
|
||||
padding-left: 8px;
|
||||
|
||||
&:hover {
|
||||
border-color: $--pagination-hover-fill;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(total) {
|
||||
margin-right: 10px;
|
||||
font-weight: normal;
|
||||
color: $--color-text-regular;
|
||||
}
|
||||
|
||||
@include e(jump) {
|
||||
margin-left: 24px;
|
||||
font-weight: normal;
|
||||
color: $--color-text-regular;
|
||||
|
||||
.el-input__inner {
|
||||
padding: 0 3px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(rightwrapper) {
|
||||
float: right;
|
||||
}
|
||||
|
||||
@include e(editor) {
|
||||
line-height: 18px;
|
||||
padding: 0 2px;
|
||||
height: $--pagination-button-height;
|
||||
|
||||
text-align: center;
|
||||
margin: 0 2px;
|
||||
box-sizing: border-box;
|
||||
border-radius: $--pagination-border-radius;
|
||||
|
||||
&.el-input {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
&.el-input .el-input__inner {
|
||||
height: $--pagination-button-height;
|
||||
}
|
||||
|
||||
.el-input__inner::-webkit-inner-spin-button,
|
||||
.el-input__inner::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(background) {
|
||||
.btn-prev,
|
||||
.btn-next,
|
||||
.el-pager li {
|
||||
margin: 0 5px;
|
||||
background-color: $--color-info-lighter;
|
||||
color: $--color-text-regular;
|
||||
min-width: 30px;
|
||||
border-radius: 2px;
|
||||
|
||||
&.disabled {
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-prev, .btn-next {
|
||||
padding: 0;
|
||||
|
||||
&:disabled {
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
.el-pager li:not(.disabled) {
|
||||
&:hover {
|
||||
color: $--pagination-hover-fill;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: $--color-primary;
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
&.el-pagination--small {
|
||||
.btn-prev,
|
||||
.btn-next,
|
||||
.el-pager li {
|
||||
margin: 0 3px;
|
||||
min-width: 22px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(pager) {
|
||||
user-select: none;
|
||||
list-style: none;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
font-size: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
.more::before {
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 0 4px;
|
||||
background: $--pagination-fill;
|
||||
vertical-align: top;
|
||||
display: inline-block;
|
||||
font-size: $--pagination-font-size;
|
||||
min-width: $--pagination-button-width;
|
||||
height: $--pagination-button-height;
|
||||
line-height: $--pagination-button-height;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
|
||||
&.btn-quicknext,
|
||||
&.btn-quickprev {
|
||||
line-height: 28px;
|
||||
color: $--pagination-button-color;
|
||||
|
||||
&.disabled {
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-quickprev:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.btn-quicknext:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.active + li {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $--pagination-hover-fill;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $--pagination-hover-fill;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
@import "./popper";
|
||||
|
||||
@include b(popover) {
|
||||
position: absolute;
|
||||
background: $--popover-fill;
|
||||
min-width: 150px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid $--popover-border-color;
|
||||
padding: $--popover-padding;
|
||||
z-index: $--index-popper;
|
||||
color: $--color-text-regular;
|
||||
line-height: 1.4;
|
||||
text-align: justify;
|
||||
font-size: $--popover-font-size;
|
||||
box-shadow: $--box-shadow-light;
|
||||
word-break: break-all;
|
||||
|
||||
@include m(plain) {
|
||||
padding: $--popover-padding-large;
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
color: $--popover-title-color;
|
||||
font-size: $--popover-title-font-size;
|
||||
line-height: 1;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
@include e(reference) {
|
||||
&:focus:not(.focusing), &:focus:hover {
|
||||
outline-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:focus:active, &:focus {
|
||||
outline-width: 0;
|
||||
}
|
||||
}
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(popper) {
|
||||
.popper__arrow,
|
||||
.popper__arrow::after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.popper__arrow {
|
||||
border-width: $--popover-arrow-size;
|
||||
filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03))
|
||||
}
|
||||
|
||||
.popper__arrow::after {
|
||||
content: " ";
|
||||
border-width: $--popover-arrow-size;
|
||||
}
|
||||
|
||||
&[x-placement^="top"] {
|
||||
margin-bottom: #{$--popover-arrow-size + 6};
|
||||
}
|
||||
|
||||
&[x-placement^="top"] .popper__arrow {
|
||||
bottom: -$--popover-arrow-size;
|
||||
left: 50%;
|
||||
margin-right: #{$--tooltip-arrow-size / 2};
|
||||
border-top-color: $--popover-border-color;
|
||||
border-bottom-width: 0;
|
||||
|
||||
&::after {
|
||||
bottom: 1px;
|
||||
margin-left: -$--popover-arrow-size;
|
||||
border-top-color: $--popover-fill;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[x-placement^="bottom"] {
|
||||
margin-top: #{$--popover-arrow-size + 6};
|
||||
}
|
||||
|
||||
&[x-placement^="bottom"] .popper__arrow {
|
||||
top: -$--popover-arrow-size;
|
||||
left: 50%;
|
||||
margin-right: #{$--tooltip-arrow-size / 2};
|
||||
border-top-width: 0;
|
||||
border-bottom-color: $--popover-border-color;
|
||||
|
||||
&::after {
|
||||
top: 1px;
|
||||
margin-left: -$--popover-arrow-size;
|
||||
border-top-width: 0;
|
||||
border-bottom-color: $--popover-fill;
|
||||
}
|
||||
}
|
||||
|
||||
&[x-placement^="right"] {
|
||||
margin-left: #{$--popover-arrow-size + 6};
|
||||
}
|
||||
|
||||
&[x-placement^="right"] .popper__arrow {
|
||||
top: 50%;
|
||||
left: -$--popover-arrow-size;
|
||||
margin-bottom: #{$--tooltip-arrow-size / 2};
|
||||
border-right-color: $--popover-border-color;
|
||||
border-left-width: 0;
|
||||
|
||||
&::after {
|
||||
bottom: -$--popover-arrow-size;
|
||||
left: 1px;
|
||||
border-right-color: $--popover-fill;
|
||||
border-left-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[x-placement^="left"] {
|
||||
margin-right: #{$--popover-arrow-size + 6};
|
||||
}
|
||||
|
||||
&[x-placement^="left"] .popper__arrow {
|
||||
top: 50%;
|
||||
right: -$--popover-arrow-size;
|
||||
margin-bottom: #{$--tooltip-arrow-size / 2};
|
||||
border-right-width: 0;
|
||||
border-left-color: $--popover-border-color;
|
||||
|
||||
&::after {
|
||||
right: 1px;
|
||||
bottom: -$--popover-arrow-size;
|
||||
margin-left: -$--popover-arrow-size;
|
||||
border-right-width: 0;
|
||||
border-left-color: $--popover-fill;
|
||||
}
|
||||
}
|
||||
}
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
|
||||
@include b(progress) {
|
||||
position: relative;
|
||||
line-height: 1;
|
||||
|
||||
@include e(text) {
|
||||
font-size:14px;
|
||||
color: $--color-text-regular;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-left: 10px;
|
||||
line-height: 1;
|
||||
|
||||
i {
|
||||
vertical-align: middle;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(circle) {
|
||||
display: inline-block;
|
||||
|
||||
.el-progress__text {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
transform: translate(0, -50%);
|
||||
|
||||
i {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include m(without-text) {
|
||||
.el-progress__text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.el-progress-bar {
|
||||
padding-right: 0;
|
||||
margin-right: 0;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(text-inside) {
|
||||
.el-progress-bar {
|
||||
padding-right: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(success) {
|
||||
.el-progress-bar__inner {
|
||||
background-color: $--color-success;
|
||||
}
|
||||
|
||||
.el-progress__text {
|
||||
color: $--color-success;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(exception) {
|
||||
.el-progress-bar__inner {
|
||||
background-color: $--color-danger;
|
||||
}
|
||||
|
||||
.el-progress__text {
|
||||
color: $--color-danger;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(progress-bar) {
|
||||
padding-right: 50px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 100%;
|
||||
margin-right: -55px;
|
||||
box-sizing: border-box;
|
||||
|
||||
@include e(outer) {
|
||||
height: 6px;
|
||||
border-radius: 100px;
|
||||
background-color: $--border-color-lighter;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@include e(inner) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
background-color: $--color-primary;
|
||||
text-align: right;
|
||||
border-radius: 100px;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
transition: width 0.6s ease;
|
||||
|
||||
@include utils-vertical-center;
|
||||
}
|
||||
|
||||
@include e(innerText) {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
color: $--color-white;
|
||||
font-size: 12px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes progress {
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 32px 0;
|
||||
}
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/_button";
|
||||
@import "common/var";
|
||||
|
||||
@include b(radio-button) {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
outline: none;
|
||||
|
||||
@include e(inner) {
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
background: $--button-default-background-color;
|
||||
border: $--border-base;
|
||||
font-weight: $--button-font-weight;
|
||||
border-left: 0;
|
||||
color: $--button-default-font-color;
|
||||
-webkit-appearance: none;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
transition: $--all-transition;
|
||||
|
||||
@include button-size($--button-padding-vertical, $--button-padding-horizontal, $--button-font-size, 0);
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
& [class*="el-icon-"] {
|
||||
line-height: 0.9;
|
||||
|
||||
& + span {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
.el-radio-button__inner {
|
||||
border-left: $--border-base;
|
||||
border-radius: $--border-radius-base 0 0 $--border-radius-base;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(orig-radio) {
|
||||
opacity: 0;
|
||||
outline: none;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
|
||||
&:checked {
|
||||
& + .el-radio-button__inner {
|
||||
color: $--radio-button-checked-font-color;
|
||||
background-color: $--radio-button-checked-background-color;
|
||||
border-color: $--radio-button-checked-border-color;
|
||||
box-shadow: -1px 0 0 0 $--radio-button-checked-border-color;
|
||||
}
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
& + .el-radio-button__inner {
|
||||
color: $--button-disabled-font-color;
|
||||
cursor: not-allowed;
|
||||
background-image: none;
|
||||
background-color: $--button-disabled-background-color;
|
||||
border-color: $--button-disabled-border-color;
|
||||
box-shadow: none;
|
||||
}
|
||||
&:checked + .el-radio-button__inner {
|
||||
background-color: $--radio-button-disabled-checked-fill;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
.el-radio-button__inner {
|
||||
border-radius: 0 $--border-radius-base $--border-radius-base 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child:last-child {
|
||||
.el-radio-button__inner {
|
||||
border-radius: $--border-radius-base;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
& .el-radio-button__inner {
|
||||
@include button-size($--button-medium-padding-vertical, $--button-medium-padding-horizontal, $--button-medium-font-size, 0);
|
||||
}
|
||||
}
|
||||
@include m(small) {
|
||||
& .el-radio-button__inner {
|
||||
@include button-size($--button-small-padding-vertical, $--button-small-padding-horizontal, $--button-small-font-size, 0);
|
||||
}
|
||||
}
|
||||
@include m(mini) {
|
||||
& .el-radio-button__inner {
|
||||
@include button-size($--button-mini-padding-vertical, $--button-mini-padding-horizontal, $--button-mini-font-size, 0);
|
||||
}
|
||||
}
|
||||
|
||||
&:focus:not(.is-focus):not(:active):not(.is-disabled){ /*获得焦点时 样式提醒*/
|
||||
box-shadow: 0 0 2px 2px $--radio-button-checked-border-color;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(radio-group) {
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
vertical-align: middle;
|
||||
font-size: 0;
|
||||
}
|
||||
+199
@@ -0,0 +1,199 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import 'mixins/button';
|
||||
@import "common/var";
|
||||
|
||||
@include b(radio) {
|
||||
color: $--radio-font-color;
|
||||
font-weight: $--radio-font-weight;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
outline: none;
|
||||
font-size: $--font-size-base;
|
||||
margin-right: 30px;
|
||||
@include utils-user-select(none);
|
||||
|
||||
@include when(bordered) {
|
||||
padding: $--radio-bordered-padding;
|
||||
border-radius: $--border-radius-base;
|
||||
border: $--border-base;
|
||||
box-sizing: border-box;
|
||||
height: $--radio-bordered-height;
|
||||
|
||||
&.is-checked {
|
||||
border-color: $--color-primary;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
cursor: not-allowed;
|
||||
border-color: $--border-color-lighter;
|
||||
}
|
||||
|
||||
& + .el-radio.is-bordered {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
&.is-bordered {
|
||||
padding: $--radio-bordered-medium-padding;
|
||||
border-radius: $--button-medium-border-radius;
|
||||
height: $--radio-bordered-medium-height;
|
||||
.el-radio__label {
|
||||
font-size: $--button-medium-font-size;
|
||||
}
|
||||
.el-radio__inner {
|
||||
height: $--radio-bordered-medium-input-height;
|
||||
width: $--radio-bordered-medium-input-width;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include m(small) {
|
||||
&.is-bordered {
|
||||
padding: $--radio-bordered-small-padding;
|
||||
border-radius: $--button-small-border-radius;
|
||||
height: $--radio-bordered-small-height;
|
||||
.el-radio__label {
|
||||
font-size: $--button-small-font-size;
|
||||
}
|
||||
.el-radio__inner {
|
||||
height: $--radio-bordered-small-input-height;
|
||||
width: $--radio-bordered-small-input-width;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include m(mini) {
|
||||
&.is-bordered {
|
||||
padding: $--radio-bordered-mini-padding;
|
||||
border-radius: $--button-mini-border-radius;
|
||||
height: $--radio-bordered-mini-height;
|
||||
.el-radio__label {
|
||||
font-size: $--button-mini-font-size;
|
||||
}
|
||||
.el-radio__inner {
|
||||
height: $--radio-bordered-mini-input-height;
|
||||
width: $--radio-bordered-mini-input-width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
@include e(input) {
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
|
||||
@include when(disabled) {
|
||||
.el-radio__inner {
|
||||
background-color: $--radio-disabled-input-fill;
|
||||
border-color: $--radio-disabled-input-border-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&::after {
|
||||
cursor: not-allowed;
|
||||
background-color: $--radio-disabled-icon-color;
|
||||
}
|
||||
|
||||
& + .el-radio__label {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
&.is-checked {
|
||||
.el-radio__inner {
|
||||
background-color: $--radio-disabled-checked-input-fill;
|
||||
border-color: $--radio-disabled-checked-input-border-color;
|
||||
|
||||
&::after {
|
||||
background-color: $--radio-disabled-checked-icon-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
& + span.el-radio__label {
|
||||
color: $--color-text-placeholder;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(checked) {
|
||||
.el-radio__inner {
|
||||
border-color: $--radio-checked-input-border-color;
|
||||
background: $--radio-checked-icon-color;
|
||||
|
||||
&::after {
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
& + .el-radio__label {
|
||||
color: $--radio-checked-font-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(focus) {
|
||||
.el-radio__inner {
|
||||
border-color: $--radio-input-border-color-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include e(inner) {
|
||||
border: $--radio-input-border;
|
||||
border-radius: $--radio-input-border-radius;
|
||||
width: $--radio-input-width;
|
||||
height: $--radio-input-height;
|
||||
background-color: $--radio-input-background-color;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:hover {
|
||||
border-color: $--radio-input-border-color-hover;
|
||||
}
|
||||
|
||||
&::after {
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: $--radio-input-border-radius;
|
||||
background-color: $--color-white;
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%) scale(0);
|
||||
transition: transform .15s ease-in;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(original) {
|
||||
opacity: 0;
|
||||
outline: none;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&:focus:not(.is-focus):not(:active):not(.is-disabled) { /*获得焦点时 样式提醒*/
|
||||
.el-radio__inner {
|
||||
box-shadow: 0 0 2px 2px $--radio-input-border-color-hover;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
font-size: $--radio-font-size;
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(rate) {
|
||||
height: $--rate-height;
|
||||
line-height: 1;
|
||||
|
||||
&:focus, &:active {
|
||||
outline-width: 0;
|
||||
}
|
||||
|
||||
@include e(item) {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
font-size: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
font-size: $--rate-icon-size;
|
||||
margin-right: $--rate-icon-margin;
|
||||
color: $--rate-icon-color;
|
||||
transition: .3s;
|
||||
&.hover {
|
||||
transform: scale(1.15);
|
||||
}
|
||||
|
||||
.path2 {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(decimal) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@include e(text) {
|
||||
font-size: $--rate-font-size;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
@import 'common/var';
|
||||
|
||||
body {
|
||||
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: $--font-size-base;
|
||||
color: $--color-black;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $--color-primary;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: mix($--color-white, $--color-primary, $--button-hover-tint-percent);
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
|
||||
}
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: $--color-text-regular;
|
||||
font-weight: inherit;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: #{$--font-size-base + 6px};
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: #{$--font-size-base + 4px};
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: #{$--font-size-base + 2px};
|
||||
}
|
||||
|
||||
h4, h5, h6, p {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.8;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
sup, sub {
|
||||
font-size: #{$--font-size-base - 1px};
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: #{$--font-size-base - 2px};
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
border: 0;
|
||||
border-top: 1px solid #eeeeee;
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
@import "common/var";
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
|
||||
@include b(row) {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
@include utils-clearfix;
|
||||
|
||||
@include m(flex) {
|
||||
display: flex;
|
||||
&:before,
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@include when(justify-center) {
|
||||
justify-content: center;
|
||||
}
|
||||
@include when(justify-end) {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
@include when(justify-space-between) {
|
||||
justify-content: space-between;
|
||||
}
|
||||
@include when(justify-space-around) {
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
@include when(align-middle) {
|
||||
align-items: center;
|
||||
}
|
||||
@include when(align-bottom) {
|
||||
align-items: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(scrollbar) {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
> .el-scrollbar__bar {
|
||||
opacity: 1;
|
||||
transition: opacity 340ms ease-out;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(wrap) {
|
||||
overflow: scroll;
|
||||
height: 100%;
|
||||
|
||||
@include m(hidden-default) {
|
||||
&::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(thumb) {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
cursor: pointer;
|
||||
border-radius: inherit;
|
||||
background-color: $--scrollbar-background-color;
|
||||
transition: .3s background-color;
|
||||
|
||||
&:hover {
|
||||
background-color: $--scrollbar-hover-background-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(bar) {
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
bottom: 2px;
|
||||
z-index: 1;
|
||||
border-radius: 4px;
|
||||
opacity: 0;
|
||||
transition: opacity 120ms ease-out;
|
||||
|
||||
@include when(vertical) {
|
||||
width: 6px;
|
||||
top: 2px;
|
||||
|
||||
> div {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(horizontal) {
|
||||
height: 6px;
|
||||
left: 2px;
|
||||
|
||||
> div {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
@import "./popper";
|
||||
|
||||
@include b(select-dropdown) {
|
||||
position: absolute;
|
||||
z-index: #{$--index-top + 1};
|
||||
border: $--select-dropdown-border;
|
||||
border-radius: $--border-radius-base;
|
||||
background-color: $--select-dropdown-background;
|
||||
box-shadow: $--select-dropdown-shadow;
|
||||
box-sizing: border-box;
|
||||
margin: 5px 0;
|
||||
|
||||
@include when(multiple) {
|
||||
& .el-select-dropdown__item.selected {
|
||||
color: $--select-option-selected;
|
||||
background-color: $--select-dropdown-background;
|
||||
|
||||
&.hover {
|
||||
background-color: $--select-option-hover-background;
|
||||
}
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
font-family: 'element-icons';
|
||||
content: "\E611";
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-scrollbar.is-empty .el-select-dropdown__list{
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(select-dropdown__empty) {
|
||||
padding: $--select-dropdown-empty-padding;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
color: $--select-dropdown-empty-color;
|
||||
font-size: $--select-font-size;
|
||||
}
|
||||
|
||||
@include b(select-dropdown__wrap) {
|
||||
max-height: $--select-dropdown-max-height;
|
||||
}
|
||||
|
||||
@include b(select-dropdown__list) {
|
||||
list-style: none;
|
||||
padding: $--select-dropdown-padding;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
@import "select-dropdown";
|
||||
@import "input";
|
||||
@import "tag";
|
||||
@import "option";
|
||||
@import "option-group";
|
||||
@import "scrollbar";
|
||||
|
||||
@include b(select) {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
.el-select__tags
|
||||
>span {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.el-input__inner {
|
||||
border-color: $--select-border-color-hover;
|
||||
}
|
||||
}
|
||||
|
||||
.el-input__inner {
|
||||
cursor: pointer;
|
||||
padding-right: 35px;
|
||||
|
||||
&:focus {
|
||||
border-color: $--select-input-focus-background;
|
||||
}
|
||||
}
|
||||
|
||||
.el-input {
|
||||
& .el-select__caret {
|
||||
color: $--select-input-color;
|
||||
font-size: $--select-input-font-size;
|
||||
transition: transform .3s;
|
||||
transform: rotateZ(180deg);
|
||||
cursor: pointer;
|
||||
|
||||
@include when(reverse) {
|
||||
transform: rotateZ(0deg);
|
||||
}
|
||||
|
||||
@include when(show-close) {
|
||||
font-size: $--select-font-size;
|
||||
text-align: center;
|
||||
transform: rotateZ(180deg);
|
||||
border-radius: $--border-radius-circle;
|
||||
color: $--select-input-color;
|
||||
transition: $--color-transition-base;
|
||||
|
||||
&:hover {
|
||||
color: $--select-close-hover-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
& .el-input__inner {
|
||||
cursor: not-allowed;
|
||||
|
||||
&:hover {
|
||||
border-color: $--select-disabled-border;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.is-focus .el-input__inner {
|
||||
border-color: $--select-input-focus-background;
|
||||
}
|
||||
}
|
||||
|
||||
> .el-input {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@include e(input) {
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
margin-left: 15px;
|
||||
color: $--select-multiple-input-color;
|
||||
font-size: $--select-font-size;
|
||||
appearance: none;
|
||||
height: 28px;
|
||||
background-color: transparent;
|
||||
@include when(mini) {
|
||||
height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(close) {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
z-index: $--index-top;
|
||||
right: 25px;
|
||||
color: $--select-input-color;
|
||||
line-height: 18px;
|
||||
font-size: $--select-input-font-size;
|
||||
|
||||
&:hover {
|
||||
color: $--select-close-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(tags) {
|
||||
position: absolute;
|
||||
line-height: normal;
|
||||
white-space: normal;
|
||||
z-index: $--index-normal;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.el-tag__close {
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.el-tag {
|
||||
box-sizing: border-box;
|
||||
border-color: transparent;
|
||||
margin: 2px 0 2px 6px;
|
||||
background-color: #f0f2f5;
|
||||
|
||||
&__close.el-icon-close {
|
||||
background-color: $--color-text-placeholder;
|
||||
right: -7px;
|
||||
top: 0;
|
||||
color: $--color-white;
|
||||
|
||||
&:hover {
|
||||
background-color: $--color-text-secondary;
|
||||
}
|
||||
|
||||
&::before {
|
||||
display: block;
|
||||
transform: translate(0, .5px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+228
@@ -0,0 +1,228 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "input-number";
|
||||
@import "tooltip";
|
||||
@import "common/var";
|
||||
|
||||
@include b(slider) {
|
||||
@include utils-clearfix;
|
||||
|
||||
@include e(runway) {
|
||||
width: 100%;
|
||||
height: $--slider-height;
|
||||
margin: $--slider-margin;
|
||||
background-color: $--slider-runway-background-color;
|
||||
border-radius: $--slider-border-radius;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
|
||||
&.show-input {
|
||||
margin-right: 160px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
cursor: default;
|
||||
|
||||
.el-slider__bar {
|
||||
background-color: $--slider-disable-color;
|
||||
}
|
||||
|
||||
.el-slider__button {
|
||||
border-color: $--slider-disable-color;
|
||||
}
|
||||
|
||||
.el-slider__button-wrapper {
|
||||
&:hover,
|
||||
&.hover {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&.dragging {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
.el-slider__button {
|
||||
&:hover,
|
||||
&.hover,
|
||||
&.dragging {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.hover {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&.dragging {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(input) {
|
||||
float: right;
|
||||
margin-top: 3px;
|
||||
width: 130px;
|
||||
|
||||
&.el-input-number--mini {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
&.el-input-number--medium {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&.el-input-number--large {
|
||||
margin-top: -2px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(bar) {
|
||||
height: $--slider-height;
|
||||
background-color: $--slider-main-background-color;
|
||||
border-top-left-radius: $--slider-border-radius;
|
||||
border-bottom-left-radius: $--slider-border-radius;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
@include e(button-wrapper) {
|
||||
height: $--slider-button-wrapper-size;
|
||||
width: $--slider-button-wrapper-size;
|
||||
position: absolute;
|
||||
z-index: 1001;
|
||||
top: $--slider-button-wrapper-offset;
|
||||
transform: translateX(-50%);
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
user-select: none;
|
||||
line-height: normal;
|
||||
@include utils-vertical-center;
|
||||
|
||||
.el-tooltip {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.hover {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
&.dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(button) {
|
||||
width: $--slider-button-size;
|
||||
height: $--slider-button-size;
|
||||
border: solid 2px $--slider-main-background-color;
|
||||
background-color: $--color-white;
|
||||
border-radius: 50%;
|
||||
transition: .2s;
|
||||
user-select: none;
|
||||
|
||||
&:hover,
|
||||
&.hover,
|
||||
&.dragging {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.hover {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
&.dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(stop) {
|
||||
position: absolute;
|
||||
height: $--slider-height;
|
||||
width: $--slider-height;
|
||||
border-radius: $--border-radius-circle;
|
||||
background-color: $--slider-stop-background-color;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
@include when(vertical) {
|
||||
position: relative;
|
||||
.el-slider__runway {
|
||||
width: $--slider-height;
|
||||
height: 100%;
|
||||
margin: 0 16px;
|
||||
}
|
||||
.el-slider__bar {
|
||||
width: $--slider-height;
|
||||
height: auto;
|
||||
border-radius: 0 0 3px 3px;
|
||||
}
|
||||
.el-slider__button-wrapper {
|
||||
top: auto;
|
||||
left: $--slider-button-wrapper-offset;
|
||||
transform: translateY(50%);
|
||||
}
|
||||
.el-slider__stop {
|
||||
transform: translateY(50%);
|
||||
}
|
||||
&.el-slider--with-input {
|
||||
padding-bottom: #{$--input-medium-height + 22px};
|
||||
.el-slider__input {
|
||||
overflow: visible;
|
||||
float: none;
|
||||
position: absolute;
|
||||
bottom: 22px;
|
||||
width: 36px;
|
||||
margin-top: 15px;
|
||||
.el-input__inner {
|
||||
text-align: center;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
.el-input-number__decrease,
|
||||
.el-input-number__increase
|
||||
{
|
||||
top: $--input-small-height;
|
||||
margin-top: -1px;
|
||||
border: $--input-border;
|
||||
line-height: 20px;
|
||||
box-sizing: border-box;
|
||||
transition: $--border-transition-base;
|
||||
}
|
||||
.el-input-number__decrease {
|
||||
width: 18px;
|
||||
right: 18px;
|
||||
border-bottom-left-radius: $--input-border-radius;
|
||||
}
|
||||
.el-input-number__increase {
|
||||
width: 19px;
|
||||
border-bottom-right-radius: $--input-border-radius;
|
||||
& ~ .el-input .el-input__inner {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
.el-input-number__decrease,
|
||||
.el-input-number__increase
|
||||
{
|
||||
border-color: $--input-hover-border;
|
||||
}
|
||||
}
|
||||
&:active {
|
||||
.el-input-number__decrease,
|
||||
.el-input-number__increase
|
||||
{
|
||||
border-color: $--input-focus-border;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
@import "mixins/mixins";
|
||||
|
||||
@include b(time-spinner) {
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@include b(spinner) {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@include b(spinner-inner) {
|
||||
animation: rotate 2s linear infinite;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
|
||||
& .path {
|
||||
stroke: #ececec;
|
||||
stroke-linecap: round;
|
||||
animation: dash 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes dash {
|
||||
0% {
|
||||
stroke-dasharray: 1, 150;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
50% {
|
||||
stroke-dasharray: 90, 150;
|
||||
stroke-dashoffset: -35;
|
||||
}
|
||||
100% {
|
||||
stroke-dasharray: 90, 150;
|
||||
stroke-dashoffset: -124;
|
||||
}
|
||||
}
|
||||
+317
@@ -0,0 +1,317 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(step) {
|
||||
position: relative;
|
||||
flex-shrink: 1;
|
||||
|
||||
@include pseudo(last-of-type) {
|
||||
@include e(line) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// 只有未设置 space 的情况下才自适应宽度
|
||||
@include when(flex) {
|
||||
flex-basis: auto !important;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
@include e((main, description)) {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(head) {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
@include when(process) {
|
||||
color: $--color-text-primary;
|
||||
border-color: $--color-text-primary;
|
||||
}
|
||||
|
||||
@include when(wait) {
|
||||
color: $--color-text-placeholder;
|
||||
border-color: $--color-text-placeholder;
|
||||
}
|
||||
|
||||
@include when(success) {
|
||||
color: $--color-success;
|
||||
border-color: $--color-success;
|
||||
}
|
||||
|
||||
@include when(error) {
|
||||
color: $--color-danger;
|
||||
border-color: $--color-danger;
|
||||
}
|
||||
|
||||
@include when(finish) {
|
||||
color: $--color-primary;
|
||||
border-color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
font-size: 14px;
|
||||
box-sizing: border-box;
|
||||
background: $--color-white;
|
||||
transition: .15s ease-out;
|
||||
|
||||
@include when(text) {
|
||||
border-radius: 50%;
|
||||
border: 2px solid;
|
||||
border-color: inherit;
|
||||
}
|
||||
|
||||
@include when(icon) {
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(icon-inner) {
|
||||
display: inline-block;
|
||||
user-select: none;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
color: inherit;
|
||||
|
||||
&[class*=el-icon]:not(.is-status) {
|
||||
font-size: 25px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
// 组件自身表示状态的图标
|
||||
@include when(status) {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
}
|
||||
|
||||
@include e(line) {
|
||||
position: absolute;
|
||||
border-color: inherit;
|
||||
background-color: $--color-text-placeholder;
|
||||
}
|
||||
|
||||
@include e(line-inner) {
|
||||
display: block;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: inherit;
|
||||
transition: .15s ease-out;
|
||||
box-sizing: border-box;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
@include e(main) {
|
||||
white-space: normal;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
font-size: 16px;
|
||||
line-height: 38px;
|
||||
|
||||
@include when(process) {
|
||||
font-weight: bold;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
|
||||
@include when(wait) {
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
|
||||
@include when(success) {
|
||||
color: $--color-success;
|
||||
}
|
||||
|
||||
@include when(error) {
|
||||
color: $--color-danger;
|
||||
}
|
||||
|
||||
@include when(finish) {
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(description) {
|
||||
padding-right: 10%;
|
||||
margin-top: -5px;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
font-weight: normal;
|
||||
|
||||
@include when(process) {
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
|
||||
@include when(wait) {
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
|
||||
@include when(success) {
|
||||
color: $--color-success;
|
||||
}
|
||||
|
||||
@include when(error) {
|
||||
color: $--color-danger;
|
||||
}
|
||||
|
||||
@include when(finish) {
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(horizontal) {
|
||||
display: inline-block;
|
||||
|
||||
@include e(line) {
|
||||
height: 2px;
|
||||
top: 11px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(vertical) {
|
||||
display: flex;
|
||||
|
||||
@include e(head) {
|
||||
flex-grow: 0;
|
||||
width: 24px;
|
||||
}
|
||||
|
||||
@include e(main) {
|
||||
padding-left: 10px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
line-height: 24px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
@include e(line) {
|
||||
width: 2px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 11px;
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
@include when(icon) {
|
||||
width: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include when(center) {
|
||||
|
||||
@include e(head) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include e(main) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include e(description) {
|
||||
padding-left: 20%;
|
||||
padding-right: 20%;
|
||||
}
|
||||
|
||||
@include e(line) {
|
||||
left: 50%;
|
||||
right: -50%;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(simple) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@include e(head) {
|
||||
width: auto;
|
||||
font-size: 0;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
background: transparent;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@include e(icon-inner) {
|
||||
&[class*=el-icon]:not(.is-status) {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
&.is-status {
|
||||
transform: scale(.8) translateY(1px);
|
||||
}
|
||||
}
|
||||
|
||||
@include e(main) {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
@include pseudo('not(:last-of-type)') {
|
||||
@include e(title) {
|
||||
max-width: 50%;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(arrow) {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
height: 15px;
|
||||
width: 1px;
|
||||
background: $--color-text-placeholder;
|
||||
}
|
||||
|
||||
&::before {
|
||||
transform: rotate(-45deg) translateY(-4px);
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
|
||||
&::after {
|
||||
transform: rotate(45deg) translateY(4px);
|
||||
transform-origin: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@include pseudo(last-of-type) {
|
||||
@include e(arrow) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
@import "mixins/mixins";
|
||||
|
||||
@include b(steps) {
|
||||
display: flex;
|
||||
|
||||
@include m(simple) {
|
||||
padding: 13px 8%;
|
||||
border-radius: 4px;
|
||||
background: $--background-color-base;
|
||||
}
|
||||
|
||||
@include m(horizontal) {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@include m(vertical) {
|
||||
height: 100%;
|
||||
flex-flow: column;
|
||||
}
|
||||
}
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(switch) {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
font-size: $--switch-font-size;
|
||||
line-height: $--switch-height;
|
||||
height: $--switch-height;
|
||||
vertical-align: middle;
|
||||
@include when(disabled) {
|
||||
& .el-switch__core,
|
||||
& .el-switch__label {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
transition: .2s;
|
||||
height: $--switch-height;
|
||||
display: inline-block;
|
||||
font-size: $--switch-font-size;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
color: $--color-text-primary;
|
||||
|
||||
@include when(active) {
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
@include m(left) {
|
||||
margin-right: 10px;
|
||||
}
|
||||
@include m(right) {
|
||||
margin-left: 10px;
|
||||
}
|
||||
& * {
|
||||
line-height: 1;
|
||||
font-size: $--switch-font-size;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(input) {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@include e(core) {
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: $--switch-width;
|
||||
height: $--switch-height;
|
||||
border: 1px solid $--switch-off-color;
|
||||
outline: none;
|
||||
border-radius: $--switch-core-border-radius;
|
||||
box-sizing: border-box;
|
||||
background: $--switch-off-color;
|
||||
cursor: pointer;
|
||||
transition: border-color .3s, background-color .3s;
|
||||
vertical-align: middle;
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
border-radius: $--border-radius-circle;
|
||||
transition: all .3s;
|
||||
width: $--switch-button-size;
|
||||
height: $--switch-button-size;
|
||||
background-color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(checked) {
|
||||
.el-switch__core {
|
||||
border-color: $--switch-on-color;
|
||||
background-color: $--switch-on-color;
|
||||
&::after {
|
||||
left: 100%;
|
||||
margin-left: -$--switch-button-size - 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
@include m(wide) {
|
||||
.el-switch__label {
|
||||
&.el-switch__label--left {
|
||||
span {
|
||||
left: 10px;
|
||||
}
|
||||
}
|
||||
&.el-switch__label--right {
|
||||
span {
|
||||
right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& .label-fade-enter,
|
||||
& .label-fade-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
@import "mixins/mixins";
|
||||
@import "checkbox";
|
||||
@import "tag";
|
||||
@import "common/var";
|
||||
|
||||
@include b(table-column) {
|
||||
@include m(selection) {
|
||||
.cell {
|
||||
padding-left: 14px;
|
||||
padding-right: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(table-filter) {
|
||||
border: solid 1px $--border-color-lighter;
|
||||
border-radius: 2px;
|
||||
background-color: $--color-white;
|
||||
box-shadow: $--dropdown-menu-box-shadow;
|
||||
box-sizing: border-box;
|
||||
margin: 2px 0;
|
||||
|
||||
/** used for dropdown mode */
|
||||
@include e(list) {
|
||||
padding: 5px 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
@include e(list-item) {
|
||||
line-height: 36px;
|
||||
padding: 0 10px;
|
||||
cursor: pointer;
|
||||
font-size: $--font-size-base;
|
||||
|
||||
&:hover {
|
||||
background-color: $--dropdown-menuItem-hover-fill;
|
||||
color: $--dropdown-menuItem-hover-color;
|
||||
}
|
||||
|
||||
@include when(active) {
|
||||
background-color: $--color-primary;
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
@include e(bottom) {
|
||||
border-top: 1px solid $--border-color-lighter;
|
||||
padding: 8px;
|
||||
|
||||
button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: $--color-text-regular;
|
||||
cursor: pointer;
|
||||
font-size: $--font-size-small;
|
||||
padding: 0 3px;
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
color: $--disabled-color-base;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(wrap) {
|
||||
max-height: 280px;
|
||||
}
|
||||
|
||||
@include e(checkbox-group) {
|
||||
padding: 10px;
|
||||
|
||||
label.el-checkbox {
|
||||
display: block;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 8px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.el-checkbox:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
+555
@@ -0,0 +1,555 @@
|
||||
@import "mixins/mixins";
|
||||
@import "checkbox";
|
||||
@import "tag";
|
||||
@import "tooltip";
|
||||
@import "common/var";
|
||||
|
||||
@include b(table) {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
background-color: $--color-white;
|
||||
font-size: 14px;
|
||||
color: $--table-text-color;
|
||||
|
||||
// 数据为空
|
||||
@include e(empty-block) {
|
||||
min-height: 60px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@include e(empty-text) {
|
||||
// min-height doesn't work in IE10 and IE11 https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
|
||||
// set empty text line height up to contrainer min-height as workaround.
|
||||
line-height: 60px;
|
||||
width: 50%;
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
|
||||
// 展开行
|
||||
@include e(expand-column) {
|
||||
.cell {
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(expand-icon) {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
transition: transform 0.2s ease-in-out;
|
||||
height: 20px;
|
||||
|
||||
@include m(expanded) {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
> .el-icon {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -5px;
|
||||
margin-top: -5px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(expanded-cell) {
|
||||
background-color: $--color-white;
|
||||
|
||||
// 纯属为了增加权重
|
||||
&[class*=cell] {
|
||||
padding: 20px 50px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(fit) {
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
|
||||
th.gutter, td.gutter {
|
||||
border-right-width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(scrollable-x) {
|
||||
.el-table__body-wrapper {
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(scrollable-y) {
|
||||
.el-table__body-wrapper {
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
thead {
|
||||
color: $--table-header-color;
|
||||
font-weight: 500;
|
||||
|
||||
&.is-group {
|
||||
th {
|
||||
background: $--background-color-base;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 12px 0;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
|
||||
@include when(center) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include when(right) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&.gutter {
|
||||
width: 15px;
|
||||
border-right-width: 0;
|
||||
border-bottom-width: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&.is-hidden {
|
||||
> * {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
th, td {
|
||||
padding: 10px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(small) {
|
||||
font-size: 12px;
|
||||
th, td {
|
||||
padding: 8px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(mini) {
|
||||
font-size: 12px;
|
||||
th, td {
|
||||
padding: 6px 0;
|
||||
}
|
||||
}
|
||||
|
||||
tr {
|
||||
background-color: $--color-white;
|
||||
|
||||
input[type="checkbox"] {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
th.is-leaf, td {
|
||||
border-bottom: $--table-border;
|
||||
}
|
||||
|
||||
th.is-sortable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
th {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
background-color: $--table-header-background;
|
||||
|
||||
div {
|
||||
display: inline-block;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
line-height: 40px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
> .cell {
|
||||
position: relative;
|
||||
word-wrap: normal;
|
||||
text-overflow: ellipsis;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
&.highlight {
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
&.required > div::before {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #ff4d51;
|
||||
margin-right: 5px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
div {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&.gutter {
|
||||
width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.cell {
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
line-height: 23px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
|
||||
&.el-tooltip {
|
||||
white-space: nowrap;
|
||||
min-width: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
// 拥有多级表头
|
||||
@include m((group, border)) {
|
||||
border: $--table-border;
|
||||
|
||||
@include share-rule(border-pseudo) {
|
||||
content: '';
|
||||
position: absolute;
|
||||
background-color: $--table-border-color;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
// 表格右部伪 border
|
||||
&::after {
|
||||
@include extend-rule(border-pseudo);
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 1px;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// 表格底部伪 border,总是有的
|
||||
&::before {
|
||||
@include extend-rule(border-pseudo);
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
// table--border
|
||||
@include m(border) {
|
||||
border-right: none;
|
||||
border-bottom: none;
|
||||
|
||||
&.el-loading-parent--relative {
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
th, td {
|
||||
border-right: $--table-border;
|
||||
|
||||
&:first-child .cell {
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
th.gutter:last-of-type {
|
||||
border-bottom: $--table-border;
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
& th {
|
||||
border-bottom: $--table-border;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(hidden) {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
@include e((fixed, fixed-right)) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: hidden;
|
||||
box-shadow: $--table-fixed-box-shadow;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: $--border-color-lighter;
|
||||
z-index: 4;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(fixed-right-patch) {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
right: 0;
|
||||
background-color: $--color-white;
|
||||
border-bottom: $--table-border;
|
||||
}
|
||||
|
||||
@include e(fixed-right) {
|
||||
top: 0;
|
||||
left: auto;
|
||||
right: 0;
|
||||
|
||||
.el-table__fixed-header-wrapper,
|
||||
.el-table__fixed-body-wrapper,
|
||||
.el-table__fixed-footer-wrapper {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(fixed-header-wrapper) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
@include e(fixed-footer-wrapper) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
z-index: 3;
|
||||
|
||||
& tbody td {
|
||||
border-top: $--table-border;
|
||||
background-color: $--table-row-hover-background;
|
||||
color: $--table-text-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(fixed-body-wrapper) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 37px;
|
||||
overflow: hidden;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
@include e((header-wrapper, body-wrapper, footer-wrapper)) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@include e(footer-wrapper) {
|
||||
margin-top: -1px;
|
||||
td {
|
||||
border-top: $--table-border;
|
||||
}
|
||||
}
|
||||
|
||||
@include e((header, body, footer)) {
|
||||
table-layout: fixed;
|
||||
border-collapse: separate;
|
||||
}
|
||||
|
||||
@include e((header-wrapper, footer-wrapper)) {
|
||||
overflow: hidden;
|
||||
|
||||
& tbody td {
|
||||
background-color: $--table-row-hover-background;
|
||||
color: $--table-text-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(body-wrapper) {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
@include when(scrolling-none) {
|
||||
~ .el-table__fixed,
|
||||
~ .el-table__fixed-right {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(scrolling-left) {
|
||||
~ .el-table__fixed {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(scrolling-right) {
|
||||
~ .el-table__fixed-right {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.el-table--border {
|
||||
@include when(scrolling-right) {
|
||||
~ .el-table__fixed-right {
|
||||
border-left: $--table-border;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(scrolling-left) {
|
||||
~ .el-table__fixed {
|
||||
border-right: $--table-border;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.caret-wrapper {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
height: 34px;
|
||||
width: 24px;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
overflow: initial;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.sort-caret {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: solid 5px transparent;
|
||||
position: absolute;
|
||||
left: 7px;
|
||||
|
||||
&.ascending {
|
||||
border-bottom-color: $--color-text-placeholder;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
&.descending {
|
||||
border-top-color: $--color-text-placeholder;
|
||||
bottom: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.ascending .sort-caret.ascending {
|
||||
border-bottom-color: $--color-primary;
|
||||
}
|
||||
|
||||
.descending .sort-caret.descending {
|
||||
border-top-color: $--color-primary;
|
||||
}
|
||||
|
||||
.hidden-columns {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@include m(striped) {
|
||||
& .el-table__body {
|
||||
& tr.el-table__row--striped {
|
||||
td {
|
||||
background: #FAFAFA;
|
||||
}
|
||||
|
||||
&.current-row td {
|
||||
background-color: $--table-current-row-background;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(body) {
|
||||
tr.hover-row {
|
||||
&, &.el-table__row--striped {
|
||||
&, &.current-row {
|
||||
> td {
|
||||
background-color: $--table-current-row-background;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tr.current-row > td {
|
||||
background-color: $--table-current-row-background;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(column-resize-proxy) {
|
||||
position: absolute;
|
||||
left: 200px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 0;
|
||||
border-left: $--table-border;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
@include e(column-filter-trigger) {
|
||||
display: inline-block;
|
||||
line-height: 34px;
|
||||
cursor: pointer;
|
||||
|
||||
& i {
|
||||
color: $--color-info;
|
||||
font-size: 12px;
|
||||
transform: scale(.75);
|
||||
}
|
||||
}
|
||||
|
||||
@include m(enable-row-transition) {
|
||||
.el-table__body td {
|
||||
transition: background-color .25s ease;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(enable-row-hover) {
|
||||
.el-table__body tr:hover > td {
|
||||
background-color: $--table-row-hover-background;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(fluid-height) {
|
||||
.el-table__fixed,
|
||||
.el-table__fixed-right {
|
||||
bottom: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
+599
@@ -0,0 +1,599 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(tabs) {
|
||||
@include e(header) {
|
||||
padding: 0;
|
||||
position: relative;
|
||||
margin: 0 0 15px;
|
||||
}
|
||||
@include e(active-bar) {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 2px;
|
||||
background-color: $--color-primary;
|
||||
z-index: 1;
|
||||
transition: transform .3s cubic-bezier(.645,.045,.355,1);
|
||||
list-style: none;
|
||||
}
|
||||
@include e(new-tab) {
|
||||
float: right;
|
||||
border: 1px solid #d3dce6;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
line-height: 18px;
|
||||
margin: 12px 0 9px 10px;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #d3dce6;
|
||||
cursor: pointer;
|
||||
transition: all .15s;
|
||||
|
||||
.el-icon-plus {
|
||||
transform: scale(0.8, 0.8);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
@include e(nav-wrap) {
|
||||
overflow: hidden;
|
||||
margin-bottom: -1px;
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background-color: $--border-color-light;
|
||||
z-index: $--index-normal;
|
||||
}
|
||||
|
||||
@include when(scrollable) {
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
@include e(nav-scroll) {
|
||||
overflow: hidden;
|
||||
}
|
||||
@include e((nav-next, nav-prev)) {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
line-height: 44px;
|
||||
font-size: 12px;
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
@include e(nav-next) {
|
||||
right: 0;
|
||||
}
|
||||
@include e(nav-prev) {
|
||||
left: 0;
|
||||
}
|
||||
@include e(nav) {
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
transition: transform .3s;
|
||||
float: left;
|
||||
z-index: #{$--index-normal + 1};
|
||||
|
||||
@include when(stretch) {
|
||||
min-width: 100%;
|
||||
display: flex;
|
||||
& > * {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include e(item) {
|
||||
padding: 0 20px;
|
||||
height: 40px;
|
||||
box-sizing: border-box;
|
||||
line-height: 40px;
|
||||
display: inline-block;
|
||||
list-style: none;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: $--color-text-primary;
|
||||
position: relative;
|
||||
|
||||
&:focus, &:focus:active {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:focus.is-active.is-focus:not(:active) {
|
||||
box-shadow: 0 0 2px 2px #409eff inset;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
& .el-icon-close {
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
transition: all .3s cubic-bezier(.645,.045,.355,1);
|
||||
margin-left: 5px;
|
||||
&:before {
|
||||
transform: scale(.9);
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $--color-text-placeholder;
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(active) {
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
color: $--disabled-color-base;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
@include e(content) {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
@include m(card) {
|
||||
> .el-tabs__header {
|
||||
border-bottom: 1px solid $--border-color-light;
|
||||
}
|
||||
> .el-tabs__header .el-tabs__nav-wrap::after {
|
||||
content: none;
|
||||
}
|
||||
> .el-tabs__header .el-tabs__nav {
|
||||
border: 1px solid $--border-color-light;
|
||||
border-bottom: none;
|
||||
border-radius: 4px 4px 0 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
> .el-tabs__header .el-tabs__active-bar {
|
||||
display: none;
|
||||
}
|
||||
> .el-tabs__header .el-tabs__item .el-icon-close {
|
||||
position: relative;
|
||||
font-size: 12px;
|
||||
width: 0;
|
||||
height: 14px;
|
||||
vertical-align: middle;
|
||||
line-height: 15px;
|
||||
overflow: hidden;
|
||||
top: -1px;
|
||||
right: -2px;
|
||||
transform-origin: 100% 50%;
|
||||
}
|
||||
> .el-tabs__header .el-tabs__item {
|
||||
border-bottom: 1px solid transparent;
|
||||
border-left: 1px solid $--border-color-light;
|
||||
transition: color .3s cubic-bezier(.645,.045,.355,1), padding .3s cubic-bezier(.645,.045,.355,1);
|
||||
&:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
&.is-closable {
|
||||
&:hover {
|
||||
padding-left: 13px;
|
||||
padding-right: 13px;
|
||||
|
||||
& .el-icon-close {
|
||||
width: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.is-active {
|
||||
border-bottom-color: $--color-white;
|
||||
|
||||
&.is-closable {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
|
||||
.el-icon-close {
|
||||
width: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@include m(border-card) {
|
||||
background: $--color-white;
|
||||
border: 1px solid $--border-color-base;
|
||||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.12), 0 0 6px 0 rgba(0,0,0,0.04);
|
||||
|
||||
> .el-tabs__content {
|
||||
padding: 15px;
|
||||
}
|
||||
> .el-tabs__header {
|
||||
background-color: $--background-color-base;
|
||||
border-bottom: 1px solid $--border-color-light;
|
||||
margin: 0;
|
||||
}
|
||||
> .el-tabs__header .el-tabs__nav-wrap::after {
|
||||
content: none;
|
||||
}
|
||||
> .el-tabs__header .el-tabs__item {
|
||||
transition: all .3s cubic-bezier(.645,.045,.355,1);
|
||||
border: 1px solid transparent;
|
||||
margin-top: -1px;
|
||||
color: $--color-text-secondary;
|
||||
|
||||
&:first-child {
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
& + .el-tabs__item {
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
color: $--color-primary;
|
||||
background-color: $--color-white;
|
||||
border-right-color: $--border-color-base;
|
||||
border-left-color: $--border-color-base;
|
||||
}
|
||||
&:not(.is-disabled):hover {
|
||||
color: $--color-primary;
|
||||
}
|
||||
&.is-disabled {
|
||||
color: $--disabled-color-base;
|
||||
}
|
||||
}
|
||||
|
||||
> .el-tabs__header .is-scrollable .el-tabs__item:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
@include m((top, bottom)) {
|
||||
.el-tabs__item.is-top:nth-child(2),
|
||||
.el-tabs__item.is-bottom:nth-child(2) {
|
||||
padding-left: 0;
|
||||
}
|
||||
.el-tabs__item.is-top:last-child,
|
||||
.el-tabs__item.is-bottom:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
&.el-tabs--border-card, &.el-tabs--card,
|
||||
.el-tabs--left, .el-tabs--right {
|
||||
.el-tabs__item:nth-child(2) {
|
||||
padding-left: 20px;
|
||||
}
|
||||
.el-tabs__item:last-child {
|
||||
padding-right: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include m(bottom) {
|
||||
.el-tabs__header.is-bottom {
|
||||
margin-bottom: 0;
|
||||
margin-top: 10px;
|
||||
}
|
||||
&.el-tabs--border-card {
|
||||
.el-tabs__header.is-bottom {
|
||||
border-bottom: 0;
|
||||
border-top: 1px solid $--border-color-base;
|
||||
}
|
||||
.el-tabs__nav-wrap.is-bottom {
|
||||
margin-top: -1px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.el-tabs__item.is-bottom:not(.is-active) {
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.el-tabs__item.is-bottom {
|
||||
margin: 0 -1px -1px -1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include m((left, right)) {
|
||||
overflow: hidden;
|
||||
|
||||
.el-tabs__header.is-left,
|
||||
.el-tabs__header.is-right,
|
||||
.el-tabs__nav-wrap.is-left,
|
||||
.el-tabs__nav-wrap.is-right,
|
||||
.el-tabs__nav-scroll {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.el-tabs__active-bar.is-left,
|
||||
.el-tabs__active-bar.is-right {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
width: 2px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.el-tabs__nav-wrap.is-left,
|
||||
.el-tabs__nav-wrap.is-right {
|
||||
margin-bottom: 0;
|
||||
|
||||
> .el-tabs__nav-prev,
|
||||
> .el-tabs__nav-next {
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
|
||||
i {
|
||||
transform: rotateZ(90deg);
|
||||
}
|
||||
}
|
||||
> .el-tabs__nav-prev {
|
||||
left: auto;
|
||||
top: 0;
|
||||
}
|
||||
> .el-tabs__nav-next {
|
||||
right: auto;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
&.is-scrollable {
|
||||
padding: 30px 0;
|
||||
}
|
||||
|
||||
&::after {
|
||||
height: 100%;
|
||||
width: 2px;
|
||||
bottom: auto;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.el-tabs__nav.is-left,
|
||||
.el-tabs__nav.is-right {
|
||||
float: none;
|
||||
}
|
||||
.el-tabs__item.is-left,
|
||||
.el-tabs__item.is-right {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
@include m(left) {
|
||||
.el-tabs__header.is-left {
|
||||
float: left;
|
||||
margin-bottom: 0;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.el-tabs__nav-wrap.is-left {
|
||||
margin-right: -1px;
|
||||
&::after {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
.el-tabs__active-bar.is-left {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
.el-tabs__item.is-left {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&.el-tabs--card {
|
||||
.el-tabs__active-bar.is-left {
|
||||
display: none;
|
||||
}
|
||||
.el-tabs__item.is-left {
|
||||
border-left: none;
|
||||
border-right: 1px solid $--border-color-light;
|
||||
border-bottom: none;
|
||||
border-top: 1px solid $--border-color-light;
|
||||
}
|
||||
.el-tabs__item.is-left:first-child {
|
||||
border-right: 1px solid $--border-color-light;
|
||||
border-top: none;
|
||||
}
|
||||
.el-tabs__item.is-left.is-active {
|
||||
border: 1px solid $--border-color-light;
|
||||
border-right-color: #fff;
|
||||
border-left: none;
|
||||
border-bottom: none;
|
||||
|
||||
&:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.el-tabs__nav {
|
||||
border-radius: 4px 0 0 4px;
|
||||
border-bottom: 1px solid $--border-color-light;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.el-tabs__new-tab {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.el-tabs--border-card {
|
||||
.el-tabs__header.is-left {
|
||||
border-right: 1px solid #dfe4ed;
|
||||
}
|
||||
.el-tabs__item.is-left {
|
||||
border: 1px solid transparent;
|
||||
margin: -1px 0 -1px -1px;
|
||||
|
||||
&.is-active {
|
||||
border-color: transparent;
|
||||
border-top-color: rgb(209, 219, 229);
|
||||
border-bottom-color: rgb(209, 219, 229);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@include m(right) {
|
||||
.el-tabs__header.is-right {
|
||||
float: right;
|
||||
margin-bottom: 0;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.el-tabs__nav-wrap.is-right {
|
||||
margin-left: -1px;
|
||||
&::after {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.el-tabs__active-bar.is-right {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
&.el-tabs--card {
|
||||
.el-tabs__active-bar.is-right {
|
||||
display: none;
|
||||
}
|
||||
.el-tabs__item.is-right {
|
||||
border-bottom: none;
|
||||
border-top: 1px solid $--border-color-light;
|
||||
}
|
||||
.el-tabs__item.is-right:first-child {
|
||||
border-left: 1px solid $--border-color-light;
|
||||
border-top: none;
|
||||
}
|
||||
.el-tabs__item.is-right.is-active {
|
||||
border: 1px solid $--border-color-light;
|
||||
border-left-color: #fff;
|
||||
border-right: none;
|
||||
border-bottom: none;
|
||||
|
||||
&:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.el-tabs__nav {
|
||||
border-radius: 0 4px 4px 0;
|
||||
border-bottom: 1px solid $--border-color-light;
|
||||
border-left: none;
|
||||
}
|
||||
}
|
||||
&.el-tabs--border-card {
|
||||
.el-tabs__header.is-right {
|
||||
border-left: 1px solid #dfe4ed;
|
||||
}
|
||||
.el-tabs__item.is-right {
|
||||
border: 1px solid transparent;
|
||||
margin: -1px -1px -1px 0;
|
||||
|
||||
&.is-active {
|
||||
border-color: transparent;
|
||||
border-top-color: rgb(209, 219, 229);
|
||||
border-bottom-color: rgb(209, 219, 229);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.slideInRight-transition,
|
||||
.slideInLeft-transition {
|
||||
display: inline-block;
|
||||
}
|
||||
.slideInRight-enter {
|
||||
animation: slideInRight-enter .3s;
|
||||
}
|
||||
.slideInRight-leave {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
animation: slideInRight-leave .3s;
|
||||
}
|
||||
.slideInLeft-enter {
|
||||
animation: slideInLeft-enter .3s;
|
||||
}
|
||||
.slideInLeft-leave {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
animation: slideInLeft-leave .3s;
|
||||
}
|
||||
|
||||
@keyframes slideInRight-enter {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-transform: translateX(100%);
|
||||
transform: translateX(100%)
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0)
|
||||
}
|
||||
}
|
||||
@keyframes slideInRight-leave {
|
||||
0% {
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-transform: translateX(100%);
|
||||
transform: translateX(100%);
|
||||
opacity: 0
|
||||
}
|
||||
}
|
||||
@keyframes slideInLeft-enter {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-transform: translateX(-100%);
|
||||
transform: translateX(-100%)
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0)
|
||||
}
|
||||
}
|
||||
@keyframes slideInLeft-leave {
|
||||
0% {
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-transform: translateX(-100%);
|
||||
transform: translateX(-100%);
|
||||
opacity: 0
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(tag) {
|
||||
background-color: $--tag-fill;
|
||||
display: inline-block;
|
||||
padding: $--tag-padding;
|
||||
height: 32px;
|
||||
line-height: 30px;
|
||||
font-size: $--tag-font-size;
|
||||
color: $--tag-color;
|
||||
border-radius: $--tag-border-radius;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid $--tag-border;
|
||||
white-space: nowrap;
|
||||
|
||||
.el-icon-close {
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
line-height: 16px;
|
||||
vertical-align: middle;
|
||||
top: -1px;
|
||||
right: -5px;
|
||||
color: $--tag-color;
|
||||
|
||||
&::before {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $--tag-color;
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(info) {
|
||||
background-color: $--tag-info-fill;
|
||||
border-color: $--tag-info-border;
|
||||
color: $--tag-info-color;
|
||||
|
||||
@include when(hit) {
|
||||
border-color: $--tag-info-color;
|
||||
}
|
||||
|
||||
.el-tag__close {
|
||||
color: $--tag-info-color;
|
||||
}
|
||||
|
||||
.el-tag__close:hover {
|
||||
background-color: $--tag-info-color;
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(success) {
|
||||
background-color: $--tag-success-fill;
|
||||
border-color: $--tag-success-border;
|
||||
color: $--tag-success-color;
|
||||
|
||||
@include when(hit) {
|
||||
border-color: $--tag-success-color;
|
||||
}
|
||||
|
||||
.el-tag__close {
|
||||
color: $--tag-success-color;
|
||||
}
|
||||
|
||||
.el-tag__close:hover {
|
||||
background-color: $--tag-success-color;
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(warning) {
|
||||
background-color: $--tag-warning-fill;
|
||||
border-color: $--tag-warning-border;
|
||||
color: $--tag-warning-color;
|
||||
|
||||
@include when(hit) {
|
||||
border-color: $--tag-warning-color;
|
||||
}
|
||||
|
||||
.el-tag__close {
|
||||
color: $--tag-warning-color;
|
||||
}
|
||||
|
||||
.el-tag__close:hover {
|
||||
background-color: $--tag-warning-color;
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(danger) {
|
||||
background-color: $--tag-danger-fill;
|
||||
border-color: $--tag-danger-border;
|
||||
color: $--tag-danger-color;
|
||||
|
||||
@include when(hit) {
|
||||
border-color: $--tag-danger-color;
|
||||
}
|
||||
|
||||
.el-tag__close {
|
||||
color: $--tag-danger-color;
|
||||
}
|
||||
|
||||
.el-tag__close:hover {
|
||||
background-color: $--tag-danger-color;
|
||||
color: $--color-white;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(medium) {
|
||||
height: 28px;
|
||||
line-height: 26px;
|
||||
|
||||
.el-icon-close {
|
||||
transform: scale(.8);
|
||||
}
|
||||
}
|
||||
|
||||
@include m(small) {
|
||||
height: 24px;
|
||||
padding: 0 8px;
|
||||
line-height: 22px;
|
||||
|
||||
.el-icon-close {
|
||||
transform: scale(.8);
|
||||
}
|
||||
}
|
||||
|
||||
@include m(mini) {
|
||||
height: 20px;
|
||||
padding: 0 5px;
|
||||
line-height: 19px;
|
||||
|
||||
.el-icon-close {
|
||||
margin-left: -3px;
|
||||
transform: scale(.7);
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
@import "./date-picker/picker.scss";
|
||||
@import "./date-picker/picker-panel.scss";
|
||||
@import "./date-picker/time-spinner.scss";
|
||||
@import "./date-picker/time-picker.scss";
|
||||
@import "./date-picker/time-range-picker.scss";
|
||||
@import "./input.scss";
|
||||
@import "./scrollbar.scss";
|
||||
@import "./popper";
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
@import "common/var";
|
||||
@import "./date-picker/picker.scss";
|
||||
@import "./date-picker/date-picker.scss";
|
||||
@import "./scrollbar.scss";
|
||||
@import "./popper";
|
||||
|
||||
.time-select {
|
||||
margin: 5px 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.time-select .el-picker-panel__content {
|
||||
max-height: 200px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.time-select-item {
|
||||
padding: 8px 10px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.time-select-item.selected:not(.disabled) {
|
||||
color: $--color-primary;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.time-select-item.disabled {
|
||||
color: $--datepicker-border-color;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.time-select-item:hover {
|
||||
background-color: $--background-color-base;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(timeline-item) {
|
||||
position: relative;
|
||||
padding-bottom: 20px;
|
||||
|
||||
@include e(wrapper) {
|
||||
position: relative;
|
||||
padding-left: 28px;
|
||||
top: -3px;
|
||||
}
|
||||
|
||||
@include e(tail) {
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
height: 100%;
|
||||
border-left: 2px solid $--timeline-node-color;
|
||||
}
|
||||
|
||||
@include e(icon) {
|
||||
color: $--color-white;
|
||||
font-size: $--font-size-small;
|
||||
}
|
||||
|
||||
@include e(node) {
|
||||
position: absolute;
|
||||
background-color: $--timeline-node-color;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
@include m(normal) {
|
||||
left: -1px;
|
||||
width: $--timeline-node-size-normal;
|
||||
height: $--timeline-node-size-normal;
|
||||
}
|
||||
@include m(large) {
|
||||
left: -2px;
|
||||
width: $--timeline-node-size-large;
|
||||
height: $--timeline-node-size-large;
|
||||
}
|
||||
|
||||
@include m(primary) {
|
||||
background-color: $--color-primary;
|
||||
}
|
||||
@include m(success) {
|
||||
background-color: $--color-success;
|
||||
}
|
||||
@include m(warning) {
|
||||
background-color: $--color-warning;
|
||||
}
|
||||
@include m(danger) {
|
||||
background-color: $--color-danger;
|
||||
}
|
||||
@include m(info) {
|
||||
background-color: $--color-info;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(dot) {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
|
||||
@include e(timestamp) {
|
||||
color: $--color-text-secondary;
|
||||
line-height: 1;
|
||||
font-size: $--font-size-small;
|
||||
|
||||
@include when(top) {
|
||||
margin-bottom: 8px;
|
||||
padding-top: 4px;
|
||||
}
|
||||
@include when(bottom) {
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(timeline) {
|
||||
margin: 0;
|
||||
font-size: $--font-size-base;
|
||||
list-style: none;
|
||||
|
||||
& .el-timeline-item:last-child {
|
||||
& .el-timeline-item__tail {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(tooltip) {
|
||||
&:focus:not(.focusing), &:focus:hover {
|
||||
outline-width: 0;
|
||||
}
|
||||
@include e(popper) {
|
||||
position: absolute;
|
||||
border-radius: 4px;
|
||||
padding: $--tooltip-padding;
|
||||
z-index: $--index-popper;
|
||||
font-size: $--tooltip-font-size;
|
||||
line-height: 1.2;
|
||||
min-width: 10px;
|
||||
word-wrap: break-word;
|
||||
|
||||
.popper__arrow,
|
||||
.popper__arrow::after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.popper__arrow {
|
||||
border-width: $--tooltip-arrow-size;
|
||||
}
|
||||
|
||||
.popper__arrow::after {
|
||||
content: " ";
|
||||
border-width: 5px;
|
||||
}
|
||||
|
||||
&[x-placement^="top"] {
|
||||
margin-bottom: #{$--tooltip-arrow-size + 6px};
|
||||
}
|
||||
|
||||
&[x-placement^="top"] .popper__arrow {
|
||||
bottom: -$--tooltip-arrow-size;
|
||||
border-top-color: $--tooltip-border-color;
|
||||
border-bottom-width: 0;
|
||||
|
||||
&::after {
|
||||
bottom: 1px;
|
||||
margin-left: -5px;
|
||||
border-top-color: $--tooltip-fill;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[x-placement^="bottom"] {
|
||||
margin-top: #{$--tooltip-arrow-size + 6px};
|
||||
}
|
||||
|
||||
&[x-placement^="bottom"] .popper__arrow {
|
||||
top: -$--tooltip-arrow-size;
|
||||
border-top-width: 0;
|
||||
border-bottom-color: $--tooltip-border-color;
|
||||
|
||||
&::after {
|
||||
top: 1px;
|
||||
margin-left: -5px;
|
||||
border-top-width: 0;
|
||||
border-bottom-color: $--tooltip-fill;
|
||||
}
|
||||
}
|
||||
|
||||
&[x-placement^="right"] {
|
||||
margin-left: #{$--tooltip-arrow-size + 6px};
|
||||
}
|
||||
|
||||
&[x-placement^="right"] .popper__arrow {
|
||||
left: -$--tooltip-arrow-size;
|
||||
border-right-color: $--tooltip-border-color;
|
||||
border-left-width: 0;
|
||||
|
||||
&::after {
|
||||
bottom: -5px;
|
||||
left: 1px;
|
||||
border-right-color: $--tooltip-fill;
|
||||
border-left-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[x-placement^="left"] {
|
||||
margin-right: #{$--tooltip-arrow-size + 6px};
|
||||
}
|
||||
|
||||
&[x-placement^="left"] .popper__arrow {
|
||||
right: -$--tooltip-arrow-size;
|
||||
border-right-width: 0;
|
||||
border-left-color: $--tooltip-border-color;
|
||||
|
||||
&::after {
|
||||
right: 1px;
|
||||
bottom: -5px;
|
||||
margin-left: -5px;
|
||||
border-right-width: 0;
|
||||
border-left-color: $--tooltip-fill;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(dark) {
|
||||
background: $--tooltip-fill;
|
||||
color: $--tooltip-color;
|
||||
}
|
||||
|
||||
@include when(light) {
|
||||
background: $--tooltip-color;
|
||||
border: 1px solid $--tooltip-fill;
|
||||
|
||||
&[x-placement^="top"] .popper__arrow {
|
||||
border-top-color: $--tooltip-fill;
|
||||
&::after {
|
||||
border-top-color: $--tooltip-color;
|
||||
}
|
||||
}
|
||||
&[x-placement^="bottom"] .popper__arrow {
|
||||
border-bottom-color: $--tooltip-fill;
|
||||
&::after {
|
||||
border-bottom-color: $--tooltip-color;
|
||||
}
|
||||
}
|
||||
&[x-placement^="left"] .popper__arrow {
|
||||
border-left-color: $--tooltip-fill;
|
||||
&::after {
|
||||
border-left-color: $--tooltip-color;
|
||||
}
|
||||
}
|
||||
&[x-placement^="right"] .popper__arrow {
|
||||
border-right-color: $--tooltip-fill;
|
||||
&::after {
|
||||
border-right-color: $--tooltip-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+227
@@ -0,0 +1,227 @@
|
||||
@import "mixins/mixins";
|
||||
@import "mixins/utils";
|
||||
@import "common/var";
|
||||
@import "input";
|
||||
@import "button";
|
||||
@import "checkbox";
|
||||
@import "checkbox-group";
|
||||
|
||||
@include b(transfer) {
|
||||
font-size: $--font-size-base;
|
||||
|
||||
@include e(buttons) {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
padding: 0 30px;
|
||||
}
|
||||
|
||||
@include e(button) {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
border-radius: 50%;
|
||||
color: $--color-white;
|
||||
background-color: $--color-primary;
|
||||
font-size: 0;
|
||||
|
||||
@include when(with-texts) {
|
||||
border-radius: $--border-radius-base;
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
border: $--border-base;
|
||||
background-color: $--background-color-base;
|
||||
color: $--color-text-placeholder;
|
||||
|
||||
&:hover {
|
||||
border: $--border-base;
|
||||
background-color: $--background-color-base;
|
||||
color: $--color-text-placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
i, span {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
& [class*="el-icon-"] + span {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(transfer-panel) {
|
||||
border: 1px solid $--transfer-border-color;
|
||||
border-radius: $--transfer-border-radius;
|
||||
overflow: hidden;
|
||||
background: $--color-white;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: $--transfer-panel-width;
|
||||
max-height: 100%;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
|
||||
@include e(body) {
|
||||
height: $--transfer-panel-body-height;
|
||||
|
||||
@include when(with-footer) {
|
||||
padding-bottom: $--transfer-panel-footer-height;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(list) {
|
||||
margin: 0;
|
||||
padding: 6px 0;
|
||||
list-style: none;
|
||||
height: $--transfer-panel-body-height;
|
||||
overflow: auto;
|
||||
box-sizing: border-box;
|
||||
|
||||
@include when(filterable) {
|
||||
height: #{$--transfer-panel-body-height - $--transfer-filter-height - 20px};
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(item) {
|
||||
height: $--transfer-item-height;
|
||||
line-height: $--transfer-item-height;
|
||||
padding-left: 15px;
|
||||
display: block;
|
||||
|
||||
& + .el-transfer-panel__item {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&.el-checkbox {
|
||||
color: $--color-text-regular;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
&.el-checkbox .el-checkbox__label {
|
||||
width: 100%;
|
||||
@include utils-ellipsis;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
padding-left: 24px;
|
||||
line-height: $--transfer-item-height;
|
||||
}
|
||||
|
||||
.el-checkbox__input {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(filter) {
|
||||
text-align: center;
|
||||
margin: 15px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
width: auto;
|
||||
|
||||
.el-input__inner {
|
||||
height: $--transfer-filter-height;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
border-radius: #{$--transfer-filter-height / 2};
|
||||
padding-right: 10px;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
.el-input__icon {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.el-icon-circle-close {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.el-transfer-panel__header {
|
||||
height: $--transfer-panel-header-height;
|
||||
line-height: $--transfer-panel-header-height;
|
||||
background: $--transfer-panel-header-background;
|
||||
margin: 0;
|
||||
padding-left: 15px;
|
||||
border-bottom: 1px solid $--transfer-border-color;
|
||||
box-sizing: border-box;
|
||||
color: $--color-black;
|
||||
|
||||
.el-checkbox {
|
||||
display: block;
|
||||
line-height: 40px;
|
||||
|
||||
.el-checkbox__label {
|
||||
font-size: 16px;
|
||||
color: $--color-text-primary;
|
||||
font-weight: normal;
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
color: $--color-text-secondary;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-transfer-panel__footer {
|
||||
height: $--transfer-panel-footer-height;
|
||||
background: $--color-white;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-top: 1px solid $--transfer-border-color;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: $--index-normal;
|
||||
@include utils-vertical-center;
|
||||
|
||||
.el-checkbox {
|
||||
padding-left: 20px;
|
||||
color: $--color-text-regular;
|
||||
}
|
||||
}
|
||||
|
||||
.el-transfer-panel__empty {
|
||||
margin: 0;
|
||||
height: $--transfer-item-height;
|
||||
line-height: $--transfer-item-height;
|
||||
padding: 6px 15px 0;
|
||||
color: $--color-text-secondary;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.el-checkbox__label {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.el-checkbox__inner {
|
||||
height: 14px;
|
||||
width: 14px;
|
||||
border-radius: 3px;
|
||||
&::after {
|
||||
height: 6px;
|
||||
width: 3px;
|
||||
left: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
@import "common/transition";
|
||||
@import "checkbox";
|
||||
|
||||
@include b(tree) {
|
||||
position: relative;
|
||||
cursor: default;
|
||||
background: $--color-white;
|
||||
color: $--tree-text-color;
|
||||
|
||||
@include e(empty-block) {
|
||||
position: relative;
|
||||
min-height: 60px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@include e(empty-text) {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
|
||||
@include e(drop-indicator) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background-color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(tree-node) {
|
||||
white-space: nowrap;
|
||||
outline: none;
|
||||
&:focus { /* focus */
|
||||
> .el-tree-node__content {
|
||||
background-color: $--tree-node-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(drop-inner) {
|
||||
> .el-tree-node__content .el-tree-node__label {
|
||||
background-color: $--color-primary;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 26px;
|
||||
cursor: pointer;
|
||||
|
||||
& > .el-tree-node__expand-icon {
|
||||
padding: 6px;
|
||||
}
|
||||
& > .el-checkbox {
|
||||
margin-right: 8px;
|
||||
}
|
||||
&:hover {
|
||||
background-color: $--tree-node-hover-color;
|
||||
}
|
||||
|
||||
.el-tree.is-dragging & {
|
||||
cursor: move;
|
||||
|
||||
& * {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.el-tree.is-dragging.is-drop-not-allow & {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(expand-icon) {
|
||||
cursor: pointer;
|
||||
color: $--tree-expand-icon-color;
|
||||
font-size: 12px;
|
||||
|
||||
transform: rotate(0deg);
|
||||
transition: transform 0.3s ease-in-out;
|
||||
|
||||
&.expanded {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
&.is-leaf {
|
||||
color: transparent;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
font-size: $--font-size-base;
|
||||
}
|
||||
|
||||
@include e(loading-icon) {
|
||||
margin-right: 8px;
|
||||
font-size: $--font-size-base;
|
||||
color: $--tree-expand-icon-color;
|
||||
}
|
||||
|
||||
& > .el-tree-node__children {
|
||||
overflow: hidden;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&.is-expanded > .el-tree-node__children {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
|
||||
background-color: mix($--color-white, $--color-primary, 92%);
|
||||
}
|
||||
+602
@@ -0,0 +1,602 @@
|
||||
@import "mixins/mixins";
|
||||
@import "progress";
|
||||
@import "common/var";
|
||||
|
||||
@include b(upload) {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
@include e(input) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@include e(tip) {
|
||||
font-size: 12px;
|
||||
color: $--color-text-regular;
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
iframe {
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
}
|
||||
|
||||
/* 照片墙模式 */
|
||||
@include m(picture-card) {
|
||||
background-color: #fbfdff;
|
||||
border: 1px dashed #c0ccda;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
cursor: pointer;
|
||||
line-height: 146px;
|
||||
vertical-align: top;
|
||||
|
||||
i {
|
||||
font-size: 28px;
|
||||
color: #8c939d;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: $--color-primary;
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
&:focus {
|
||||
border-color: $--color-primary;
|
||||
color: $--color-primary;
|
||||
|
||||
.el-upload-dragger {
|
||||
border-color: $--color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(upload-dragger) {
|
||||
background-color: #fff;
|
||||
border: 1px dashed #d9d9d9;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
width: 360px;
|
||||
height: 180px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
.el-icon-upload {
|
||||
font-size: 67px;
|
||||
color: $--color-text-placeholder;
|
||||
margin: 40px 0 16px;
|
||||
line-height: 50px;
|
||||
}
|
||||
|
||||
+ .el-upload__tip {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
~ .el-upload__files {
|
||||
border-top: $--border-base;
|
||||
margin-top: 7px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.el-upload__text {
|
||||
color: $--color-text-regular;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
|
||||
em {
|
||||
color: $--color-primary;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: $--color-primary;
|
||||
}
|
||||
|
||||
@include when(dragover) {
|
||||
background-color: rgba(32, 159, 255, .06);
|
||||
border: 2px dashed $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(upload-list) {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
@include e(item) {
|
||||
transition: all .5s cubic-bezier(.55,0,.1,1);
|
||||
font-size: 14px;
|
||||
color: $--color-text-regular;
|
||||
line-height: 1.8;
|
||||
margin-top: 5px;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
border-radius: 4px;
|
||||
width: 100%;
|
||||
|
||||
.el-progress {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.el-progress__text {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: -13px;
|
||||
}
|
||||
|
||||
.el-progress-bar {
|
||||
margin-right: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
& .el-icon-upload-success {
|
||||
color: $--color-success;
|
||||
}
|
||||
|
||||
.el-icon-close {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
cursor: pointer;
|
||||
opacity: .75;
|
||||
color: $--color-text-regular;
|
||||
//transform: scale(.7);
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
& .el-icon-close-tip {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
opacity: 1;
|
||||
color: $--color-primary;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $--background-color-base;
|
||||
|
||||
.el-icon-close {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.el-progress__text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include when(success) {
|
||||
.el-upload-list__item-status-label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.el-upload-list__item-name:hover, .el-upload-list__item-name:focus {
|
||||
color: $--link-hover-color;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:focus:not(:hover) { /* 键盘focus */
|
||||
.el-icon-close-tip {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.focusing):focus, &:active { /* click时 */
|
||||
outline-width: 0;
|
||||
.el-icon-close-tip {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover, &:focus {
|
||||
.el-upload-list__item-status-label {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
.el-upload-list__item:hover .el-upload-list__item-status-label {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(item-name) {
|
||||
color: $--color-text-regular;
|
||||
display: block;
|
||||
margin-right: 40px;
|
||||
overflow: hidden;
|
||||
padding-left: 4px;
|
||||
text-overflow: ellipsis;
|
||||
transition: color .3s;
|
||||
white-space: nowrap;
|
||||
|
||||
[class^="el-icon"] {
|
||||
height: 100%;
|
||||
margin-right: 7px;
|
||||
color: $--color-text-secondary;
|
||||
line-height: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(item-status-label) {
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 0;
|
||||
line-height: inherit;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@include e(item-delete) {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 0;
|
||||
font-size: 12px;
|
||||
color: $--color-text-regular;
|
||||
display: none;
|
||||
|
||||
&:hover {
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@include m(picture-card) {
|
||||
margin: 0;
|
||||
display: inline;
|
||||
vertical-align: top;
|
||||
|
||||
.el-upload-list__item {
|
||||
overflow: hidden;
|
||||
background-color: #fff;
|
||||
border: 1px solid #c0ccda;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
margin: 0 8px 8px 0;
|
||||
display: inline-block;
|
||||
|
||||
.el-icon-check,
|
||||
.el-icon-circle-check {
|
||||
color: $--color-white;
|
||||
}
|
||||
|
||||
.el-icon-close {
|
||||
display: none;
|
||||
}
|
||||
&:hover {
|
||||
.el-upload-list__item-status-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.el-progress__text {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-upload-list__item-name {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.el-upload-list__item-thumbnail {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.el-upload-list__item-status-label {
|
||||
position: absolute;
|
||||
right: -15px;
|
||||
top: -6px;
|
||||
width: 40px;
|
||||
height: 24px;
|
||||
background: #13ce66;
|
||||
text-align: center;
|
||||
transform: rotate(45deg);
|
||||
box-shadow: 0 0 1pc 1px rgba(0,0,0,0.2);
|
||||
|
||||
i {
|
||||
font-size: 12px;
|
||||
margin-top: 11px;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
|
||||
.el-upload-list__item-actions {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
cursor: default;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
opacity: 0;
|
||||
font-size: 20px;
|
||||
background-color: rgba(0, 0, 0, .5);
|
||||
transition: opacity .3s;
|
||||
&::after {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
height: 100%;
|
||||
vertical-align: middle
|
||||
}
|
||||
|
||||
span {
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
span + span {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.el-upload-list__item-delete {
|
||||
position: static;
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
span {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-progress {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
bottom: auto;
|
||||
width: 126px;
|
||||
|
||||
.el-progress__text {
|
||||
top: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include m(picture) {
|
||||
.el-upload-list__item {
|
||||
overflow: hidden;
|
||||
z-index: 0;
|
||||
background-color: #fff;
|
||||
border: 1px solid #c0ccda;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
margin-top: 10px;
|
||||
padding: 10px 10px 10px 90px;
|
||||
height: 92px;
|
||||
|
||||
.el-icon-check,
|
||||
.el-icon-circle-check {
|
||||
color: $--color-white;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.el-upload-list__item-status-label {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
top: -2px;
|
||||
right: -12px;
|
||||
}
|
||||
|
||||
.el-progress__text {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-success {
|
||||
.el-upload-list__item-name {
|
||||
line-height: 70px;
|
||||
margin-top: 0;
|
||||
i {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-upload-list__item-thumbnail {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
float: left;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin-left: -80px;
|
||||
}
|
||||
|
||||
.el-upload-list__item-name {
|
||||
display: block;
|
||||
margin-top: 20px;
|
||||
|
||||
i {
|
||||
font-size: 70px;
|
||||
line-height: 1;
|
||||
position: absolute;
|
||||
left: 9px;
|
||||
top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.el-upload-list__item-status-label {
|
||||
position: absolute;
|
||||
right: -17px;
|
||||
top: -7px;
|
||||
width: 46px;
|
||||
height: 26px;
|
||||
background: #13ce66;
|
||||
text-align: center;
|
||||
transform: rotate(45deg);
|
||||
box-shadow: 0 1px 1px #ccc;
|
||||
|
||||
i {
|
||||
font-size: 12px;
|
||||
margin-top: 12px;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
|
||||
.el-progress {
|
||||
position: relative;
|
||||
top: -7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include b(upload-cover) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
cursor: default;
|
||||
@include utils-vertical-center;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
position: absolute;
|
||||
right: -15px;
|
||||
top: -6px;
|
||||
width: 40px;
|
||||
height: 24px;
|
||||
background: #13ce66;
|
||||
text-align: center;
|
||||
transform: rotate(45deg);
|
||||
box-shadow: 0 0 1pc 1px rgba(0,0,0,0.2);
|
||||
|
||||
i {
|
||||
font-size: 12px;
|
||||
margin-top: 11px;
|
||||
transform: rotate(-45deg);
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(progress) {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
position: static;
|
||||
width: 243px;
|
||||
|
||||
+ .el-upload__inner {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@include e(interact) {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(#000, .72);
|
||||
text-align: center;
|
||||
|
||||
.btn {
|
||||
display: inline-block;
|
||||
color: $--color-white;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
transition: $--md-fade-transition;
|
||||
margin-top: 60px;
|
||||
|
||||
i {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
span {
|
||||
opacity: 0;
|
||||
transition: opacity .15s linear;
|
||||
}
|
||||
|
||||
&:not(:first-child) {
|
||||
margin-left: 35px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-13px);
|
||||
|
||||
span {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
color: $--color-white;
|
||||
display: block;
|
||||
font-size: 24px;
|
||||
line-height: inherit;
|
||||
margin: 0 auto 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include e(title) {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: $--color-white;
|
||||
height: 36px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
padding: 0 10px;
|
||||
margin: 0;
|
||||
line-height: 36px;
|
||||
font-size: 14px;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
|
||||
+ .el-upload__inner {
|
||||
opacity: 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user