| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- $module: #{$prefix}-colorPicker;
- .#{$module} {
- .colorChooseArea{
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
- position: relative;
- flex-grow: 1;
- border-color: transparent;
- border-radius: 8px 8px 0 0;
- background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
- linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
- }
- .interactive{
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- border-radius: inherit;
- outline: none;
- /* Don't trigger the default scrolling behavior when the event is originating from this element */
- touch-action: none;
- }
- .handle{
- border-radius: 99999px;
- border: 2px solid var(--semi-color-white);
- position: absolute;
- box-sizing: border-box;
- cursor: grab;
- }
- @mixin rectBg{
- background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>');
- }
- .alphaSlider{
- position: relative;
- cursor: pointer;
- @include rectBg;
- .alphaSliderInner{
- width: 100%;
- height: 100%;
- border-radius: 4px;
- }
- .alphaHandle{
- @include rectBg;
- border-radius: 99999px;
- border: 2px solid var(--semi-color-white);
- position: absolute;
- box-sizing: border-box;
- cursor: grab;
- }
- }
- .colorSlider{
- position: relative;
- cursor: pointer;
- background: linear-gradient(
- to right,
- #f00 0%,
- #ff0 17%,
- #0f0 33%,
- #0ff 50%,
- #00f 67%,
- #f0f 83%,
- #f00 100%
- );
- }
- .dataPart{
- display: flex;
- align-items: center;
- .colorDemoBlock{
- border-radius: 4px;
- }
- .inputGroup{
- margin-left: 4px;
- width: 100%;
- flex-wrap: nowrap;
- .colorPickerInput{
- }
- .colorPickerInputNumber{
- width: 100px;
- .inputNumberSuffix{
- font-size: 14px;
- padding: 0 4px;
- }
- }
- }
- .formatSelect{
- margin-left: 4px;
- width: 80px;
- }
- }
- }
|