custom color picker
This commit is contained in:
parent
1fadea7a6b
commit
fdc6e1d33d
53 changed files with 988 additions and 519 deletions
|
|
@ -210,7 +210,7 @@ osc-inspector-select {
|
|||
}
|
||||
|
||||
|
||||
.osc-inspector-color {
|
||||
osc-inspector-color {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
box-shadow: 0;
|
||||
|
|
@ -218,7 +218,6 @@ osc-inspector-select {
|
|||
position: relative;
|
||||
font-family: mono;
|
||||
line-height: inherit;
|
||||
padding: 4rem;
|
||||
overflow: hidden;
|
||||
height: $field-height;
|
||||
width: $field-height;
|
||||
|
|
@ -227,12 +226,35 @@ osc-inspector-select {
|
|||
|
||||
cursor: pointer;
|
||||
|
||||
--color-fill: var(--color-picker-value);
|
||||
--alpha-fill: 1;
|
||||
--widget-padding: 4rem;
|
||||
@include pseudo-fill();
|
||||
&:after {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.color-picker-modal {
|
||||
padding: 8rem;
|
||||
background: var(--color-background);
|
||||
|
||||
.widget {
|
||||
background: var(--color-foreground);
|
||||
}
|
||||
|
||||
.actions {
|
||||
margin-top: 8rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
.btn {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
:first-child {
|
||||
margin-right: 8rem;
|
||||
}
|
||||
}
|
||||
|
||||
&::-webkit-color-swatch {
|
||||
border: none;
|
||||
}
|
||||
&::-webkit-color-swatch-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
39
src/scss/ui/loading.scss
Normal file
39
src/scss/ui/loading.scss
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
#loading {
|
||||
position: fixed;
|
||||
top:50%;
|
||||
left:50%;
|
||||
margin-left:-15rem;
|
||||
margin-top:-15rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
height:36rem;
|
||||
width:36rem;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
margin: 20rem auto;
|
||||
|
||||
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
left:-3rem;
|
||||
top:-3rem;
|
||||
right:-3rem;
|
||||
bottom:-3rem;
|
||||
border:4rem solid var(--color-background);
|
||||
border-top: 2rem solid var(--color-widget);
|
||||
transform: rotateZ(0deg);
|
||||
animation: spin .5s linear infinite;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {transform: rotateZ(0deg);}
|
||||
100% {transform: rotateZ(360deg);}
|
||||
}
|
||||
|
|
@ -1,5 +1,27 @@
|
|||
@keyframes popup-backdrop-fade-in {
|
||||
0% {opacity: 0}
|
||||
100% {opacity: .1}
|
||||
}
|
||||
|
||||
.popup {
|
||||
|
||||
&:before {
|
||||
|
||||
content: "";
|
||||
position: fixed;
|
||||
top:0rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: black;
|
||||
opacity: .1;
|
||||
pointer-events: none;
|
||||
animation: popup-backdrop-fade-in .25s forwards;
|
||||
|
||||
}
|
||||
|
||||
// backdrop-filter: blur(1rem);
|
||||
|
||||
position: fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
|
|
@ -10,21 +32,11 @@
|
|||
justify-content: center;
|
||||
z-index: 99999999;
|
||||
display: none;
|
||||
// backdrop-filter: blur(1rem); // perf hit
|
||||
|
||||
&.show {
|
||||
display: flex;
|
||||
}
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top:0rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: black;
|
||||
opacity: .1;
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
position: relative;
|
||||
min-height: var(--nav-height);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ osc-panel-container {
|
|||
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
|
||||
border-color: var(--color-background)!important;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
&.left:after {
|
||||
right: -1rem;
|
||||
|
|
@ -158,8 +158,7 @@ osc-panel-inner {
|
|||
overflow: hidden;
|
||||
z-index: 3;
|
||||
min-width: 0;
|
||||
|
||||
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue