widgets: remove built-in label except for button, modal & tabs

widgets: colorBg property for all; opaque background  for all
This commit is contained in:
bordun 2020-04-23 15:20:21 +02:00
parent fe4e83d6d8
commit 82cbe878e5
17 changed files with 171 additions and 141 deletions

View file

@ -12,7 +12,6 @@
width: 100rem;
height: 100rem;
background-clip: content-box;
contain: strict;
@supports not (contain: strict) {
@ -39,34 +38,15 @@
color: var(--color-text);
background-color: var(--color-background);
background-clip: content-box;
&.absolute-position {
position: absolute;
z-index: 10;
}
&.no-label {
> label {
display:none;
}
}
label {
text-overflow:ellipsis;
overflow:hidden;
text-align:center;
height:30rem;
max-height:30rem;
padding:0 6rem;
width: 100%;
flex-shrink: 0;
display: flex;
justify-content: center;
white-space: pre;
align-items: center;
order: -1;
}
canvas {
flex: 1;
height: auto;