iep-ui
Version:
An enterprise-class UI design language and Vue-based implementation
294 lines (293 loc) • 6.73 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
width: 6px;
background-color: transparent;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
-webkit-box-shadow: none;
border-radius: 4px;
background-color: transparent;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
border-radius: 6px;
-webkit-box-shadow: none;
background-color: rgba(144, 147, 153, 0.3);
}
/*定义最上方和最下方的按钮*/
::-webkit-scrollbar-button {
display: none;
background-color: #252540;
border: 1px solid #252540;
}
@font-face {
font-family: 'Microsoft YaHei Bold';
src: url('https://iotobject.rockontrol.com/daqilianfangliankong/iep-ui%2Fone.woff2') format('woff2');
}
.ant-iep-business-block {
background: #071e60;
margin-bottom: 10px;
border-radius: 4px;
padding: 10px;
box-sizing: content-box;
overflow: hidden;
}
.ant-iep-business-block-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.ant-iep-business-block-header-left span {
font-family: 'Microsoft YaHei Bold';
color: #00cbff;
position: relative;
font-weight: bold;
font-size: 14px;
letter-spacing: 1px;
padding: 2px 0 2px 14px;
}
.ant-iep-business-block-header-left span::before {
content: '';
width: 0;
height: 90%;
border-left: 3.2px solid #00ffd8;
border-radius: 4px;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
}
.ant-iep-business-block-footer {
margin-top: 12px;
}
.ant-iep-business-block-weather {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
padding: 14px;
box-sizing: content-box;
gap: 40px;
}
.ant-iep-business-block-weather-item {
display: flex;
justify-content: flex-start;
align-items: center;
}
.ant-iep-business-block-weather-item-left {
position: relative;
width: 60px;
height: 68px;
}
.ant-iep-business-block-weather-item-left span {
position: absolute;
top: 18px;
left: 50%;
transform: translateX(-50%);
font-weight: bold;
color: #00ebff;
font-size: 22px;
}
.ant-iep-business-block-weather-item-left .iep-business-icon:first-child {
position: absolute;
top: 18px;
left: 50%;
transform: translateX(-50%);
}
.ant-iep-business-block-weather-item-left .iep-business-icon:last-child {
position: absolute;
bottom: -12px;
}
.ant-iep-business-block-weather-item-left .iep-business-icon:last-child svg {
width: 60px;
height: 50px;
}
.ant-iep-business-block-weather-item-right {
padding-left: 20px;
}
.ant-iep-business-block-weather-item-right-top span {
font-size: 14px;
color: #fff;
white-space: nowrap;
}
.ant-iep-business-block-weather-item-right-bottom {
margin-top: 12px;
display: flex;
justify-content: flex-start;
align-items: flex-end;
}
.ant-iep-business-block-weather-item-right-bottom .num {
font-size: 36px;
letter-spacing: 0;
margin: var(--margin);
color: var(--numberColor);
line-height: 0.8;
font-family: 'Microsoft YaHei Bold';
font-weight: 600;
}
.ant-iep-business-block-weather-item-right-bottom .text {
font-size: 12px;
color: var(--textColor);
}
.ant-iep-business-block-rank {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
padding: 14px;
box-sizing: content-box;
gap: 20px;
position: relative;
}
.ant-iep-business-block-rank-empty {
grid-template-columns: 1fr;
grid-template-rows: 1fr;
}
.ant-iep-business-block-rank-item {
border: 1px solid rgba(0, 192, 255, 0.3);
border-radius: 4px;
background: rgba(0, 92, 172, 0.1);
padding: 16px 30px;
box-sizing: content-box;
display: flex;
flex-direction: column;
gap: 12px 0;
}
.ant-iep-business-block-rank-item-cell {
display: flex;
justify-content: flex-start;
align-items: flex-end;
}
.ant-iep-business-block-rank-item .label {
color: #fff;
font-size: 14px;
display: inline-block;
width: 60px;
}
.ant-iep-business-block-rank-item .number {
font-family: 'Microsoft YaHei Bold';
margin-left: 10px;
font-weight: 400;
font-size: 28px;
color: #00ebff;
line-height: 0.8;
}
.ant-iep-business-block-rank-item .unit {
font-family: 'Microsoft YaHei Bold';
font-size: 12px;
color: #00ebff;
margin-left: 4px;
}
.ant-iep-business-block-rank-mark {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
overflow: hidden;
}
.ant-iep-business-block-rank-mark-inner {
height: 100%;
width: 100%;
position: relative;
}
.ant-iep-business-block-rank-mark-circle {
width: 88px;
height: 88px;
position: absolute;
top: 50%;
left: 50%;
border: 1px solid rgba(0, 192, 255, 0.3);
background: #071e60;
transform: translate(-50%, -50%);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.ant-iep-business-block-rank-mark-row {
width: 100%;
height: 20px;
background: #071e60;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 1;
}
.ant-iep-business-block-rank-mark-column {
width: 20px;
height: 100%;
background: #071e60;
position: absolute;
left: 50%;
transform: translateX(-50%);
z-index: 1;
}
.ant-iep-business-block-rank-mark-core {
width: 66px;
height: 66px;
position: absolute;
top: 50%;
left: 50%;
border: 1px solid rgba(0, 192, 255, 0.3);
background: rgba(0, 92, 172, 0.1);
transform: translate(-50%, -50%);
border-radius: 50%;
z-index: 3;
}
.ant-iep-business-block-rank-mark-chart {
width: 68px;
height: 68px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
z-index: 3;
}
.ant-iep-business-block-rank-mark-chart svg {
width: 68px;
height: 68px;
}
.ant-iep-business-block-rank-mark-chart {
width: 52px;
height: 52px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
}
.ant-iep-business-block-rank-mark-chart svg {
width: 52px;
height: 52px;
}
.ant-iep-business-block-rank-mark-line {
width: 52px;
height: 52px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
border: 1px solid rgba(0, 192, 255, 0.3);
box-sizing: content-box;
z-index: 5;
}
.ant-iep-business-block-rank-mark-line svg {
width: 53px;
height: 53px;
animation: circleRotate infinite linear 1000ms;
}
@keyframes circleRotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}