UNPKG

choerodon-ui

Version:

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

88 lines (85 loc) 2.08 kB
@import '../../../../lib/style/themes/default'; @import '../../trigger-field/style/mixin'; @color-prefix: ~'@{c7n-pro-prefix}-color-picker'; @color-picker-width: 2.8rem; .@{color-prefix} { .trigger-field; // cursor: pointer; // width: 0.6rem; &-prefix { height: 0.18rem; padding: 0 0.03rem; } &-color { display: block; width: 100%; height: 100%; border-radius: @border-radius-base; } &-popup { width: @color-picker-width; padding: 0.05rem; line-height: 1.5; background-clip: padding-box; &-body { position: relative; height: 1.5rem; &-gradient { height: 100%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 100%), linear-gradient(to right, #fff 0, rgba(255, 255, 255, 0) 100%); } &-selector { position: absolute; // left: 0.2rem; top: -0.05rem; right: -0.05rem; width: 0.1rem; height: 0.1rem; border: @border-width-base @border-style-base #fff; border-radius: 50%; &:hover, :active { cursor: pointer; } } } &-footer { padding: 0.12rem 0.15rem; &-slider { position: relative; height: 0.12rem; // margin-bottom: 0.1rem; .hue { height: 100%; background: linear-gradient( to right, red 0, #ff0 16%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 84%, #ff0004 100% ); border-radius: @border-radius-base; } &.opacity { display: none; background: linear-gradient(to right, rgba(255, 0, 0, 1), rgba(255, 0, 0, 0)); } &-pointer { position: absolute; top: -0.01rem; left: -0.07rem; width: 0.14rem; height: 0.14rem; background-color: #fff; border-radius: 50%; box-shadow: @box-shadow-base; cursor: pointer; } } } } }