UNPKG

iep-ui

Version:

An enterprise-class UI design language and Vue-based implementation

379 lines (334 loc) 7.2 kB
@import '../../style/themes/index'; @import '../../style/mixins/index'; @progress-prefix-cls: ~'@{ant-prefix}-date-progress-slider'; @slider-prefix-cls: ~'@{ant-prefix}-iep-slider'; @picker-prefix-cls: ~'@{ant-prefix}-panel-picker'; .@{progress-prefix-cls} { .reset-component; height: 90px; border-radius: @border-radius-base; background: fade(#000, 50%); backdrop-filter: blur(4px); padding: 5px 20px; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; transition: all 0.3s; &-light { background: fade(#fff, 50%); transition: all 0.3s; border: 1px solid #e5e5e5; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08); } &-part { height: 120px; } .@{slider-prefix-cls} { background: transparent !important; border: none; box-shadow: none; padding: 0; } } .@{slider-prefix-cls} { .reset-component; height: 43px; border-radius: @border-radius-base; background: fade(#000, 50%); padding: 2px 20px; display: flex; justify-content: space-between; align-items: center; gap: 0 12px; &-part { height: 73px; .@{slider-prefix-cls} { &-right { position: relative; } } } &-light { background: fade(#fff, 50%); transition: all 0.3s; border: 1px solid #e5e5e5; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08); .ant-iep-slider-right .ant-slider-mark-text { color: #212121; } .ant-slider-rail { background: fade(#E5E5E5, 50%); } .ant-slider-dot { background: transparent !important; border-color: fade(#E5E5E5, 50%) !important; } } .ant-slider-mark { &-text { &:first-child { transform: translateX(-22%) !important; } &:last-child { transform: translateX(-90%) !important; } } } &-reset { background: transparent; padding: 0; } &-left { width: 30px; height: 30px; border-radius: @border-radius-base; background: fade(@primary-color, 90%); display: flex; justify-content: center; align-items: center; cursor: pointer; .anticon { font-size: 14px; color: #fff; } } &-right { flex: 1; height: 100%; .ant-slider-mark-text { line-height: 1; font-size: 12px; color: #fff; white-space: nowrap; } &-part { position: absolute; top: 24px; left: 6px; bottom: 0; right: 6px; &-core { display: flex; justify-content: flex-start; align-items: center; height: 100%; position: relative; border-right: 2px solid rgba(229, 229, 229, 0.5); //&::before { // content: ""; // position: absolute; // background: rgba(229, 229, 229, 0.5); // width: 2px; // height: 100%; // left: 0; //} //&::after { // content: ""; // position: absolute; // background: rgba(229, 229, 229, 0.5); // width: 2px; // height: 100%; // right: 0; //} } &-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); span { font-weight: 400; font-size: 12px; color: #fff; } } } } .ant-slider-track { height: 2px; } .ant-slider-step { height: 2px; } .ant-slider { &:hover { .ant-slider-rail { background: fade(#999, 35%); } } } .ant-slider-rail { height: 2px; background: fade(#E5E5E5, 50%); } .ant-slider-dot { position: absolute; top: 2px; width: 0; height: 8px; margin-left: 0; background-color: transparent; border: 1px solid fade(#E5E5E5, 50%); border-radius: 0; cursor: pointer; } .ant-slider-dot:last-child { margin-left: -2px; } .ant-slider-dot-active { background: @primary-color !important; border-color: @primary-color !important; } .ant-slider-track { background: @primary-color; } &:hover { .ant-slider-track { background: @primary-color; } } .ant-slider-handle { width: 10px; height: 10px; margin-top: -4px; margin-left: 0; position: absolute; border: solid 3px @primary-color; } } .@{picker-prefix-cls} { .reset-component; height: calc(100px - 63px); display: flex; justify-content: flex-start; align-items: center; gap: 0 20px; width: 100%; &-left { display: flex; justify-content: flex-start; align-items: center; gap: 0 2px; &-item { color: #fff; cursor: pointer; padding: 0 10px; position: relative; &::after { content: ""; width: 1px; position: absolute; top: 50%; z-index: 1; left: 0; height: 60%; transform: translateY(-50%); background: fade(#E5E5E5, 50%); } &:first-child { padding-left: 0; &:after { width: 0; } } &-active { .anticon { color: @primary-color; margin-right: 2px; } span { color: @primary-color; } } } } &-right { display: flex; justify-content: space-between; align-items: center; min-width: 180px; background: fade(#fff, 12%); padding: 0 10px; border-radius: 4px; } &-day-right { width: 260px; } &-week-right { width: 200px; } .ant-input { background: transparent; border-color: transparent; color: #fff; } .ant-calendar-range-picker-separator { color: #fff; } .ant-calendar-picker:hover .ant-calendar-picker-input:not(.ant-input-disabled) { border: none; } .basic_linear_common_calendar { color: #fff; } &-light { .@{picker-prefix-cls}-left-item { color: #212121; } .ant-input { background: transparent; border-color: transparent; color: #212121; } .ant-calendar-range-picker-separator { color: #212121; } .basic_linear_common_calendar { color: #212121; } } } .@{slider-prefix-cls} { .reset-component; &-right-slider { position: relative; } &-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)); &-core { text-align: center; &: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); } } span { font-size: 12px; position: relative; } } }