@linkdesign/screen
Version:
屏组件库,但使用场景又不局限于屏。主要用于BI、大盘和屏
89 lines (75 loc) • 1.47 kB
text/less
@import '../_variables';
@import '../_mixins';
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes flicker {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.@{prefix}radar-tip {
display: inline-flex;
align-items: center;
padding: 10px 20px 10px 10px;
border-radius: 40px;
background-color: var(--screen-fill2-1);
&.@{prefix}without-time {
border-radius: 35px;
.@{prefix}left {
width: 30px;
height: 30px;
}
.@{prefix}tip {
font-size: 12px;
}
}
.@{prefix}left {
width: 50px;
height: 50px;
background-repeat: no-repeat;
background-position: center;
background-size: 100%;
img {
width: 100%;
animation: rotate 6s linear 0s infinite;
}
}
.@{prefix}right {
display: flex;
align-items: flex-start;
flex-direction: column;
justify-content: center;
margin-left: 12px;
}
.@{prefix}tip {
display: inline-flex;
align-items: center;
color: var(--screen-text2-1);
font-weight: 700;
font-size: 16px;
line-height: 22px;
.@{prefix}dot {
display: inline-block;
margin-left: 8px;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #f00;
animation: flicker 2s linear 2s infinite;
}
}
.@{prefix}timer {
color: var(--screen-text2-2);
font-size: 12px;
line-height: 14px;
}
}