2017-11-14 13:06:29 +00:00
|
|
|
/* codemirror colorview */
|
|
|
|
|
2017-12-21 13:04:12 +00:00
|
|
|
.colorview-swatch {
|
|
|
|
padding-left: 14px;
|
2017-11-15 12:59:24 +00:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2017-11-24 10:16:59 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
2018-08-11 09:12:48 +00:00
|
|
|
.colorview-swatch::before {
|
2017-12-21 13:04:12 +00:00
|
|
|
content: "";
|
2017-11-14 13:06:29 +00:00
|
|
|
position: absolute;
|
2017-12-21 13:04:12 +00:00
|
|
|
display: inline-block;
|
2017-11-15 12:59:24 +00:00
|
|
|
left: 2px;
|
2017-12-21 13:04:12 +00:00
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
margin: auto;
|
2017-11-15 12:59:24 +00:00
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
box-sizing: border-box;
|
2018-08-11 09:12:48 +00:00
|
|
|
background: linear-gradient(var(--colorview-swatch), var(--colorview-swatch)), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAJElEQVQYV2NctWrVfwYkEBYWxojMZ6SDAmT7QGx0K1EcRBsFAADeG/3M/HteAAAAAElFTkSuQmCC");
|
2017-12-21 13:04:12 +00:00
|
|
|
background-repeat: repeat;
|
|
|
|
background-position: center;
|
2017-11-15 12:59:24 +00:00
|
|
|
border: 1px solid #8e8e8e;
|
|
|
|
cursor: pointer;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2018-08-11 09:12:48 +00:00
|
|
|
.colorview-swatch:hover::before {
|
2017-11-15 12:59:24 +00:00
|
|
|
border-color: #494949;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
/* colorpicker */
|
|
|
|
|
|
|
|
.colorpicker-theme-light {
|
|
|
|
--main-background-color: #fff;
|
|
|
|
--main-border-color: #ccc;
|
|
|
|
|
|
|
|
--label-color: #666;
|
|
|
|
--label-color-hover: #000;
|
|
|
|
|
|
|
|
--input-background-color: #fff;
|
|
|
|
--input-background-color-hover: #ddd;
|
|
|
|
--input-background-color-focus: #fff;
|
|
|
|
|
|
|
|
--input-color: #444;
|
|
|
|
--input-color-focus: #000;
|
2017-11-14 13:06:29 +00:00
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
--input-border-color: #bbb;
|
|
|
|
--input-border-color-focus: #888;
|
|
|
|
--input-border-color-hover: #444;
|
2017-11-14 13:06:29 +00:00
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
--invalid-border-color: hsl(0, 100%, 50%);
|
|
|
|
--invalid-background-color: hsla(0, 100%, 50%, 0.15);
|
|
|
|
--invalid-color: hsl(0, 100%, 40%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-theme-dark {
|
|
|
|
--main-background-color: #242424;
|
|
|
|
--main-border-color: #888;
|
|
|
|
|
|
|
|
--label-color: #aaa;
|
|
|
|
--label-color-hover: #eee;
|
|
|
|
|
|
|
|
--input-background-color: #222;
|
|
|
|
--input-background-color-hover: #222;
|
|
|
|
--input-background-color-focus: #383838;
|
|
|
|
|
|
|
|
--input-color: #ddd;
|
|
|
|
--input-color-focus: #fff;
|
|
|
|
|
|
|
|
--input-border-color: #505050;
|
|
|
|
--input-border-color-focus: #777;
|
|
|
|
--input-border-color-hover: #888;
|
|
|
|
|
|
|
|
--invalid-border-color: hsl(0, 100%, 27%);
|
|
|
|
--invalid-background-color: hsla(0, 100%, 50%, 0.3);
|
|
|
|
--invalid-color: hsl(0, 100%, 75%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-popup {
|
2020-10-26 15:03:41 +00:00
|
|
|
--switcher-width: 29px;
|
|
|
|
--sat-height: 120px;
|
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-01-07 17:02:58 +00:00
|
|
|
width: 325px;
|
2020-10-26 15:03:41 +00:00
|
|
|
max-height: var(--fit-height);
|
2017-11-14 13:06:29 +00:00
|
|
|
z-index: 1000;
|
2017-11-15 12:59:24 +00:00
|
|
|
transition: opacity .5s;
|
|
|
|
color: var(--label-color);
|
|
|
|
border: 1px solid var(--main-border-color);
|
|
|
|
background-color: var(--main-background-color);
|
|
|
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.12);
|
|
|
|
-moz-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2020-10-26 15:03:41 +00:00
|
|
|
.colorpicker-popup[data-moving] {
|
|
|
|
opacity: .5;
|
|
|
|
cursor: move;
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-popup[data-resizing] {
|
|
|
|
max-height: 90vh !important;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
2020-10-26 15:03:41 +00:00
|
|
|
.colorpicker-popup[data-resizable] {
|
|
|
|
resize: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-popup-mover {
|
|
|
|
position: absolute;
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: calc(var(--switcher-width) - 10px);
|
|
|
|
height: 50px;
|
|
|
|
padding: 5px;
|
|
|
|
margin-top: 5px;
|
|
|
|
top: var(--sat-height);
|
|
|
|
right: 3px;
|
|
|
|
background: repeating-linear-gradient(to right,
|
|
|
|
currentColor, currentColor 1px, transparent 1px, transparent 3px);
|
|
|
|
cursor: move;
|
|
|
|
-webkit-background-clip: content-box;
|
|
|
|
background-clip: content-box;
|
|
|
|
opacity: .5;
|
|
|
|
z-index: 2;
|
2017-11-15 12:59:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-saturation-container {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
2020-10-26 15:03:41 +00:00
|
|
|
height: var(--sat-height);
|
|
|
|
flex: 0 0 var(--sat-height);
|
2017-11-14 13:06:29 +00:00
|
|
|
overflow: hidden;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-opacity-bar {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
|
|
|
background: linear-gradient(to right, rgba(232, 232, 232, 0), rgba(232, 232, 232, 1));
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-saturation {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2017-11-15 12:59:24 +00:00
|
|
|
background-color: rgba(204, 154, 129, 0);
|
|
|
|
background-image: linear-gradient(to right, #FFF, rgba(204, 154, 129, 0));
|
|
|
|
background-repeat: repeat-x;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-value {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2017-11-15 12:59:24 +00:00
|
|
|
background-image: linear-gradient(to top, #000, rgba(204, 154, 129, 0));
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-drag-pointer {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-radius: 50%;
|
|
|
|
left: -5px;
|
|
|
|
top: -5px;
|
2017-11-15 12:59:24 +00:00
|
|
|
border: 1px solid #fff;
|
|
|
|
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.05);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-sliders {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
2020-10-26 15:03:41 +00:00
|
|
|
padding: 10px calc(var(--switcher-width) - 12px) 6px 0;
|
2017-11-15 12:59:24 +00:00
|
|
|
border-top: 1px solid transparent;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-theme-dark .colorpicker-sliders {
|
|
|
|
border-color: var(--input-border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-swatch,
|
|
|
|
.colorpicker-empty {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: absolute;
|
2020-10-26 15:03:41 +00:00
|
|
|
left: 10px;
|
|
|
|
top: 12px;
|
|
|
|
width: 38px;
|
|
|
|
height: 38px;
|
2017-11-14 13:06:29 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
box-sizing: border-box;
|
2017-12-21 13:04:12 +00:00
|
|
|
border: 1px solid var(--input-border-color);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-empty {
|
|
|
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAJElEQVQYV2NctWrVfwYkEBYWxojMZ6SDAmT7QGx0K1EcRBsFAADeG/3M/HteAAAAAElFTkSuQmCC") repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-hue {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
|
|
|
padding: 6px 12px;
|
2017-11-15 12:59:24 +00:00
|
|
|
margin: 0 0 0 45px;
|
2017-11-14 13:06:29 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-hue-container {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 10px;
|
|
|
|
border-radius: 3px;
|
2017-11-15 12:59:24 +00:00
|
|
|
cursor: pointer;
|
|
|
|
background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-opacity {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
|
|
|
padding: 3px 12px;
|
2017-11-15 12:59:24 +00:00
|
|
|
margin: 0 0 0 45px;
|
2017-11-14 13:06:29 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-opacity-container {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 10px;
|
|
|
|
z-index: 2;
|
|
|
|
border-radius: 3px;
|
2017-11-15 12:59:24 +00:00
|
|
|
cursor: pointer;
|
|
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAJElEQVQYV2NctWrVfwYkEBYWxojMZ6SDAmT7QGx0K1EcRBsFAADeG/3M/HteAAAAAElFTkSuQmCC");
|
|
|
|
background-repeat: repeat;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-hue-knob,
|
|
|
|
.colorpicker-opacity-knob {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
top: 50% !important;
|
|
|
|
margin-top: -7px !important;
|
|
|
|
left: -3px;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
border-radius: 50px;
|
2017-11-15 12:59:24 +00:00
|
|
|
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
|
|
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
background-color: #fff;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-input-container {
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-input-group {
|
|
|
|
display: none;
|
2017-11-14 13:06:29 +00:00
|
|
|
position: relative;
|
2017-11-15 12:59:24 +00:00
|
|
|
padding: 0 5px;
|
2017-11-14 13:06:29 +00:00
|
|
|
box-sizing: border-box;
|
2017-11-15 12:59:24 +00:00
|
|
|
margin-right: calc(var(--switcher-width) - 10px);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-input-group[data-active] {
|
|
|
|
display: flex;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-input-field {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
flex: 1;
|
2017-11-14 13:06:29 +00:00
|
|
|
padding: 5px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-input-field[class$="-a"] {
|
2018-01-07 17:02:58 +00:00
|
|
|
flex-grow: 1.25;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-hsl-h::before {
|
|
|
|
content: "\b0"; /* degree */
|
|
|
|
position: absolute;
|
|
|
|
right: -2px;
|
|
|
|
top: 8px;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-hsl-s::before,
|
|
|
|
.colorpicker-hsl-l::before {
|
|
|
|
content: "%";
|
2017-11-14 13:06:29 +00:00
|
|
|
position: absolute;
|
2017-11-15 12:59:24 +00:00
|
|
|
right: -1ex;
|
|
|
|
top: 8px;
|
2017-11-14 13:06:29 +00:00
|
|
|
font-size: 10px;
|
2017-11-15 12:59:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-input {
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
padding: 3px 5px;
|
|
|
|
font-size: 11px;
|
|
|
|
font-weight: bold;
|
2017-11-14 13:06:29 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-user-select: text;
|
|
|
|
user-select: text;
|
2017-11-15 12:59:24 +00:00
|
|
|
border: 1px solid var(--input-border-color);
|
|
|
|
background-color: var(--input-background-color);
|
|
|
|
color: var(--input-color);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-theme-dark .colorpicker-input::-webkit-inner-spin-button {
|
|
|
|
filter: invert(1);
|
|
|
|
}
|
2017-11-14 13:06:29 +00:00
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-input:hover {
|
|
|
|
border-color: var(--input-border-color-hover);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-input:focus {
|
|
|
|
color: var(--input-color-focus);
|
|
|
|
border-color: var(--input-border-color-focus);
|
|
|
|
background-color: var(--input-background-color-focus);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-theme-dark input:focus {
|
|
|
|
outline: none !important;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-input:invalid {
|
|
|
|
border-color: var(--invalid-border-color);
|
|
|
|
background-color: var(--invalid-background-color);
|
|
|
|
color: var(--invalid-color);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-title {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 12px;
|
|
|
|
font-family: monospace;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
color: var(--label-color);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-title-action {
|
|
|
|
cursor: pointer;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
|
|
|
|
2017-11-15 12:59:24 +00:00
|
|
|
.colorpicker-title-action[data-active] {
|
|
|
|
font-weight: bold;
|
|
|
|
color: var(--input-color);
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-format-change {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: var(--switcher-width);
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
overflow: hidden;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-format-change-button {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
outline: none;
|
|
|
|
font-family: monospace !important;
|
|
|
|
font-size: var(--switcher-width) !important;
|
|
|
|
margin-top: -5px;
|
|
|
|
color: var(--label-color);
|
|
|
|
text-align: center;
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2017-11-15 12:59:24 +00:00
|
|
|
|
|
|
|
.colorpicker-format-change-button:hover {
|
|
|
|
color: var(--label-color-hover);
|
2017-11-14 13:06:29 +00:00
|
|
|
}
|
2020-10-18 13:40:11 +00:00
|
|
|
|
|
|
|
.colorpicker-palette:not(:empty) {
|
2020-10-26 15:03:41 +00:00
|
|
|
--swatch-size: 16px;
|
|
|
|
margin: 0 var(--margin) var(--margin);
|
|
|
|
min-height: calc(var(--swatch-size) - 4px);
|
|
|
|
overflow-y: auto;
|
2020-10-18 13:40:11 +00:00
|
|
|
box-sizing: content-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-palette .colorview-swatch {
|
2020-10-26 15:03:41 +00:00
|
|
|
padding: calc(var(--swatch-size) / 2 + 1px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-palette .colorview-swatch::before {
|
|
|
|
width: var(--swatch-size);
|
|
|
|
height: var(--swatch-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
.colorpicker-palette-hint {
|
|
|
|
vertical-align: super;
|
|
|
|
padding: 0 .5em;
|
|
|
|
font-weight: bold;
|
2020-10-18 13:40:11 +00:00
|
|
|
}
|