Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (45 sloc) 1.03 KB
//
// input[type=color].color
.color {
--border-width: var(--space-px);
border: var(--border-width) solid;
//border: none;
outline: none;
background: transparent;
margin: 0;
width: 100%;
min-height: 20px;
display: block;
padding: 0;
cursor: pointer;
&::-webkit-color-swatch-wrapper { padding: 0 }
&::-webkit-color-swatch { border: none }
&::-moz-color-swatch { border: none }
&::-moz-focus-inner {
border: none;
padding: 0;
}
&:focus { outline: none }
&:disabled::-moz-color-swatch { background: var(--color-main-2) !important }
&:disabled::-webkit-color-swatch { background: var(--color-main-2) !important }
}
.color-box {
position: relative;
padding: var(--padding, var(--space-s));
--border-width: var(--space-px);
border: var(--border-width) solid;
@include min-height;
> *:not(.color) {
position: relative;
z-index: 1;
}
.color {
position: absolute;
border: 0;
top: 0px;
bottom: 0;
left: 0;
height: 100%;
z-index: 0;
}
}