diff --git a/src/components/alert/alert.scss b/src/components/alert/alert.scss index e69de29bb2..d3774427ac 100644 --- a/src/components/alert/alert.scss +++ b/src/components/alert/alert.scss @@ -0,0 +1,37 @@ + +// Alert +// -------------------------------------------------- + +$alert-width: 270px !default; +$alert-min-height: 100px !default; +$alert-padding: 15px !default; +$alert-background-color: #fff !default; + + +.pane > .pane-container.alert-container { + position: absolute; + z-index: $z-index-alert; + display: block; + + top: 40%; + left: 50%; + width: $alert-width; + margin-left: -$alert-width / 2; + + background: $alert-background-color; +} + +.alert-content { + margin: 0; + padding: $alert-padding; + min-height: $alert-min-height; +} + +.alert-action { + @include flex-display(); + + .button { + @include flex-display(); + @include flex(1); + } +} diff --git a/src/components/alert/test/basic/main.html b/src/components/alert/test/basic/main.html index d144b12802..6109a44628 100644 --- a/src/components/alert/test/basic/main.html +++ b/src/components/alert/test/basic/main.html @@ -1,21 +1,19 @@ -
+
-
+
-
+
-
-
- -

Do you like cookies?

- - - - -
-
+
+
Do you like cookies?
+
+
+ +
+ +
diff --git a/src/components/alert/test/basic/main.js b/src/components/alert/test/basic/main.js index e69de29bb2..d0bbf22754 100644 --- a/src/components/alert/test/basic/main.js +++ b/src/components/alert/test/basic/main.js @@ -0,0 +1,17 @@ +import {bootstrap} from 'angular2/core'; +import {Component, Template} from 'angular2/angular2'; +import {View} from 'ionic2/components/view/view'; +import {Content} from 'ionic2/components/content/content'; + +@Component({ selector: '[ion-app]' }) +@Template({ + url: 'main.html', + directives: [View, Content] +}) +class IonicApp { + constructor() { + console.log('IonicApp Start') + } +} + +bootstrap(IonicApp) diff --git a/src/components/app/_z-index.scss b/src/components/app/_z-index.scss index 4e750c5e1f..37e5ebf977 100644 --- a/src/components/app/_z-index.scss +++ b/src/components/app/_z-index.scss @@ -3,5 +3,6 @@ // -------------------------------------------------- +$z-index-alert: 100; $z-index-content: 1; $z-index-list-border: 50; diff --git a/src/components/app/ionic.scss b/src/components/app/ionic.scss index 57d516e577..a2d3f0c287 100644 --- a/src/components/app/ionic.scss +++ b/src/components/app/ionic.scss @@ -22,6 +22,7 @@ // Default Components @import + "../alert/alert", "../aside/aside", "../button/button", "../checkbox/checkbox",