@orca-fe/pocket
Version:
UI components by orca-team
9 lines (8 loc) • 6.57 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _tools = require("@orca-fe/tools");
var prefixCls = 'orca-slider';
var _default = exports.default = (0, _tools.createUseStaticCss)("\n.".concat(prefixCls, " {\n position: relative;\n width: 100%;\n height: 14px;\n padding: 5px 0;\n border-radius: 6px;\n touch-action: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.").concat(prefixCls, " * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.").concat(prefixCls, "-rail {\n position: absolute;\n width: 100%;\n height: 4px;\n background-color: #e9e9e9;\n border-radius: 6px;\n}\n.").concat(prefixCls, "-track {\n position: absolute;\n height: 4px;\n background-color: #abe2fb;\n border-radius: 6px;\n}\n.").concat(prefixCls, "-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n margin-top: -5px;\n background-color: #fff;\n border: solid 2px #96dbfa;\n border-radius: 50%;\n cursor: pointer;\n cursor: -webkit-grab;\n cursor: grab;\n opacity: 0.8;\n touch-action: pan-x;\n}\n.").concat(prefixCls, "-handle-dragging.").concat(prefixCls, "-handle-dragging.").concat(prefixCls, "-handle-dragging {\n border-color: #57c5f7;\n box-shadow: 0 0 0 5px #96dbfa;\n}\n.").concat(prefixCls, "-handle:focus {\n outline: none;\n box-shadow: none;\n}\n.").concat(prefixCls, "-handle:focus-visible {\n border-color: #2db7f5;\n box-shadow: 0 0 0 3px #96dbfa;\n}\n.").concat(prefixCls, "-handle-click-focused:focus {\n border-color: #96dbfa;\n box-shadow: unset;\n}\n.").concat(prefixCls, "-handle:hover {\n border-color: #57c5f7;\n}\n.").concat(prefixCls, "-handle:active {\n border-color: #57c5f7;\n box-shadow: 0 0 5px #57c5f7;\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.").concat(prefixCls, "-mark {\n position: absolute;\n top: 18px;\n left: 0;\n width: 100%;\n font-size: 12px;\n}\n.").concat(prefixCls, "-mark-text {\n position: absolute;\n display: inline-block;\n color: #999;\n text-align: center;\n vertical-align: middle;\n cursor: pointer;\n}\n.").concat(prefixCls, "-mark-text-active {\n color: #666;\n}\n.").concat(prefixCls, "-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n}\n.").concat(prefixCls, "-dot {\n position: absolute;\n bottom: -2px;\n width: 8px;\n height: 8px;\n vertical-align: middle;\n background-color: #fff;\n border: 2px solid #e9e9e9;\n border-radius: 50%;\n cursor: pointer;\n}\n.").concat(prefixCls, "-dot-active {\n border-color: #96dbfa;\n}\n.").concat(prefixCls, "-dot-reverse {\n margin-right: -4px;\n}\n.").concat(prefixCls, "-disabled {\n background-color: #e9e9e9;\n}\n.").concat(prefixCls, "-disabled .").concat(prefixCls, "-track {\n background-color: #ccc;\n}\n.").concat(prefixCls, "-disabled .").concat(prefixCls, "-handle,\n.").concat(prefixCls, "-disabled .").concat(prefixCls, "-dot {\n background-color: #fff;\n border-color: #ccc;\n box-shadow: none;\n cursor: not-allowed;\n}\n.").concat(prefixCls, "-disabled .").concat(prefixCls, "-mark-text,\n.").concat(prefixCls, "-disabled .").concat(prefixCls, "-dot {\n cursor: not-allowed !important;\n}\n.").concat(prefixCls, "-vertical {\n width: 14px;\n height: 100%;\n padding: 0 5px;\n}\n.").concat(prefixCls, "-vertical .").concat(prefixCls, "-rail {\n width: 4px;\n height: 100%;\n}\n.").concat(prefixCls, "-vertical .").concat(prefixCls, "-track {\n bottom: 0;\n left: 5px;\n width: 4px;\n}\n.").concat(prefixCls, "-vertical .").concat(prefixCls, "-handle {\n margin-top: 0;\n margin-left: -5px;\n touch-action: pan-y;\n}\n.").concat(prefixCls, "-vertical .").concat(prefixCls, "-mark {\n top: 0;\n left: 18px;\n height: 100%;\n}\n.").concat(prefixCls, "-vertical .").concat(prefixCls, "-step {\n width: 4px;\n height: 100%;\n}\n.").concat(prefixCls, "-vertical .").concat(prefixCls, "-dot {\n margin-left: -2px;\n}\n.rc-slider-tooltip-zoom-down-enter,\n.rc-slider-tooltip-zoom-down-appear {\n display: block !important;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.rc-slider-tooltip-zoom-down-leave {\n display: block !important;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,\n.rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active {\n animation-name: rcSliderTooltipZoomDownIn;\n animation-play-state: running;\n}\n.rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active {\n animation-name: rcSliderTooltipZoomDownOut;\n animation-play-state: running;\n}\n.rc-slider-tooltip-zoom-down-enter,\n.rc-slider-tooltip-zoom-down-appear {\n transform: scale(0, 0);\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.rc-slider-tooltip-zoom-down-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n@keyframes rcSliderTooltipZoomDownIn {\n 0% {\n transform: scale(0, 0);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n 100% {\n transform: scale(1, 1);\n transform-origin: 50% 100%;\n }\n}\n@keyframes rcSliderTooltipZoomDownOut {\n 0% {\n transform: scale(1, 1);\n transform-origin: 50% 100%;\n }\n 100% {\n transform: scale(0, 0);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n}\n.").concat(prefixCls, "-tooltip {\n position: absolute;\n top: -9999px;\n left: -9999px;\n visibility: visible;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.").concat(prefixCls, "-tooltip * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.").concat(prefixCls, "-tooltip-hidden {\n display: none;\n}\n.").concat(prefixCls, "-tooltip-placement-top {\n padding: 4px 0 8px 0;\n}\n.").concat(prefixCls, "-tooltip-inner {\n min-width: 24px;\n height: 24px;\n padding: 6px 2px;\n color: #fff;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n text-decoration: none;\n background-color: #6c6c6c;\n border-radius: 6px;\n box-shadow: 0 0 4px #d9d9d9;\n}\n.").concat(prefixCls, "-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.").concat(prefixCls, "-tooltip-placement-top .").concat(prefixCls, "-tooltip-arrow {\n bottom: 4px;\n left: 50%;\n margin-left: -4px;\n border-width: 4px 4px 0;\n border-top-color: #6c6c6c;\n}\n\n\n"));