UNPKG

antd-mobile

Version:

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

62 lines (49 loc) 1.42 kB
@import '../../style/mixins'; @import '../../style/themes/default'; @popoverPrefixCls: am-popover; @import './base'; .@{popoverPrefixCls}-inner { font-size: @font-size-subhead; color: @color-text-base; background-color: @fill-base; border-radius: @radius-sm; box-shadow: 0 0 4px @color-shadow; overflow: hidden; // for popover item active background color not overflow } .@{popoverPrefixCls} .@{popoverPrefixCls}-item { padding: 0 @h-spacing-md; &-container { display: flex; align-items: center; height: @option-height; box-sizing: border-box; border-top: @border-width-sm solid @border-color-base; padding: 0 @h-spacing-md; } &:first-child, &.@{popoverPrefixCls}-item-active { .@{popoverPrefixCls}-item-container { border-top-color: transparent; } } &.@{popoverPrefixCls}-item-active + .@{popoverPrefixCls}-item .@{popoverPrefixCls}-item-container { border-top-color: transparent; } &.@{popoverPrefixCls}-item-active { background-color: @border-color-base; } &.@{popoverPrefixCls}-item-active.@{popoverPrefixCls}-item-fix-active-arrow { position: relative; } &.@{popoverPrefixCls}-item-disabled { color: @color-text-disabled; &.@{popoverPrefixCls}-item-active { background-color: transparent; } } &-icon { margin-right: @h-spacing-md; width: @icon-size-xs; height: @icon-size-xs; } }