From 279079b1ec34dd54b620949c2a21acb43d4f995b Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Sat, 31 Aug 2013 18:49:48 -0500 Subject: [PATCH] Fixed panel buttons zindex --- dist/ionic.css | 26 ++++++++++++++------------ example/panel_controller.html | 8 ++++++-- example/tab-bars.html | 6 ------ scss/ionic/_structure-variables.scss | 1 + scss/ionic/structure/_bar.scss | 11 +++++++++++ scss/ionic/structure/_base.scss | 4 ++++ scss/ionic/structure/_button.scss | 1 + scss/ionic/structure/_panel.scss | 5 ++++- scss/ionic/structure/_tabs.scss | 15 +++++---------- 9 files changed, 46 insertions(+), 31 deletions(-) diff --git a/dist/ionic.css b/dist/ionic.css index 326e1f0c73..70ec46d682 100644 --- a/dist/ionic.css +++ b/dist/ionic.css @@ -52,6 +52,9 @@ main > * { width: 100%; height: 100%; } +.rounded { + border-radius: 5px; } + .alert { padding: 8px 35px 8px 14px; } @@ -95,6 +98,7 @@ main > * { */ } .bar .title { position: absolute; + z-index: 0; width: 100%; top: 0; left: 0; @@ -108,8 +112,11 @@ main > * { .buttons { position: absolute; + z-index: 1; padding: 8px; line-height: 6px; } + .buttons .button { + line-height: 6px; } .buttons:first-child { left: 0; @@ -141,7 +148,8 @@ main > * { display: inline-block; vertical-align: middle; text-align: center; - cursor: pointer; } + cursor: pointer; + margin: 0; } .button.button-block { margin: 0 0 10px 0; display: block; } @@ -1052,7 +1060,6 @@ a.list-item { bottom: 0; z-index: 0; overflow-y: scroll; - /* has to be scroll, not auto */ -webkit-overflow-scrolling: touch; } .ion-panel-left { @@ -1084,16 +1091,11 @@ a.list-item { .ptr-content .refreshing { display: none; } -/* Bar docked to bottom used for primary app navigation */ -.tabs { - right: 0; - left: 0; - bottom: 0; - width: 100%; - height: 100%; - padding: 0; - box-sizing: border-box; } - +/** + * Tabs + * + * A navigation bar with any number of tab items supported. + */ .tabs-inner { display: -webkit-box; display: box; diff --git a/example/panel_controller.html b/example/panel_controller.html index 3afd299f9e..ff98328589 100644 --- a/example/panel_controller.html +++ b/example/panel_controller.html @@ -14,9 +14,13 @@
- +
+ Left +

Panels

- +
+ +
diff --git a/example/tab-bars.html b/example/tab-bars.html index 004bc30f72..00ca7666cf 100644 --- a/example/tab-bars.html +++ b/example/tab-bars.html @@ -24,12 +24,6 @@