mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
89fbbff6bb
* faeture:[amis-saas-10190]主题组件TAG开发 * faeture:[amis-saas-10190]主题组件TAG开发 * faeture:[amis-saas-10190]修改生成tag字段大小写 * faeture:[amis-saas-10190]修改tag配置 * faeture:[amis-saas-10191]status状态主题组件开发 --------- Co-authored-by: zhangzheyu02 <zhangzheyu02@baidu.com>
119 lines
2.3 KiB
SCSS
119 lines
2.3 KiB
SCSS
.#{$ns}StatusField {
|
|
vertical-align: middle;
|
|
white-space: nowrap;
|
|
display: inline-flex;
|
|
flex-wrap: nowrap;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
|
|
&-label {
|
|
font-size: var(--Status-font-size);
|
|
margin-left: var(--Status-font-margin);
|
|
}
|
|
|
|
@keyframes animation-rolling_red {
|
|
0% {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes animation-rolling_blue {
|
|
0% {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateX(-20px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
svg.#{$ns}Status-icon {
|
|
width: var(--Status-icon-width);
|
|
height: var(--Status-icon-height);
|
|
top: 0;
|
|
}
|
|
|
|
.#{$ns}Status-icon {
|
|
&.rolling {
|
|
width: 30px;
|
|
height: 10px;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
|
|
&::before {
|
|
content: '';
|
|
display: inline-block;
|
|
border: 5px solid var(--Status-pending-beforeColor);
|
|
border-radius: 500px;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
animation: animation-rolling_red 2s;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
display: inline-block;
|
|
border: 5px solid var(--Status-pending-afterColor);
|
|
border-radius: 500px;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 20px;
|
|
|
|
animation: animation-rolling_blue 2s;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
}
|
|
|
|
&.icon-warning {
|
|
color: var(--Status-warning-color);
|
|
}
|
|
|
|
&.icon-fail {
|
|
color: var(--Status-fail-color)
|
|
}
|
|
|
|
&.icon-success {
|
|
color: var(--Status-success-color)
|
|
}
|
|
|
|
&.icon-schedule {
|
|
color: var(--Status-schedule-color)
|
|
}
|
|
}
|
|
|
|
.#{$ns}Status-icon.rolling + &-label {
|
|
color: var(--Status-warning-color);
|
|
}
|
|
|
|
.#{$ns}Status-icon.icon-success + &-label {
|
|
color: var(--Status-success-color);
|
|
}
|
|
|
|
.#{$ns}Status-icon.icon-fail + &-label {
|
|
color: var(--Status-fail-color);
|
|
}
|
|
|
|
.#{$ns}Status-icon.icon-warning + &-label {
|
|
color: var(--Status-warning-color);
|
|
}
|
|
|
|
.#{$ns}Status-icon.icon-schedule + &-label {
|
|
color: var(--Status-schedule-color);
|
|
}
|
|
}
|