widgets: remove built-in label except for button, modal & tabs
widgets: colorBg property for all; opaque background for all
This commit is contained in:
parent
fe4e83d6d8
commit
82cbe878e5
17 changed files with 171 additions and 141 deletions
|
|
@ -1,10 +1,13 @@
|
|||
.button-container,
|
||||
.button-container {
|
||||
width: 90rem;
|
||||
height: 60rem;
|
||||
}
|
||||
.menu-container,
|
||||
.dropdown-container,
|
||||
.input-container,
|
||||
.file-container {
|
||||
width: 90rem;
|
||||
height: 60rem;
|
||||
height: 30rem;
|
||||
}
|
||||
|
||||
.button-container {
|
||||
|
|
@ -22,37 +25,32 @@
|
|||
right:0;
|
||||
bottom:0;
|
||||
margin: var(--widget-spacing);
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: -1;
|
||||
padding: var(--widget-padding);
|
||||
|
||||
@include pseudo-stroke();
|
||||
@include pseudo-fill();
|
||||
|
||||
@include pseudo-stroke($z: -1);
|
||||
@include pseudo-fill($z: -1);
|
||||
|
||||
}
|
||||
|
||||
> label {
|
||||
|
||||
flex: 1;
|
||||
max-height: initial;
|
||||
text-align: center;
|
||||
pointer-events:none;
|
||||
label {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: var(--color-text);
|
||||
|
||||
|
||||
white-space: pre;
|
||||
line-height: 100%;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
border: 2rem solid transparent;
|
||||
}
|
||||
|
||||
&.on, &.active {
|
||||
|
||||
--alpha-fill:var(--alpha-fill-on);
|
||||
|
||||
label {
|
||||
color: var(--color-text-on)
|
||||
}
|
||||
color: var(--color-text-on);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,15 +39,11 @@
|
|||
|
||||
> inner {
|
||||
--widget-spacing: calc(var(--widget-padding) / 2);
|
||||
margin: var(--widget-spacing)
|
||||
calc(1rem + var(--widget-spacing))
|
||||
calc(1rem + var(--widget-spacing));
|
||||
margin: var(--widget-spacing);
|
||||
}
|
||||
|
||||
&.no-inner-padding > inner {
|
||||
margin: calc(-1rem + var(--widget-spacing) * -1)
|
||||
calc(var(--widget-spacing) * -1)
|
||||
calc(var(--widget-spacing) * -1);
|
||||
margin: calc(var(--widget-spacing) * -1);
|
||||
}
|
||||
|
||||
> inner > .widget {
|
||||
|
|
@ -155,10 +151,6 @@
|
|||
display:none
|
||||
}
|
||||
|
||||
> label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.panel-container {
|
||||
|
|
@ -172,21 +164,6 @@
|
|||
margin: var(--widget-spacing);
|
||||
}
|
||||
|
||||
> label {
|
||||
|
||||
position: relative;
|
||||
// background-color: var(--color-background);
|
||||
@include pseudo-stroke($z: 10);
|
||||
&:before {
|
||||
border-width: 0 0 1rem 0;
|
||||
margin: 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
&.contains-widgets.no-label > inner {
|
||||
border-top: 1rem solid var(--color-background);
|
||||
}
|
||||
|
||||
&.contains-tabs > inner > .navigation {
|
||||
margin: 0 1rem;
|
||||
&.vertical {
|
||||
|
|
@ -352,11 +329,6 @@
|
|||
content: none
|
||||
}
|
||||
|
||||
|
||||
> label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> .clone {
|
||||
|
||||
--widget-spacing: 0;
|
||||
|
|
@ -410,7 +382,12 @@
|
|||
|
||||
> label {
|
||||
|
||||
flex: 1;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
|
||||
max-height: initial;
|
||||
text-align: center;
|
||||
pointer-events:none;
|
||||
|
|
@ -489,9 +466,7 @@
|
|||
}
|
||||
|
||||
> inner {
|
||||
margin: var(--widget-spacing)
|
||||
var(--widget-spacing)
|
||||
var(--widget-spacing);
|
||||
margin: var(--widget-spacing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -532,13 +507,6 @@
|
|||
|
||||
justify-content: center;
|
||||
|
||||
|
||||
label {
|
||||
flex: 1;
|
||||
pointer-events: none;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
}
|
||||
.patchbay-container {
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,11 @@
|
|||
|
||||
width: 90rem;
|
||||
height: 60rem;
|
||||
--alpha-fill-on: 75;
|
||||
|
||||
--alpha-stroke: 0;
|
||||
--alpha-fill-off: 0.1;
|
||||
--alpha-fill-on: 1;
|
||||
--widget-padding: -1;
|
||||
|
||||
inner {
|
||||
@include pseudo-stroke();
|
||||
|
|
@ -47,11 +51,11 @@
|
|||
|
||||
}
|
||||
|
||||
div {
|
||||
color: var(--color-fill);
|
||||
label {
|
||||
|
||||
opacity: var(--alpha-fill-on);
|
||||
flex: 1;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
|
@ -60,6 +64,8 @@
|
|||
overflow: hidden;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
border: 2rem solid transparent;
|
||||
|
||||
&.right {
|
||||
text-align: right;
|
||||
justify-content: flex-end;
|
||||
|
|
|
|||
|
|
@ -3,10 +3,6 @@
|
|||
.encoder-container,
|
||||
.range-container {
|
||||
|
||||
inner {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
canvas {
|
||||
image-rendering: pixelated;
|
||||
width: 100%;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue