ui progress

This commit is contained in:
bordun 2020-02-25 18:45:25 +01:00
parent 42c99aaece
commit 1fadea7a6b
37 changed files with 773 additions and 788 deletions

View file

@ -1,6 +1,5 @@
.widget.editing {
z-index: 9999!important;
// overflow: visible;
}
.widget.editing:after,
.tablink.editing:after,
@ -40,7 +39,7 @@
}
}
.widget {
.widget:not(.not-editable) {
pointer-events: initial!important;
}

View file

@ -62,33 +62,6 @@ body {
letter-spacing: 1rem;
}
.btn {
background: var(--color-foreground);
display: block;
padding:15rem;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
cursor: pointer;
&.small {
padding:8rem;
padding-right: 15rem;
}
&.tiny {
padding:6rem;
}
&.warning {
background:firebrick;
}
&.disabled {
pointer-events: none;
color:var(--color-text-fade);
}
&.align-center {
text-align: center
}
}
@ -99,122 +72,6 @@ body {
#lobby {
background: var(--color-bg);
position: absolute;
top:0;
left:0;
right: 0;
bottom:0;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
overflow-y: auto;
padding:20rem;
.main {
width:600rem;
max-width: 100%;
max-height:100%;
display: flex;
flex-direction: column;
opacity: 0;
transition: opacity .1s;
&.show {
opacity: 1;
overflow: auto;
}
}
.list {
overflow: auto;
background: var(--color-fg);
border-top:2rem solid var(--color-bg);
text-transform: none;
font-weight: 500;
flex: 1 1 auto;
a {
&:focus {
&:after {
content:"";
position: absolute;
top:0;
left:0;
bottom:0;
right:0;
background: var(--color-accent);
opacity: 0.1;
}
}
}
}
.header {
padding:22rem 20rem 20rem;
white-space: nowrap;
text-overflow: ellipsis;
flex-grow: 0;
background-color: var(--color-fg);
color:var(--color-accent);
letter-spacing: 1rem;
font-size: 12rem;
background:var(--color-raised);
box-shadow: 0 0 0 1rem var(--color-light) inset;
}
.footer {
background: var(--color-fg);
white-space: nowrap;
text-overflow: ellipsis;
flex-grow: 0;
border-top:2rem solid var(--color-bg);
a {
background:var(--color-raised);
&:focus {
&:after {
content:"";
position: absolute;
top:0;
left:0;
bottom:0;
right:0;
background: var(--color-accent);
opacity: 0.1;
}
}
}
}
a {
display: block;
overflow: hidden;
padding:17rem;
padding-right:39rem;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
background: none;
border-bottom:1rem solid var(--color-bg);
em {
pointer-events: none;
}
&:last-child {
border-bottom:0;
}
span {
position: absolute;
right:0rem;
top:0rem;
padding:17rem;
color:var(--color-text-fader);
z-index: 1;
&:hover {
color:var(--color-accent);
}
i {
pointer-events: none;
}
}
}
}
#launcher {
overflow: initial;
@ -523,93 +380,4 @@ body {
background-repeat: no-repeat;
}
.file-browser {
width: 540px;
height: 360px;
max-width: 100%;
display: flex;
flex-direction: column;
flex: 1;
.ariane {
height: 40rem;
flex-shrink: 0;
line-height: 40rem;
padding-left: 10rem;
}
.file-list {
overflow-y: auto;
flex:1;
background: var(--color-bg);
padding: 0 10rem;
}
.file {
position: relative;
height: 40rem;
line-height: 40rem;
input {
position: absolute;
width:100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.label {
position: absolute;
width:100%;
height: 100%;
pointer-events: none;
white-space: nowrap;
span {
display: block;
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
}
}
input:checked + .label {
color: var(--color-custom);
&:before {
content:"";
position: absolute;
left:-10rem;
right:-10rem;
height: 100%;
background: var(--color-custom);
opacity: 0.1;
}
}
}
.file-actions {
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: flex-end;
height: 40rem;
flex-shrink: 0;
margin-top: 10rem;
div {
margin-left: 10rem;
text-transform: uppercase;
text-overflow: clip;
}
i {
pointer-events: none;
}
.save-as {
flex:1;
height: 40rem;
line-height: 40rem;
border: 0;
padding: 0 10rem;
font-size: 120%;
top: -1rem;
position: relative;
background: var(--color-bg);
&[disabled] {
pointer-events: none;
}
}
}
}
@import 'themes/default';

View file

@ -14,3 +14,10 @@
-moz-user-select: none;
user-select: none;
}
select, input, textarea {
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
}

View file

@ -1,3 +1,4 @@
@import 'ui/button';
@import 'ui/scrollbars';
@import 'ui/workspaces';
@import 'ui/notifications';
@ -7,3 +8,5 @@
@import 'ui/selectarea';
@import 'ui/contextmenu';
@import 'ui/modal';
@import 'ui/filebrowser';
@import 'ui/lobby';

14
src/scss/ui/button.scss Normal file
View file

@ -0,0 +1,14 @@
.btn {
background: var(--color-foreground);
display: block;
padding:15rem;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
cursor: pointer;
&.disabled {
pointer-events: none;
opacity: 0.5;
}
}

View file

@ -0,0 +1,97 @@
.file-browser {
width: 540rem;
height: 360rem;
max-width: 100%;
display: flex;
flex-direction: column;
flex: 1;
padding: 2rem 8rem 8rem;
background: var(--color-background);
.ariane {
height: 40rem;
flex-shrink: 0;
line-height: 40rem;
padding-left: 10rem;
background: var(--color-foreground);
margin-bottom: 2rem;
}
.file-list {
overflow-y: auto;
flex:1;
background: var(--color-foreground);
padding: 0 10rem;
}
.file {
position: relative;
height: 40rem;
line-height: 40rem;
input {
position: absolute;
width:100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.label {
position: absolute;
width:100%;
height: 100%;
pointer-events: none;
white-space: nowrap;
span {
display: block;
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
}
}
input:checked + .label {
color: var(--color-widget);
&:before {
content:"";
position: absolute;
left:-10rem;
right:-10rem;
height: 100%;
background: var(--color-widget);
opacity: 0.1;
}
}
}
.file-actions {
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: flex-end;
height: 40rem;
flex-shrink: 0;
margin-top: 10rem;
div {
margin-left: 10rem;
text-overflow: clip;
min-width: 0;
}
i {
pointer-events: none;
}
.save-as {
flex:1;
height: 40rem;
line-height: 40rem;
border: 0;
padding: 0 10rem;
font-size: 120%;
top: -1rem;
position: relative;
background: var(--color-foreground);
min-width: 0;
&[disabled] {
display: none
}
}
}
}

View file

@ -40,10 +40,6 @@ osc-inspector-field {
background: var(--color-foreground);
cursor: text;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
--scrollbar-size: 6rem;
&::-webkit-scrollbar-thumb:horizontal {
@ -181,9 +177,7 @@ osc-inspector-select {
// width: 100%;
line-height: $field-height - 8rem;
padding: 4rem 6rem;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
position: absolute;
left:0;
opacity: 0;
@ -217,7 +211,6 @@ osc-inspector-select {
.osc-inspector-color {
appearance: none;
padding: 0;
border: 0;
box-shadow: 0;
@ -234,9 +227,7 @@ osc-inspector-select {
cursor: pointer;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
&::-webkit-color-swatch {
border: none;

71
src/scss/ui/lobby.scss Normal file
View file

@ -0,0 +1,71 @@
.lobby {
width: 540rem;
height: 360rem;
max-width: 100%;
display: flex;
flex-direction: column;
flex: 1;
background: var(--color-background);
padding: 2rem 8rem 8rem;
.list {
overflow: auto;
text-transform: none;
flex: 1;
background: var(--color-foreground);
padding: 0 10rem;
a {
padding-right: 30rem;
}
}
.footer {
margin-top: 10rem;
white-space: nowrap;
text-overflow: ellipsis;
flex-grow: 0;
display: flex;
flex-direction: row;
a {
margin-left: 10rem;
text-align: center;
background: var(--color-foreground);
&:first-child {
margin: 0;
}
}
}
a {
padding: 0;
position: relative;
height: 40rem;
line-height: 40rem;
width: 100%;
display: block;
overflow: hidden;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
background: none;
em, i {
pointer-events: none;
}
span {
position: absolute;
right:0rem;
top:0rem;
z-index: 1;
height: 40rem;
line-height: 40rem;
opacity: 0.5;
&:hover {
opacity: 1;
}
}
}
}

View file

@ -27,6 +27,7 @@
}
.popup-title {
position: relative;
min-height: var(--nav-height);
height: var(--nav-height);
display: flex;
padding:0 15rem;

View file

@ -88,3 +88,4 @@
@import 'widgets/indicators';
@import 'widgets/frames';
@import 'widgets/patchbay';
@import 'widgets/keyboard';

View file

@ -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;

View 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);
}
}
}