Work on Portal Style (#4003)

* Reduce Portal size and close on click outside

* PR Grumbles
This commit is contained in:
Nicolas Gotchac
2016-12-31 14:28:16 +01:00
committed by Gav Wood
parent c93d3c1580
commit 0c6a9ebbb9
2 changed files with 48 additions and 12 deletions

View File

@@ -15,6 +15,32 @@
/* along with Parity. If not, see <http://www.gnu.org/licenses/>.
*/
$left: 1.5em;
$right: $left;
$bottom: $left;
$top: 20vh;
.backOverlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.25);
z-index: -10;
opacity: 0;
transform-origin: 100% 0;
transition-property: opacity, z-index;
transition-duration: 0.25s;
transition-timing-function: ease-out;
&.expanded {
opacity: 1;
z-index: 2500;
}
}
.parityBackground {
position: absolute;
top: 0;
@@ -28,10 +54,10 @@
.overlay {
display: flex;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
top: $top;
left: $left;
width: calc(100vw - $left - $right);
height: calc(100vh - $top - $bottom);
transform-origin: 100% 0;
transition-property: opacity, z-index;
@@ -48,7 +74,7 @@
&.expanded {
opacity: 1;
z-index: 9999;
z-index: 3500;
}
}