be4 copy paste any widget

This commit is contained in:
bordun 2020-03-06 15:42:23 +01:00
parent 9744fe422b
commit 8edcb8d044
32 changed files with 412 additions and 356 deletions

View file

@ -5,7 +5,6 @@
@import 'ui';
@import 'editor';
@import 'sidepanel';
@import 'widgets';
input,

View file

@ -1,148 +0,0 @@
//
// #sidepanel {
// position:absolute;
// z-index: 999999;
// width:var(--sidepanel-size);
// max-width: calc(100% - 45rem);
// min-width: 300rem;
// border-top: 2rem solid var(--color-bg);
// border-bottom: 2rem solid var(--color-bg);
// border-right: 2rem solid var(--color-bg);
// top:0;
// right:0;
// bottom:0;
// margin-right:calc(-1 * var(--sidepanel-size));
// background:var(--color-bg);
// transition:transform .25s, opacity .25s;
// transform: translate3d(0,0,0);
// opacity: 0;
// box-shadow: 0 0 15rem 0 rgba(black, 0.3);
// display: flex;
// flex-direction: column;
//
// #sidepanel-wrapper {
// overflow-y: auto;
// overflow-x: visible;
// display: flex;
// flex-direction: column;
// flex:1;
// }
//
// &.sidepanel-open {
// transform: translate3d(calc(-1 * var(--sidepanel-size)),0,0);
// opacity: 1;
// }
//
// &.hide {
// z-index: -1;
// pointer-events: none;
// margin-right: 0;
// }
//
// .navigation {
// margin-bottom:2rem;
// margin-left: 0;
// li {
// cursor:default;
// }
// a {
// text-transform: none;
// color: var(--color-accent);
// justify-content: center;
// }
// }
// #options {
// box-shadow: 0 0 0 1rem var(--color-light) inset;
// background: var(--color-fg);
// padding: 8rem;
// flex: 1 1 auto;
// flex-shrink:0;
//
// li {
// display: block;
// margin-bottom: 8rem;
// &:last-child {
// margin-bottom:0;
// }
// }
// }
// }
// .actions {
// padding:0.5rem;
// background:var(--color-bg);
// display: flex;
// align-items: stretch;
// flex-wrap:wrap;
// .title {
// flex: 1 1 100%;
// background: var(--color-fg);
// box-shadow: 0 0 0 1rem var(--color-light) inset;
// padding: 13rem 10rem;
// position: relative;
// margin: 0.5rem;
// &.disabled {
// color:var(--color-text-fade);
// }
// &:before {
// content:"";
// position: absolute;
// top:0;
// left:0;
// right:0;
// bottom:0;
// box-shadow: 0 0 0 1rem;
// color:var(--color-bg);
// }
//
// }
// a {
// // flex: 4 1 32%;
// flex:1;
// min-width: 32%;
// padding:13rem 10rem;
// display: block;
// text-align: center;
// position: relative;
// color:var(--color-text);
// overflow: visible;
// margin: 0.5rem;
// &.narrow {
// width: auto;
// min-width: 40rem;
// flex:0;
// }
//
//
// &.on {
// z-index: 0;
// color: var(--color-custom);
// &:not(.toggle) {
// pointer-events: none;
// }
// &:after {
// content: "";
// position: absolute;
// top:0;
// left: 0;
// right: 0;
// bottom: 0;
// opacity: 0.4;
// background: radial-gradient( ellipse at center, transparent, var(--color-bg));
// }
// &:before {
// content:"";
// position: absolute;
// top:0;
// left: 0;
// right: 0;
// bottom: 0;
// opacity: 0.3;
// box-shadow: 0 0 0 1rem var(--color-custom) inset;
// border-radius: inherit;
// }
// }
//
// }
// }

View file

@ -42,7 +42,8 @@ $line-height: 30rem;
width: 10rem;
text-align: center;
line-height: $line-height - 2;
font-size: 90%;
font-size: 9rem;
pointer-events: none;
}
&.focus {
> .context-menu {
@ -95,6 +96,7 @@ $line-height: 30rem;
flex: 1;
text-transform: capitalize;
opacity: 0.5;
pointer-events: none;
}
}
.separator{

View file

@ -38,7 +38,7 @@
}
.content {
padding: 10rem;
white-space: normal;
white-space: pre-line;
text-transform: none;
line-height: normal;
}

View file

