uimodal tweak, inspector help modal

This commit is contained in:
bordun 2020-03-06 20:18:40 +01:00
parent b090657b69
commit 2c86691bb8
14 changed files with 148 additions and 188 deletions

View file

@ -1,15 +1,10 @@
$padding: 8rem;
.file-browser {
width: 540rem;
height: 360rem;
max-width: 100%;
display: flex;
flex-direction: column;
flex: 1;
padding: 2rem $padding $padding;
background: var(--color-ui-background);
.ariane {
height: 40rem;

View file

@ -235,11 +235,15 @@ osc-inspector-color {
}
.color-picker-modal {
padding: 8rem;
background: var(--color-ui-background);
flex: 1;
display: flex;
flex-direction: column;
.widget {
background: var(--color-background);
flex: 1;
width: 100%;
}
.actions {
@ -256,3 +260,39 @@ osc-inspector-color {
}
}
.inspector-help {
width: 100%;
padding: 8rem;
background: var(--color-background);
.error {
color: red;
margin-top: 10rem;
}
em {
font-style: italic;
}
code {
color: var(--color-accent);
padding: 1rem 3rem;
background: rgba(black, 0.2);
display: inline-block;
user-select: auto;
cursor: auto;
::selection{/* reset */}
}
a {
text-decoration: underline;
cursor: pointer;
}
.pre {
white-space: pre;
vertical-align: text-top;
}
.help {
margin-top: 10rem;
white-space: normal;
}
}

View file

@ -1,72 +0,0 @@
$padding: 8rem;
.lobby {
width: 540rem;
height: 360rem;
max-width: 100%;
display: flex;
flex-direction: column;
flex: 1;
background: var(--color-ui-background);
padding: 2rem $padding $padding;
.list {
overflow: auto;
text-transform: none;
flex: 1;
background: var(--color-background);
padding: 0 $padding;
a {
padding-right: 30rem;
}
}
.footer {
margin-top: $padding;
white-space: nowrap;
text-overflow: ellipsis;
flex-grow: 0;
display: flex;
flex-direction: row;
a {
margin-left: $padding;
text-align: center;
background: var(--color-background);
&: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

@ -2,7 +2,7 @@ $padding: 8rem;
@keyframes popup-backdrop-fade-in {
0% {opacity: 0}
100% {opacity: .1}
100% {opacity: .03}
}
.popup {
@ -15,10 +15,10 @@ $padding: 8rem;
left:0;
right:0;
bottom:0;
background: black;
opacity: .1;
background: white;
opacity: .03;
pointer-events: none;
animation: popup-backdrop-fade-in .25s forwards;
// animation: popup-backdrop-fade-in .25s forwards;
}
@ -29,11 +29,11 @@ $padding: 8rem;
left:0;
right:0;
bottom:0;
padding:10%;
align-items:center;
justify-content: center;
z-index: 99999999;
display: none;
padding: 20rem;
&.show {
display: flex;
@ -80,13 +80,20 @@ $padding: 8rem;
flex-direction: column;
align-items: stretch;
width:auto;
max-width:600rem;
max-height: 100%;
position: relative;
overflow: hidden;
max-width: 100%;
max-height: 100%;
width: var(--width, 540rem);
height: var(--height, auto);
.popup-content {
flex:1;
width: auto;
padding: 2rem $padding $padding;
min-height: 0;
display: flex;
}
}
}

View file

@ -17,3 +17,30 @@
}
}
.widget.editing {
z-index: 9999!important;
}
.widget.editing:after,
.tablink.editing:after,
.modal-container.editing > .popup > .popup-wrapper:after {
content:"";
z-index: 999!important;
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
border:1rem solid var(--color-accent);
--opa1: rgba(0,0,0, 1);
--opa2: rgba(0,0,0, 0.2);
--opa3: rgba(0,0,0, 0.8);
-webkit-mask: linear-gradient(to right, var(--opa1) 10rem, var(--opa1) 10rem, var(--opa2) 10rem, var(--opa2) calc(100% - 10rem), var(--opa1) calc(100% - 10rem), var(--opa1)),
linear-gradient(to bottom, var(--opa2) 10rem, var(--opa2) 10rem, var(--opa3) 10rem, var(--opa3) calc(100% - 10rem), var(--opa2) calc(100% - 10rem), var(--opa2)) ;
-webkit-mask-composite: xor;
pointer-events: none;
box-shadow: none!important;
opacity: 1!important;
}