ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
292 lines (291 loc) • 6.71 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 */
.ant-slider {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5;
list-style: none;
font-feature-settings: 'tnum';
position: relative;
height: 12px;
margin: 14px 6px 10px;
padding: 4px 0;
cursor: pointer;
touch-action: none;
}
.ant-slider-vertical {
width: 12px;
height: 100%;
margin: 6px 10px;
padding: 0 4px;
}
.ant-slider-vertical .ant-slider-rail {
width: 4px;
height: 100%;
}
.ant-slider-vertical .ant-slider-track {
width: 4px;
}
.ant-slider-vertical .ant-slider-handle {
margin-bottom: -7px;
margin-left: -5px;
}
.ant-slider-vertical .ant-slider-mark {
top: 0;
left: 12px;
width: 18px;
height: 100%;
}
.ant-slider-vertical .ant-slider-mark-text {
left: 4px;
white-space: nowrap;
}
.ant-slider-vertical .ant-slider-step {
width: 4px;
height: 100%;
}
.ant-slider-vertical .ant-slider-dot {
top: auto;
left: 2px;
margin-bottom: -4px;
}
.ant-slider-with-marks {
margin-bottom: 28px;
}
.ant-slider-rail {
position: absolute;
width: 100%;
height: 4px;
background-color: #f5f5f5;
border-radius: 2px;
transition: background-color 0.3s;
}
.ant-slider-track {
position: absolute;
height: 4px;
background-color: #91d5ff;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.ant-slider-handle {
position: absolute;
width: 14px;
height: 14px;
margin-top: -5px;
margin-left: -7px;
background-color: #fff;
border: solid 2px #91d5ff;
border-radius: 50%;
box-shadow: 0;
cursor: pointer;
transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.ant-slider-handle:focus {
border-color: #46a6ff;
outline: none;
box-shadow: 0 0 0 5px rgba(24, 144, 255, 0.2);
}
.ant-slider-handle.ant-tooltip-open {
border-color: #1890ff;
}
.ant-slider:hover .ant-slider-rail {
background-color: #e1e1e1;
}
.ant-slider:hover .ant-slider-track {
background-color: #69c0ff;
}
.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) {
border-color: #69c0ff;
}
.ant-slider-mark {
position: absolute;
top: 14px;
left: 0;
width: 100%;
font-size: 14px;
}
.ant-slider-mark-text {
position: absolute;
display: inline-block;
color: rgba(0, 0, 0, 0.45);
text-align: center;
cursor: pointer;
}
.ant-slider-mark-text-active {
color: rgba(0, 0, 0, 0.65);
}
.ant-slider-step {
position: absolute;
width: 100%;
height: 4px;
background: transparent;
}
.ant-slider-dot {
position: absolute;
top: -2px;
width: 8px;
height: 8px;
margin-left: -4px;
background-color: #fff;
border: 2px solid #e8e8e8;
border-radius: 50%;
cursor: pointer;
}
.ant-slider-dot:first-child {
margin-left: -4px;
}
.ant-slider-dot:last-child {
margin-left: -4px;
}
.ant-slider-dot-active {
border-color: #8cc8ff;
}
.ant-slider-disabled {
cursor: not-allowed;
}
.ant-slider-disabled .ant-slider-track {
background-color: rgba(0, 0, 0, 0.25) ;
}
.ant-slider-disabled .ant-slider-handle,
.ant-slider-disabled .ant-slider-dot {
background-color: #fff;
border-color: rgba(0, 0, 0, 0.25) ;
box-shadow: none;
cursor: not-allowed;
}
.ant-slider-disabled .ant-slider-mark-text,
.ant-slider-disabled .ant-slider-dot {
cursor: not-allowed ;
}
.ant-tooltip {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5;
list-style: none;
font-feature-settings: 'tnum';
position: absolute;
z-index: 1060;
display: block;
max-width: 250px;
visibility: visible;
}
.ant-tooltip-hidden {
display: none;
}
.ant-tooltip-placement-top,
.ant-tooltip-placement-topLeft,
.ant-tooltip-placement-topRight {
padding-bottom: 8px;
}
.ant-tooltip-placement-right,
.ant-tooltip-placement-rightTop,
.ant-tooltip-placement-rightBottom {
padding-left: 8px;
}
.ant-tooltip-placement-bottom,
.ant-tooltip-placement-bottomLeft,
.ant-tooltip-placement-bottomRight {
padding-top: 8px;
}
.ant-tooltip-placement-left,
.ant-tooltip-placement-leftTop,
.ant-tooltip-placement-leftBottom {
padding-right: 8px;
}
.ant-tooltip-inner {
min-width: 30px;
min-height: 32px;
padding: 6px 8px;
color: #fff;
text-align: left;
text-decoration: none;
word-wrap: break-word;
background-color: rgba(0, 0, 0, 0.75);
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.ant-tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-color: transparent;
}
.ant-tooltip-placement-top .ant-tooltip-arrow,
.ant-tooltip-placement-topLeft .ant-tooltip-arrow,
.ant-tooltip-placement-topRight .ant-tooltip-arrow {
bottom: 3px;
border-width: 5px 5px 0;
border-top-color: rgba(0, 0, 0, 0.75);
}
.ant-tooltip-placement-top .ant-tooltip-arrow {
left: 50%;
margin-left: -5px;
}
.ant-tooltip-placement-topLeft .ant-tooltip-arrow {
left: 16px;
}
.ant-tooltip-placement-topRight .ant-tooltip-arrow {
right: 16px;
}
.ant-tooltip-placement-right .ant-tooltip-arrow,
.ant-tooltip-placement-rightTop .ant-tooltip-arrow,
.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {
left: 3px;
border-width: 5px 5px 5px 0;
border-right-color: rgba(0, 0, 0, 0.75);
}
.ant-tooltip-placement-right .ant-tooltip-arrow {
top: 50%;
margin-top: -5px;
}
.ant-tooltip-placement-rightTop .ant-tooltip-arrow {
top: 8px;
}
.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {
bottom: 8px;
}
.ant-tooltip-placement-left .ant-tooltip-arrow,
.ant-tooltip-placement-leftTop .ant-tooltip-arrow,
.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {
right: 3px;
border-width: 5px 0 5px 5px;
border-left-color: rgba(0, 0, 0, 0.75);
}
.ant-tooltip-placement-left .ant-tooltip-arrow {
top: 50%;
margin-top: -5px;
}
.ant-tooltip-placement-leftTop .ant-tooltip-arrow {
top: 8px;
}
.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {
bottom: 8px;
}
.ant-tooltip-placement-bottom .ant-tooltip-arrow,
.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,
.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {
top: 3px;
border-width: 0 5px 5px;
border-bottom-color: rgba(0, 0, 0, 0.75);
}
.ant-tooltip-placement-bottom .ant-tooltip-arrow {
left: 50%;
margin-left: -5px;
}
.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow {
left: 16px;
}
.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {
right: 16px;
}