Color picker improvements

This commit is contained in:
alonso.torres 2020-05-20 15:35:11 +02:00
parent 9b4ffbaf0c
commit e3f7e352d4
2 changed files with 16 additions and 2 deletions

View file

@ -217,5 +217,19 @@
}
}
}
.chrome-picker {
font-family: inherit !important;
input {
margin-bottom: auto;
}
& > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) {
width: 25px !important;
height: 25px !important;
border-radius: 20px !important;
margin: 0 !important;
}
}

View file

@ -33,7 +33,7 @@
[v]
(try
(into [] (gcolor/hexToRgb v))
(catch js/Object e [0 0 0])))
(catch :default e [0 0 0])))
(defn rgb->hex
[[r g b]]