1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00

slide up/down animations for "modal" style pages

This commit is contained in:
Kyle Spearrin
2016-09-09 18:35:12 -04:00
parent ac0ceac647
commit 59f72d6e09
11 changed files with 95 additions and 15 deletions

View File

@@ -0,0 +1,51 @@
.in-slide-up {
.main-view.ng-enter,
.main-view.ng-leave {
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.main-view.ng-enter {
top: 100%;
z-index: 990;
}
.main-view.ng-enter.ng-enter-active {
top: 0;
}
.main-view.ng-leave {
top: 0;
z-index: 970;
}
.main-view.ng-leave.ng-leave-active {
top: 0;
}
}
.out-slide-down {
.main-view.ng-enter,
.main-view.ng-leave {
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.main-view.ng-enter {
top: 0;
z-index: 970;
}
.main-view.ng-enter.ng-enter-active {
top: 0;
}
.main-view.ng-leave {
top: 0;
z-index: 990;
}
.main-view.ng-leave.ng-leave-active {
top: 100%;
}
}

View File

@@ -1,6 +1,7 @@
@import "../../../node_modules/bootstrap/less/bootstrap.less";
@import "variables.less";
@import "components.less";
@import "animations.less";
body {
width: 320px;
@@ -8,6 +9,13 @@ body {
background-color: @background-color;
}
.main-view {
position: absolute;
width: 100%;
height: 100%;
z-index: 980;
}
.content {
position: absolute;
top: 44px;
@@ -15,6 +23,7 @@ body {
left: 0;
right: 0;
overflow: auto;
background-color: @background-color;
&.content-tabs {
bottom: 55px;