@ -12,6 +12,11 @@ osc-workspace {
flex-direction: row;
overflow: hidden;
background-image: url(../assets/logo.png);
background-size: 80rem;
background-position: center;
background-repeat: no-repeat;
}
osc-panel-container {

View file

@ -28,7 +28,7 @@
z-index: 10;
}
&.nolabel {
&.no-label {
> .label {
display:none;
}
@ -41,7 +41,7 @@
border-bottom-left-radius:inherit;
min-height: 0;
}
&.nolabel > .label ~ div {
&.no-label > .label ~ div {
border-radius: inherit;
}

View file

@ -210,7 +210,7 @@
width: 100rem;
height:60rem;
padding:1rem;
&.nolabel {
&.no-label {
--color-border:var(--color-bg);
padding: 0;
.file {

View file

@ -8,7 +8,7 @@
}
height:200rem;
width:200rem;
&.nolabel .matrix {
&.no-label .matrix {
top:0;
}

View file

@ -81,7 +81,7 @@
}
}
&.nolabel {
&.no-label {
> .panel {
top:-1rem;
}

View file

@ -234,7 +234,7 @@
}
}
}
.editor-enabled .frame-container.nolabel iframe {
.editor-enabled .frame-container.no-label iframe {
pointer-events: none;
}

View file

@ -4,7 +4,7 @@
height:100rem;
padding:1rem;
&.nolabel {
&.no-label {
--color-border:var(--color-bg);
padding: 0;
.switch, .switcher {
@ -147,7 +147,7 @@
width:100rem;
height: 60rem;
padding:1rem;
&.nolabel {
&.no-label {
--color-border:var(--color-bg);
padding: 0;
.select {

View file

@ -45,7 +45,7 @@
z-index: 10;
}
&.nolabel {
&.no-label {
> label {
display:none;
}

View file

@ -66,12 +66,19 @@
}
&.horizontal inner {
&.layout-horizontal inner {
flex-direction: row;
}
&.layout-grid inner {
display:grid;
}
value {
position: relative;

View file

@ -40,6 +40,9 @@
max-height: 100%;
max-width: 100%;
}
> .flex-expand {
flex: 1
}
}
&.layout-vertical > inner {
display: flex;
@ -55,7 +58,9 @@
max-height: 100%;
max-width: 100%;
}
> .flex-expand {
flex: 1
}
}
&.layout-grid > inner {
display: grid;
@ -92,6 +97,14 @@
padding: 0;
}
}
&.vertical-tabs {
> inner {
flex-direction: row;
}
}
}
}
@ -139,12 +152,15 @@
}
}
&.contains-widgets.nolabel > inner {
&.contains-widgets.no-label > inner {
border-top: 1rem solid var(--color-background);
}
&.contains-tabs > inner > .navigation {
margin: 0 1rem;
&.vertical {
margin: 1rem 0;
}
}
@ -154,7 +170,6 @@
@extend .widget-panel-base;
--widget-padding: 1rem;
--alpha-fill-on: 0.75;
width: 100%;
@ -209,6 +224,8 @@
text-overflow: ellipsis;
padding: 0 8rem;
overflow: hidden!important;
white-space: pre-wrap;
text-align: center;
i {
pointer-events: none;
@ -228,13 +245,6 @@
background: var(--color-fill);
z-index: 101;
}
&:last-child {
margin-right:0;
margin-left: auto;
i {
font-size: 14rem;
}
}
&:first-child:before {
margin-left: 1rem;
}
@ -244,6 +254,43 @@
}
}
&.vertical {
flex-direction: column;
height: 100%;
padding-bottom: 0;
padding-right: 1rem;
div {
height: 100%;
padding: 0 12rem;
line-height: normal;
// justify-content: flex-start;
// text-align: left;
&.on:before {
content: "";
position: absolute;
left: auto;
top: 0rem;
right: 0rem;
bottom: 0rem;
opacity: var(--alpha-fill-on);
width: 4rem;
height: auto;
background: var(--color-fill);
z-index: 101;
}
&:first-child:before {
margin-top: 1rem;
margin-left: 0;
}
&:last-child:before {
margin-bottom: 1rem;
margin-right: 0;
}
}
}
}

View file

@ -52,4 +52,10 @@
--widget-padding: 1rem;
--alpha-stroke: 0.75;
&.design-classic {
--alpha-stroke: 0.5;
--alpha-fill-off: 0.25;
--alpha-fill-on: 1;
}
}