1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-26 07:45:15 +02:00

Color picker menu can now be toggled

This commit is contained in:
Thomas Bui
2021-12-21 19:26:37 -08:00
parent cbb38dc2cc
commit 50e8a9c9cf
3 changed files with 52 additions and 14 deletions

View File

@@ -297,20 +297,40 @@ header {
.colorPicker {
height: 0.8em;
width: 0.8em;
border-radius: 50%;
}
.colorPicker:hover {
cursor: pointer;
border: 1px solid whitesmoke;
}
.colorPickerMenu {
position: absolute;
display: inline-block;
font-size: 1rem;
background-color: var(--primaryColor);
border-radius: 1em;
border: 2px solid var(--grey);
transform: translate(0, -30%);
padding: 0.5em;
padding-top: 0;
margin-left: 1em;
font-weight: normal;
z-index: 1;
display: none;
}
.colorPickerMenuCloseBtn {
color: red;
font-weight: bold;
margin-top: 0;
margin-right: 0.25em;
display: flex;
flex-direction: row-reverse;
}
.colorPickerMenuCloseBtn > span:hover {
cursor: pointer;
}
.colorPickerResetBtn {
@@ -330,12 +350,20 @@ header {
top: 0.2em;
}
input[type='color'] {
.checkerboardInput:hover {
cursor: pointer;
}
#colorInput {
width: 1.25em;
height: 1.25em;
padding: 0;
}
#colorInput:hover {
cursor: pointer;
}
/** Copy Btn */
.copyBtn {