wix-style-react
Version:
56 lines (48 loc) • 1.01 kB
CSS
/* st-namespace-reference="../../../src/ColorPicker/ColorPickerHsb.st.css" */
:import {
-st-from: '../Foundation/stylable/colors.st.css';
-st-named: D80, D10;
}
.sticky {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.root {
height: 126px;
position: relative;
}
.saturation {
border-top-left-radius: 8px;
border-top-right-radius: 8px;
background-image: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
-st-mixin: sticky;
}
.brightness {
border-top-left-radius: 8px;
border-top-right-radius: 8px;
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #000);
-st-mixin: sticky;
}
.hue {
border-top-left-radius: 8px;
border-top-right-radius: 8px;
background-color: red;
-st-mixin: sticky;
}
.handle {
height: 12px;
width: 12px;
border-radius: 50%;
top: 0;
left: 0;
margin-top: -6px;
margin-left: -6px;
position: absolute;
border: solid 1px value(D10);
background: value(D80);
opacity: .7;
cursor: pointer;
}