iep-ui
Version:
An enterprise-class UI design language and Vue-based implementation
357 lines (356 loc) • 8.12 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;
}
.ant-date-progress-slider {
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
height: 90px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.5);
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
padding: 5px 20px;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 100%;
transition: all 0.3s;
}
.ant-date-progress-slider-light {
background: rgba(255, 255, 255, 0.5);
transition: all 0.3s;
border: 1px solid #e5e5e5;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}
.ant-date-progress-slider-part {
height: 120px;
}
.ant-date-progress-slider .ant-iep-slider {
background: transparent ;
border: none;
box-shadow: none;
padding: 0;
}
.ant-iep-slider {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
height: 43px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.5);
padding: 2px 20px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 0 12px;
}
.ant-iep-slider-part {
height: 73px;
}
.ant-iep-slider-part .ant-iep-slider-right {
position: relative;
}
.ant-iep-slider-light {
background: rgba(255, 255, 255, 0.5);
transition: all 0.3s;
border: 1px solid #e5e5e5;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}
.ant-iep-slider-light .ant-iep-slider-right .ant-slider-mark-text {
color: #212121;
}
.ant-iep-slider-light .ant-slider-rail {
background: rgba(229, 229, 229, 0.5);
}
.ant-iep-slider-light .ant-slider-dot {
background: transparent ;
border-color: rgba(229, 229, 229, 0.5) ;
}
.ant-iep-slider .ant-slider-mark-text:first-child {
transform: translateX(-22%) ;
}
.ant-iep-slider .ant-slider-mark-text:last-child {
transform: translateX(-90%) ;
}
.ant-iep-slider-reset {
background: transparent;
padding: 0;
}
.ant-iep-slider-left {
width: 30px;
height: 30px;
border-radius: 4px;
background: rgba(15, 110, 255, 0.9);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.ant-iep-slider-left .anticon {
font-size: 14px;
color: #fff;
}
.ant-iep-slider-right {
flex: 1;
height: 100%;
}
.ant-iep-slider-right .ant-slider-mark-text {
line-height: 1;
font-size: 12px;
color: #fff;
white-space: nowrap;
}
.ant-iep-slider-right-part {
position: absolute;
top: 24px;
left: 6px;
bottom: 0;
right: 6px;
}
.ant-iep-slider-right-part-core {
display: flex;
justify-content: flex-start;
align-items: center;
height: 100%;
position: relative;
border-right: 2px solid rgba(229, 229, 229, 0.5);
}
.ant-iep-slider-right-part-cell {
display: flex;
justify-content: center;
align-items: flex-end;
position: absolute;
height: 100%;
gap: 0 20px;
border-left: 2px solid rgba(229, 229, 229, 0.5);
}
.ant-iep-slider-right-part-cell span {
font-weight: 400;
font-size: 12px;
color: #fff;
}
.ant-iep-slider .ant-slider-track {
height: 2px;
}
.ant-iep-slider .ant-slider-step {
height: 2px;
}
.ant-iep-slider .ant-slider:hover .ant-slider-rail {
background: rgba(153, 153, 153, 0.35);
}
.ant-iep-slider .ant-slider-rail {
height: 2px;
background: rgba(229, 229, 229, 0.5);
}
.ant-iep-slider .ant-slider-dot {
position: absolute;
top: 2px;
width: 0;
height: 8px;
margin-left: 0;
background-color: transparent;
border: 1px solid rgba(229, 229, 229, 0.5);
border-radius: 0;
cursor: pointer;
}
.ant-iep-slider .ant-slider-dot:last-child {
margin-left: -2px;
}
.ant-iep-slider .ant-slider-dot-active {
background: #0F6EFF ;
border-color: #0F6EFF ;
}
.ant-iep-slider .ant-slider-track {
background: #0F6EFF;
}
.ant-iep-slider:hover .ant-slider-track {
background: #0F6EFF;
}
.ant-iep-slider .ant-slider-handle {
width: 10px;
height: 10px;
margin-top: -4px;
margin-left: 0;
position: absolute;
border: solid 3px #0F6EFF;
}
.ant-panel-picker {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
height: calc(100px - 63px);
display: flex;
justify-content: flex-start;
align-items: center;
gap: 0 20px;
width: 100%;
}
.ant-panel-picker-left {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 0 2px;
}
.ant-panel-picker-left-item {
color: #fff;
cursor: pointer;
padding: 0 10px;
position: relative;
}
.ant-panel-picker-left-item::after {
content: "";
width: 1px;
position: absolute;
top: 50%;
z-index: 1;
left: 0;
height: 60%;
transform: translateY(-50%);
background: rgba(229, 229, 229, 0.5);
}
.ant-panel-picker-left-item:first-child {
padding-left: 0;
}
.ant-panel-picker-left-item:first-child:after {
width: 0;
}
.ant-panel-picker-left-item-active .anticon {
color: #0F6EFF;
margin-right: 2px;
}
.ant-panel-picker-left-item-active span {
color: #0F6EFF;
}
.ant-panel-picker-right {
display: flex;
justify-content: space-between;
align-items: center;
min-width: 180px;
background: rgba(255, 255, 255, 0.12);
padding: 0 10px;
border-radius: 4px;
}
.ant-panel-picker-day-right {
width: 260px;
}
.ant-panel-picker-week-right {
width: 200px;
}
.ant-panel-picker .ant-input {
background: transparent;
border-color: transparent;
color: #fff;
}
.ant-panel-picker .ant-calendar-range-picker-separator {
color: #fff;
}
.ant-panel-picker .ant-calendar-picker:hover .ant-calendar-picker-input:not(.ant-input-disabled) {
border: none;
}
.ant-panel-picker .basic_linear_common_calendar {
color: #fff;
}
.ant-panel-picker-light .ant-panel-picker-left-item {
color: #212121;
}
.ant-panel-picker-light .ant-input {
background: transparent;
border-color: transparent;
color: #212121;
}
.ant-panel-picker-light .ant-calendar-range-picker-separator {
color: #212121;
}
.ant-panel-picker-light .basic_linear_common_calendar {
color: #212121;
}
.ant-iep-slider {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
}
.ant-iep-slider-right-slider {
position: relative;
}
.ant-iep-slider-small-tip {
position: absolute;
top: -20px;
background: var(--antd-wave-shadow-color);
color: #fff;
border-radius: 4px;
line-height: 1;
padding: 4px 6px;
width: var(--width);
box-sizing: border-box;
left: calc(var(--left) - var(--bisect));
}
.ant-iep-slider-small-tip-core {
text-align: center;
}
.ant-iep-slider-small-tip-core:before {
content: '';
position: absolute;
display: block;
width: 8px;
z-index: -1;
height: 8px;
background: transparent;
border-style: solid;
border-color: var(--antd-wave-shadow-color);
border-width: 4px;
left: 50%;
bottom: -3px;
transform: translateX(-50%) rotate(45deg);
}
.ant-iep-slider-small-tip span {
font-size: 12px;
position: relative;
}