modal: refactor modal to look like popups
This commit is contained in:
parent
cca058a862
commit
36c5aebdf4
4 changed files with 80 additions and 82 deletions
|
|
@ -400,7 +400,7 @@ i {
|
|||
.popup-title {
|
||||
position: relative;
|
||||
padding:15rem;
|
||||
background:var(--color-raised);
|
||||
background:var(--color-light-fg);
|
||||
border-bottom: 1rem solid var(--color-bg);
|
||||
box-shadow: 0 1rem 0 0 var(--color-light) inset;
|
||||
|
||||
|
|
@ -420,7 +420,6 @@ i {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
background:var(--color-fg);
|
||||
width:auto;
|
||||
max-width:600rem;
|
||||
margin:0 auto;
|
||||
|
|
@ -433,6 +432,7 @@ i {
|
|||
padding:10rem;
|
||||
overflow-y:auto;
|
||||
white-space: normal;
|
||||
background:var(--color-fg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,71 +93,39 @@
|
|||
> .label {
|
||||
top:0;
|
||||
}
|
||||
|
||||
> .panel {
|
||||
display: none!important;
|
||||
background: var(--color-fg);
|
||||
transform: translateZ(0);
|
||||
cursor: default;
|
||||
&.on {
|
||||
transform: translateZ(0);
|
||||
display: block!important;
|
||||
&.has-tabs {
|
||||
display: flex!important;
|
||||
> .popup {
|
||||
> .popup-wrapper {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: var(--width, 100%);
|
||||
height: var(--height, 100%);
|
||||
.popup-content {
|
||||
padding:0;
|
||||
background: transparent;
|
||||
> .panel {
|
||||
background-color: var(--color-fg);
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height:100%;
|
||||
top:-1rem;
|
||||
left:-1rem;
|
||||
}
|
||||
}
|
||||
position: absolute;
|
||||
top:var(--nav-height);
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
border-right:0;
|
||||
height: auto!important;
|
||||
border-top:1rem solid var(--color-bg);
|
||||
box-shadow: 0 1rem 0 0 var(--color-bg) inset;
|
||||
}
|
||||
}
|
||||
|
||||
&.editing .popup-wrapper:after {
|
||||
content:"";
|
||||
z-index: 999;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
border:1rem dashed var(--color-accent);
|
||||
pointer-events: none;
|
||||
}
|
||||
&.on {
|
||||
position: fixed;
|
||||
top:0!important;
|
||||
left:0!important;
|
||||
right:0!important;
|
||||
bottom:0!important;
|
||||
width: auto!important;
|
||||
height: auto!important;
|
||||
border:0;
|
||||
z-index: 99999;
|
||||
> .light, > .label {
|
||||
min-height:auto!important;
|
||||
height:var(--nav-height)!important;
|
||||
flex:0;
|
||||
}
|
||||
> .light {
|
||||
position: relative;
|
||||
box-shadow: none;
|
||||
box-shadow: 0 2rem 0 0 var(--color-bg);
|
||||
z-index: 1;
|
||||
}
|
||||
> .light:after {
|
||||
content:"\f00d";
|
||||
transform: none;
|
||||
width:calc(var(--nav-height));
|
||||
height:var(--nav-height);
|
||||
line-height: var(--nav-height);
|
||||
background:var(--color-fg);
|
||||
padding:0;
|
||||
opacity: 1;
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: auto;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
// border-right: 1rem solid var(--color-bg);
|
||||
box-shadow: -1rem 0 0 0 var(--color-bg), 0 1rem 0 0 var(--color-light) inset;
|
||||
}
|
||||
> .light:before {
|
||||
transition:all .2s;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue