summaryrefslogtreecommitdiff
path: root/www/lib/ionic/scss/_popup.scss
diff options
context:
space:
mode:
Diffstat (limited to 'www/lib/ionic/scss/_popup.scss')
-rw-r--r--www/lib/ionic/scss/_popup.scss110
1 files changed, 110 insertions, 0 deletions
diff --git a/www/lib/ionic/scss/_popup.scss b/www/lib/ionic/scss/_popup.scss
new file mode 100644
index 00000000..a3e521a6
--- /dev/null
+++ b/www/lib/ionic/scss/_popup.scss
@@ -0,0 +1,110 @@
+
+/**
+ * Popups
+ * --------------------------------------------------
+ */
+
+.popup-container {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ background: rgba(0,0,0,0);
+
+ @include display-flex();
+ @include justify-content(center);
+ @include align-items(center);
+
+ z-index: $z-index-popup;
+
+ // Start hidden
+ visibility: hidden;
+ &.popup-showing {
+ visibility: visible;
+ }
+
+ &.popup-hidden .popup {
+ @include animation-name(scaleOut);
+ @include animation-duration($popup-leave-animation-duration);
+ @include animation-timing-function(ease-in-out);
+ @include animation-fill-mode(both);
+ }
+
+ &.active .popup {
+ @include animation-name(superScaleIn);
+ @include animation-duration($popup-enter-animation-duration);
+ @include animation-timing-function(ease-in-out);
+ @include animation-fill-mode(both);
+ }
+
+ .popup {
+ width: $popup-width;
+ max-width: 100%;
+ max-height: 90%;
+
+ border-radius: $popup-border-radius;
+ background-color: $popup-background-color;
+
+ @include display-flex();
+ @include flex-direction(column);
+ }
+
+ input,
+ textarea {
+ width: 100%;
+ }
+}
+
+.popup-head {
+ padding: 15px 10px;
+ border-bottom: 1px solid #eee;
+ text-align: center;
+}
+.popup-title {
+ margin: 0;
+ padding: 0;
+ font-size: 15px;
+}
+.popup-sub-title {
+ margin: 5px 0 0 0;
+ padding: 0;
+ font-weight: normal;
+ font-size: 11px;
+}
+.popup-body {
+ padding: 10px;
+ overflow: auto;
+}
+
+.popup-buttons {
+ @include display-flex();
+ @include flex-direction(row);
+ padding: 10px;
+ min-height: $popup-button-min-height + 20;
+
+ .button {
+ @include flex(1);
+ display: block;
+ min-height: $popup-button-min-height;
+ border-radius: $popup-button-border-radius;
+ line-height: $popup-button-line-height;
+
+ margin-right: 5px;
+ &:last-child {
+ margin-right: 0px;
+ }
+ }
+}
+
+.popup-open {
+ pointer-events: none;
+
+ &.modal-open .modal {
+ pointer-events: none;
+ }
+
+ .popup-backdrop, .popup {
+ pointer-events: auto;
+ }
+}