0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-20 13:42:59 -05:00

Merge pull request #335 from tokens-studio/9310-color-picker

Color picker full inline size
This commit is contained in:
Eva Marco 2024-11-19 08:43:17 +01:00 committed by GitHub
commit 1d2c7dd20e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 24 deletions

View file

@ -47,5 +47,7 @@
}
.sliders-wrapper {
@include flexColumn;
display: flex;
flex-direction: column;
flex: 1;
}

View file

@ -51,7 +51,7 @@
value (+ min-value (* unit-value (- max-value min-value)))]
(on-change value))))]
[:div {:class (stl/css-case :opacity-wrapper (= type :opacity))}
[:div {:class (dm/str class (stl/css-case :vertical vertical?
:slider-selector true
:hue (= type :hue)
@ -74,4 +74,4 @@
style-horizontal (obj/merge! #js {:left value-percent-str} style-common)
style-vertical (obj/merge! #js {:bottom value-percent-str} style-common)]
[:div {:class (stl/css :handler)
:style (if vertical? style-vertical style-horizontal)}])]]))
:style (if vertical? style-vertical style-horizontal)}])]))

View file

@ -17,7 +17,7 @@
position: relative;
align-self: center;
height: $s-24;
width: $s-200;
inline-size: 100%;
border: $s-2 solid var(--colorpicker-details-color);
border-radius: $br-6;
background: linear-gradient(