ui progress
This commit is contained in:
parent
76c7e7b8a6
commit
c67c2b4c50
37 changed files with 773 additions and 788 deletions
|
|
@ -41,6 +41,10 @@
|
|||
margin: calc(var(--widget-spacing) / 2) calc(1rem + var(--widget-spacing) / 2) calc(1rem + var(--widget-spacing) / 2);
|
||||
}
|
||||
|
||||
&.noscroll > .panel {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&.contains-widgets {
|
||||
|
||||
> .panel > .widget {
|
||||
|
|
@ -77,6 +81,20 @@
|
|||
}
|
||||
|
||||
}
|
||||
&.layout-grid > .panel {
|
||||
display: grid;
|
||||
> .widget {
|
||||
top:auto!important;
|
||||
left:auto!important;
|
||||
position: relative!important;
|
||||
height: auto!important;
|
||||
width: auto!important;
|
||||
min-height: auto!important;
|
||||
max-height: auto!important;
|
||||
min-width: auto!important;
|
||||
max-width: auto!important;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -123,7 +141,8 @@
|
|||
|
||||
}
|
||||
|
||||
.panel-container {
|
||||
.panel-container,
|
||||
.matrix-container {
|
||||
|
||||
@extend .widget-panel-base;
|
||||
|
||||
|
|
|
|||
68
src/scss/widgets/keyboard.scss
Normal file
68
src/scss/widgets/keyboard.scss
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
.keyboard-container {
|
||||
|
||||
--widget-padding: 0;
|
||||
--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;
|
||||
|
||||
--widget-keypad: var(--widget-padding);
|
||||
|
||||
.panel {
|
||||
|
||||
padding: var(--widget-padding);
|
||||
flex: 1;
|
||||
@include pseudo-stroke($z: 2);
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.key {
|
||||
|
||||
--alpha-fill-off: var(--alpha-key-off);
|
||||
--alpha-fill-on: var(--alpha-key-on);
|
||||
inner {
|
||||
margin: 1rem 0.5rem!important;
|
||||
--widget-padding: -1rem;
|
||||
&:before {
|
||||
content: none;
|
||||
}
|
||||
&:after {
|
||||
background: var(--color-key-on);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.white {
|
||||
flex: 1;
|
||||
width: auto;
|
||||
min-width: auto;
|
||||
height: auto;
|
||||
inner {
|
||||
background: var(--color-white-key);
|
||||
}
|
||||
}
|
||||
|
||||
.black {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
|
||||
left: calc((100% - var(--widget-keypad) * 2) / var(--nkeys) * var(--rank));
|
||||
width: calc(100% / var(--nkeys) * 0.6);
|
||||
margin-left: calc(100% / var(--nkeys) * -0.3 + var(--widget-keypad));
|
||||
height: calc((100% - var(--widget-keypad) * 2) * 0.65);
|
||||
|
||||
inner {
|
||||
margin-left: 0!important;
|
||||
margin-right: 0!important;
|
||||
background: var(--color-black-key);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue