mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 04:48:39 +00:00
add fill element color-picker
This commit is contained in:
parent
e9dce3ff2f
commit
851eff897e
@ -64,6 +64,12 @@
|
|||||||
[:div.element-set-content
|
[:div.element-set-content
|
||||||
;; SLIDEBAR FOR ROTATION AND OPACITY
|
;; SLIDEBAR FOR ROTATION AND OPACITY
|
||||||
[:span "Color"]
|
[:span "Color"]
|
||||||
|
[:div.element-color-picker
|
||||||
|
[:div.color-picker-body
|
||||||
|
[:img {:src "images/color-gamma.png", :border "none"}]]
|
||||||
|
[:div.color-picker-bar
|
||||||
|
[:div.color-bar-select]
|
||||||
|
[:img {:src "images/color-bar.png", :border "none"}]]]
|
||||||
[:div.row-flex
|
[:div.row-flex
|
||||||
[:input#width.input-text
|
[:input#width.input-text
|
||||||
{:placeholder "#"
|
{:placeholder "#"
|
||||||
@ -184,5 +190,3 @@
|
|||||||
{:render element-opts-render
|
{:render element-opts-render
|
||||||
:name "element-opts"
|
:name "element-opts"
|
||||||
:mixins [rum/reactive (mx/local {})]}))
|
:mixins [rum/reactive (mx/local {})]}))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
resources/public/images/color-bar.png
Normal file
BIN
resources/public/images/color-bar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 256 B |
BIN
resources/public/images/color-gamma.png
Normal file
BIN
resources/public/images/color-gamma.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
@ -204,3 +204,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.element-color-picker {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
height: 160px;
|
||||||
|
margin: 0 4px;
|
||||||
|
.color-picker-body {
|
||||||
|
height: 100%;
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
.color-picker-bar {
|
||||||
|
height: 100%;
|
||||||
|
padding: relative;
|
||||||
|
width: 15px;
|
||||||
|
.color-bar-select {
|
||||||
|
background-color: $color-white;
|
||||||
|
height: 3px;
|
||||||
|
position: absolute;
|
||||||
|
width: 15px;
|
||||||
|
top: 30%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user