UNPKG

antd-mobile

Version:

基于 React 的移动设计规范实现

59 lines (50 loc) 1.26 kB
@import '../../style/themes/default'; @sliderPrefixCls: am-slider; // tooltip @tooltip-color: @color-text-base-inverse; @tooltip-bg: @fill-mask; @tooltip-arrow-width: 8px; @tooltip-distance: @tooltip-arrow-width + @v-spacing-sm; @tooltip-arrow-color: @tooltip-bg; .@{sliderPrefixCls}-tooltip, .rc-slider-tooltip { position: absolute; left: -9999px; top: -9999px; z-index: 4; visibility: visible; box-sizing: border-box; &-hidden { display: none; } &-placement-top { padding: @tooltip-arrow-width 0 @tooltip-distance 0; } &-inner { padding: 12px 4px; min-width: 48px; height: 32px; font-size: @font-size-subhead; line-height: @line-height-base; color: @tooltip-color; text-align: center; text-decoration: none; background-color: @tooltip-bg; border-radius: @radius-xs; // box-shadow: 0 0 4px #d9d9d9; } &-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } &-placement-top &-arrow { bottom: @tooltip-distance - @tooltip-arrow-width; left: 50%; margin-left: -@tooltip-arrow-width; border-width: @tooltip-arrow-width @tooltip-arrow-width 0; border-top-color: @tooltip-arrow-color; } }