mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 00:16:12 +02:00
add new colorpicker styles
This commit is contained in:
parent
fce1e6b362
commit
249414c051
2 changed files with 52 additions and 7 deletions
|
@ -33,12 +33,32 @@
|
||||||
.inputs-area {
|
.inputs-area {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
width: 200px;
|
||||||
|
|
||||||
|
.row-flex{
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
> input {
|
> input {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input-text {
|
||||||
|
color: $intense-ui-text;
|
||||||
|
font-size: $fs13;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 5px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: $medium-ui-text;
|
||||||
|
font-size: $fs12;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Default skin */
|
/* Default skin */
|
||||||
|
|
||||||
&.theme-default {
|
&.theme-default {
|
||||||
|
@ -75,9 +95,11 @@
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inputs-area {
|
.inputs-area {
|
||||||
width: 230px;
|
width: 230px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Small skin */
|
/* Small skin */
|
||||||
|
@ -114,11 +136,9 @@
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
.inputs-area {
|
|
||||||
width: 170px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NEW COLOR PICKER */
|
/* NEW COLOR PICKER */
|
||||||
|
@ -155,5 +175,23 @@
|
||||||
padding: $small;
|
padding: $small;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 11;
|
z-index: 11;
|
||||||
width: 210px;
|
width: auto;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: $medium-ui-text;
|
||||||
|
font-size: $fs12;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputs-area {
|
||||||
|
|
||||||
|
.input-text {
|
||||||
|
color: $intense-ui-text;
|
||||||
|
font-size: $fs13;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 5px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,9 +189,16 @@
|
||||||
:type "text"
|
:type "text"
|
||||||
:value value
|
:value value
|
||||||
:on-change on-hex-changed}]
|
:on-change on-hex-changed}]
|
||||||
[:input.input-text
|
[:div.row-flex
|
||||||
{:placeholder "RGB"
|
[:input.input-text
|
||||||
:type "text"}]]]))))
|
{:placeholder "R"
|
||||||
|
:type "text"}]
|
||||||
|
[:input.input-text
|
||||||
|
{:placeholder "G"
|
||||||
|
:type "text"}]
|
||||||
|
[:input.input-text
|
||||||
|
{:placeholder "B"
|
||||||
|
:type "text"}]]]]))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue