custom color picker
This commit is contained in:
parent
c67c2b4c50
commit
7b8af3eeea
53 changed files with 988 additions and 519 deletions
|
|
@ -16,6 +16,7 @@
|
|||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: -1;
|
||||
|
||||
@include pseudo-stroke();
|
||||
@include pseudo-fill();
|
||||
|
|
@ -31,7 +32,6 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
color: var(--color-text);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: var(--color-foreground);
|
||||
> .panel {
|
||||
> inner {
|
||||
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
flex: 1;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
> .panel {
|
||||
> inner {
|
||||
margin: calc(var(--widget-spacing) / 2);
|
||||
}
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
background-clip: content-box;
|
||||
|
||||
|
||||
> .panel {
|
||||
> inner {
|
||||
--widget-spacing: var(--widget-padding);
|
||||
flex: 1;
|
||||
position: relative;
|
||||
|
|
@ -41,20 +41,20 @@
|
|||
margin: calc(var(--widget-spacing) / 2) calc(1rem + var(--widget-spacing) / 2) calc(1rem + var(--widget-spacing) / 2);
|
||||
}
|
||||
|
||||
&.noscroll > .panel {
|
||||
&.no-scroll > inner {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&.contains-widgets {
|
||||
|
||||
> .panel > .widget {
|
||||
> inner > .widget {
|
||||
padding: calc(var(--widget-spacing) / 2);
|
||||
}
|
||||
|
||||
&.layout-default > .panel {
|
||||
&.layout-default > inner {
|
||||
display: block;
|
||||
}
|
||||
&.layout-horizontal > .panel {
|
||||
&.layout-horizontal > inner {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
&.layout-vertical > .panel {
|
||||
&.layout-vertical > inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
|
|
@ -81,7 +81,7 @@
|
|||
}
|
||||
|
||||
}
|
||||
&.layout-grid > .panel {
|
||||
&.layout-grid > inner {
|
||||
display: grid;
|
||||
> .widget {
|
||||
top:auto!important;
|
||||
|
|
@ -101,7 +101,7 @@
|
|||
|
||||
&.contains-tabs {
|
||||
|
||||
> .panel {
|
||||
> inner {
|
||||
|
||||
--widget-spacing: 0;
|
||||
|
||||
|
|
@ -164,11 +164,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.contains-widgets.nolabel > .panel {
|
||||
&.contains-widgets.nolabel > inner {
|
||||
border-top: 1rem solid var(--color-foreground);
|
||||
}
|
||||
|
||||
&.contains-tabs > .panel > .navigation {
|
||||
&.contains-tabs > inner > .navigation {
|
||||
margin: 0 1rem;
|
||||
}
|
||||
|
||||
|
|
@ -323,9 +323,10 @@
|
|||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: inherit;
|
||||
|
||||
@include pseudo-stroke();
|
||||
@include pseudo-fill();
|
||||
@include pseudo-fill($z: -1);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -366,10 +367,13 @@
|
|||
}
|
||||
|
||||
&.on {
|
||||
z-index: 9999999999999!important;
|
||||
contain: size;
|
||||
@supports not (contain: strict) {
|
||||
transform: none; // cancel new stacking context
|
||||
}
|
||||
|
||||
z-index: 9999999999999!important;
|
||||
overflow: visible;
|
||||
border-radius: 0!important; // border radius breaks it somehow
|
||||
> .toggle {
|
||||
--alpha-fill:var(--alpha-fill-on);
|
||||
}
|
||||
|
|
@ -385,7 +389,7 @@
|
|||
|
||||
|
||||
|
||||
> .panel {
|
||||
> inner {
|
||||
display: none;
|
||||
}
|
||||
> .popup {
|
||||
|
|
@ -403,7 +407,7 @@
|
|||
content: none;
|
||||
}
|
||||
|
||||
> .panel {
|
||||
> inner {
|
||||
margin: calc(var(--widget-spacing) / 2) calc(var(--widget-spacing) / 2) calc(var(--widget-spacing) / 2);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,13 +52,10 @@
|
|||
caret-color: var(--color-fill);
|
||||
|
||||
|
||||
&:focus {
|
||||
color:var(--color-text-fade);
|
||||
}
|
||||
|
||||
&:focus::selection {
|
||||
color:var(--color-fill);
|
||||
background: transparent;
|
||||
background: var(--color-fill);
|
||||
color: var(--color-foreground);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
.keyboard-container {
|
||||
|
||||
--widget-padding: 0;
|
||||
--widget-padding: 0rem;
|
||||
--alpha-fill-off: 0;
|
||||
--alpha-fill-on: .75;
|
||||
|
||||
--color-key-on: var(--color-fill);
|
||||
--alpha-key-off: var(--alpha-fill-off);
|
||||
--alpha-key-on: var(--alpha-fill-on);
|
||||
--color-white-key: #ddd;
|
||||
--color-black-key: #111;
|
||||
--color-white-key: #ccc;
|
||||
--color-black-key: #1A1A1A;
|
||||
|
||||
--widget-keypad: var(--widget-padding);
|
||||
|
||||
.panel {
|
||||
> inner {
|
||||
|
||||
padding: var(--widget-padding);
|
||||
flex: 1;
|
||||
|
|
|
|||
|
|
@ -32,3 +32,87 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
.rgb-container {
|
||||
|
||||
--widget-padding: 4rem;
|
||||
|
||||
> inner {
|
||||
|
||||
display: grid;
|
||||
|
||||
@include pseudo-stroke($z: 1);
|
||||
|
||||
--widget-spacing: var(--widget-padding);
|
||||
|
||||
padding: calc(var(--widget-spacing) / 2 + 1rem);
|
||||
|
||||
grid-template:
|
||||
"a a b" auto / 1fr;
|
||||
|
||||
}
|
||||
|
||||
&.contains-alpha > inner {
|
||||
grid-template:
|
||||
"a a b" auto
|
||||
"c c c" 20rem / 1fr;
|
||||
}
|
||||
|
||||
.widget {
|
||||
height: auto;
|
||||
width: auto;
|
||||
margin: calc(var(--widget-spacing) / 2);
|
||||
--widget-padding: 2rem;//calc(var(--widget-spacing) / 2);
|
||||
}
|
||||
|
||||
.pad {
|
||||
grid-area: a;
|
||||
|
||||
background-color: red;
|
||||
background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%), linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
|
||||
--color-fill: black;
|
||||
--color-stroke: white;
|
||||
--alpha-fill-off: 1;
|
||||
--alpha-fill-on: 1;
|
||||
--alpha-stroke: 1;
|
||||
inner {
|
||||
&:after, &:before {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hue {
|
||||
grid-area: b;
|
||||
width: 20rem;
|
||||
|
||||
--color-fill: white;
|
||||
// --color-stroke: white;
|
||||
--alpha-fill-off: 0.5;
|
||||
--alpha-fill-on: 0;
|
||||
--alpha-stroke: 0;
|
||||
--widget-padding: -1rem;
|
||||
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 2rem;
|
||||
right: 2rem;
|
||||
bottom: 0;
|
||||
background: linear-gradient(to top, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
|
||||
opacity: 0.75;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
.alpha {
|
||||
grid-area: c;
|
||||
|
||||
--alpha-stroke: 0;
|
||||
--alpha-fill-off: 0.1;
|
||||
--alpha-fill-on: 0.25;
|
||||
--widget-padding: -1rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,13 @@
|
|||
|
||||
--widget-padding: 1rem;
|
||||
|
||||
&.alt {
|
||||
--widget-padding: 10rem;
|
||||
--alpha-fill-off: 0.25;
|
||||
--alpha-fill-on: 1;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.knob-container,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue