You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
reagent_manage/vue/src/assets/styles/element-ui.scss

255 lines
4.4 KiB

6 years ago
// cover some element-ui styles
.el-button {
[class*="el-icon-"] + span {
margin-left: 7px;
}
//按钮新增类型type=dashed
&.el-button--dashed {
border-style: dashed;
}
&.el-button--small {
font-size: 14px;
padding: 8px 15px;
&.is-circle {
padding: 8px;
}
}
}
.el-form {
.el-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
}
.el-table {
thead {
color: rgba(0, 0, 0, .85)
}
thead > tr > th {
background: #fbfbfb;
}
.el-table__body tr.current-row > td {
background-color: $--color-primary;
color: #fff;
.el-table__expand-icon {
color: #fff;
}
}
}
.el-pagination {
padding-top: 20px;
6 years ago
}
.el-scrollbar {
height: 100%;
}
.el-tree {
&.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
background-color: $--color-primary;
color: #fff;
}
}
.el-select {
width: 100%;
}
.el-message {
@include deep-shadow;
border-width: 0;
overflow: visible;
&__badge {
animation: el-message-badge .42s;
padding: 4px 8px;
position: absolute;
box-shadow: 0 1px 3px rgba(#000, .2), 0 1px 1px rgba(#000, .14), 0 2px 1px -1px rgba(#000, .12);
background-color: $--color-danger;
color: #fff;
border-radius: 4px;
top: -10px;
left: -10px;
font-size: 12px;
line-height: 12px;
}
6 years ago
&__progress {
z-index: -1;
position: absolute;
height: 3px;
bottom: 0;
left: 10px;
right: 10px;
animation: el-message-progress linear;
background: currentColor;
opacity: .3;
transform-origin: 0 50%;
transform: scaleX(0);
}
6 years ago
.el-message__icon, .el-message__content {
color: #fff !important;
}
&.el-message--success {
background: $--color-success;
}
&.el-message--info {
background: $--color-primary;
}
&.el-message--warning {
background: $--color-warning;
}
&.el-message--error {
background: $--color-danger;
}
}
.el-message-box {
position: relative;
@include deep-shadow;
}
.el-notification {
@include deep-shadow;
.el-notification__icon.el-icon-info {
color: $--color-primary;
}
}
.el-card {
.el-card__body {
height: 100%;
}
.el-card__header + .el-card__body {
height: calc(100% - 55px);
}
}
.el-dialog {
@include deep-shadow;
margin-bottom: 0;
min-width: 384px;
6 years ago
.el-dialog__header {
border-bottom: 1px solid #ebeef5;
padding: 17px;
.el-dialog__title {
line-height: inherit;
color: inherit;
font-size: inherit;
}
.el-dialog__headerbtn {
top: 18px;
}
}
.el-dialog__footer {
border-top: 1px solid #ebeef5;
padding: 10px 16px;
}
.el-scrollbar__wrap {
//53 for dialog header,53 for dialog footer,100 for up+down
max-height: calc(100vh - 53px - 53px - 100px);
}
}
.el-timeline {
padding-left: 1px;
.el-timeline__empty {
margin: 0 auto;
text-align: center;
}
.el-timeline-item__tail {
left: 5px;
}
.el-timeline-item__node--normal {
left: 0;
}
.el-scrollbar__wrap {
overflow-x: hidden;
}
}
.el-textarea {
.el-input__count {
background: transparent;
}
}
.el-pagination {
text-align: right;
.el-pagination__editor.el-input {
margin: 0 5px;
}
}
.el-loading-mask {
background: #fff;
color: $--color-primary;
}
.el-date-editor.el-input,
.el-date-editor--daterange {
width: 100% !important;
}
@keyframes el-message-badge {
15% {
transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)
}
30% {
transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)
}
45% {
transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)
}
60% {
transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)
}
75% {
transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)
}
}
@keyframes el-message-progress {
0% {
transform: scaleX(1)
}
100% {
transform: scaleX(0)
}
}
6 years ago