diff --git a/dist/css/ionic-ios7.css b/dist/css/ionic-ios7.css
index e1ac29355a..5134341f41 100644
--- a/dist/css/ionic-ios7.css
+++ b/dist/css/ionic-ios7.css
@@ -551,17 +551,17 @@ a.subdued {
height: 44px;
border-width: 0;
border-style: solid;
- background-color: white;
border-top: 1px solid transparent;
- border-bottom: 1px solid #dddddd; }
+ border-bottom: 1px solid #dddddd;
+ background-color: white; }
@media (min--moz-device-pixel-ratio: 1.5), (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi), (min-resolution: 1.5dppx) {
.bar {
border-top: none;
border-bottom: none;
background-image: linear-gradient(0deg, #dddddd, #dddddd, 50%, transparent 50%);
+ background-position: bottom;
background-size: 100% 1px;
- background-repeat: no-repeat;
- background-position: bottom; } }
+ background-repeat: no-repeat; } }
.bar.bar-clear {
border: none;
background: none;
@@ -705,19 +705,20 @@ a.subdued {
line-height: 44px; }
.bar .title a {
color: inherit; }
- .bar .button {
+ .bar > .button {
box-flex: 1;
-webkit-box-flex: 0;
-moz-box-flex: 0;
z-index: 1;
margin: 0;
- padding: 4px 12px;
+ padding: 2px 8px 0 8px;
+ min-height: 34px;
background-color: transparent;
font-size: 12px;
- line-height: 23px; }
- .bar .button.button-clear {
- padding: 0 5px;
- line-height: 34px; }
+ line-height: 28px; }
+ .bar > .button [class^="icon-"],
+ .bar > .button [class*=" icon-"] {
+ margin-top: 1px; }
.bar .button-bar {
line-height: 18px; }
.bar .button-bar + .button, .bar .button + .button-bar {
@@ -867,14 +868,6 @@ a.subdued {
box-shadow: none;
font-size: 17px; }
-.bar [class^="icon-"],
-.bar [class*=" icon-"] {
- font-size: 24px; }
-
-.bar .button-icon {
- border: 1px solid transparent;
- background-color: transparent; }
-
.bar-header {
top: 0; }
@@ -1885,21 +1878,31 @@ input[type="range"] {
position: relative;
display: inline-block;
margin: 0;
- padding: 8px 12px;
+ padding: 9px 12px 7px 12px;
+ min-height: 44px;
border-width: 1px;
border-style: solid;
border-radius: 2px;
color: #222222;
- vertical-align: middle;
+ vertical-align: top;
text-align: center;
- font-size: 16px;
- line-height: 20px;
text-overflow: ellipsis;
+ font-size: 16px;
+ line-height: 24px;
cursor: pointer; }
+ .button [class^="icon-"],
+ .button [class*=" icon-"] {
+ display: inline-block;
+ padding: 0;
+ vertical-align: sub;
+ font-size: 24px;
+ line-height: 24px; }
.button.button-icon {
padding: 4px 5px;
- border: none;
background: none; }
+ .button.button-icon [class^="icon-"],
+ .button.button-icon [class*=" icon-"] {
+ font-size: 32px; }
.button.button-clear {
-webkit-transition: opacity 0.1s;
transition: opacity 0.1s;
diff --git a/dist/css/ionic-scoped.css b/dist/css/ionic-scoped.css
index 25c3c5d41b..3fc8df67a6 100644
--- a/dist/css/ionic-scoped.css
+++ b/dist/css/ionic-scoped.css
@@ -1317,17 +1317,17 @@
height: 44px;
border-width: 0;
border-style: solid;
- background-color: white;
border-top: 1px solid transparent;
- border-bottom: 1px solid #dddddd; }
+ border-bottom: 1px solid #dddddd;
+ background-color: white; }
@media (min--moz-device-pixel-ratio: 1.5), (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi), (min-resolution: 1.5dppx) {
.ionic .bar {
border-top: none;
border-bottom: none;
background-image: linear-gradient(0deg, #dddddd, #dddddd, 50%, transparent 50%);
+ background-position: bottom;
background-size: 100% 1px;
- background-repeat: no-repeat;
- background-position: bottom; } }
+ background-repeat: no-repeat; } }
.ionic .bar.bar-clear {
border: none;
background: none;
@@ -1471,19 +1471,20 @@
line-height: 44px; }
.ionic .bar .title a {
color: inherit; }
- .ionic .bar .button {
+ .ionic .bar > .button {
box-flex: 1;
-webkit-box-flex: 0;
-moz-box-flex: 0;
z-index: 1;
margin: 0;
- padding: 4px 12px;
+ padding: 2px 8px 0 8px;
+ min-height: 34px;
background-color: transparent;
font-size: 12px;
- line-height: 23px; }
- .ionic .bar .button.button-clear {
- padding: 0 5px;
- line-height: 34px; }
+ line-height: 28px; }
+ .ionic .bar > .button [class^="icon-"],
+ .ionic .bar > .button [class*=" icon-"] {
+ margin-top: 1px; }
.ionic .bar .button-bar {
line-height: 18px; }
.ionic .bar .button-bar + .button, .ionic .bar .button + .button-bar {
@@ -1624,12 +1625,6 @@
background: none;
box-shadow: none;
font-size: 17px; }
- .ionic .bar [class^="icon-"],
- .ionic .bar [class*=" icon-"] {
- font-size: 24px; }
- .ionic .bar .button-icon {
- border: 1px solid transparent;
- background-color: transparent; }
.ionic .bar-header {
top: 0; }
.ionic .bar-footer {
@@ -2583,21 +2578,31 @@
position: relative;
display: inline-block;
margin: 0;
- padding: 8px 12px;
+ padding: 9px 12px 7px 12px;
+ min-height: 44px;
border-width: 1px;
border-style: solid;
border-radius: 2px;
color: #222222;
- vertical-align: middle;
+ vertical-align: top;
text-align: center;
- font-size: 16px;
- line-height: 20px;
text-overflow: ellipsis;
+ font-size: 16px;
+ line-height: 24px;
cursor: pointer; }
+ .ionic .button [class^="icon-"],
+ .ionic .button [class*=" icon-"] {
+ display: inline-block;
+ padding: 0;
+ vertical-align: sub;
+ font-size: 24px;
+ line-height: 24px; }
.ionic .button.button-icon {
padding: 4px 5px;
- border: none;
background: none; }
+ .ionic .button.button-icon [class^="icon-"],
+ .ionic .button.button-icon [class*=" icon-"] {
+ font-size: 32px; }
.ionic .button.button-clear {
-webkit-transition: opacity 0.1s;
transition: opacity 0.1s;
diff --git a/dist/css/ionic.css b/dist/css/ionic.css
index b0bda1a4d7..32aa232667 100644
--- a/dist/css/ionic.css
+++ b/dist/css/ionic.css
@@ -1660,17 +1660,17 @@ a.subdued {
height: 44px;
border-width: 0;
border-style: solid;
- background-color: white;
border-top: 1px solid transparent;
- border-bottom: 1px solid #dddddd; }
+ border-bottom: 1px solid #dddddd;
+ background-color: white; }
@media (min--moz-device-pixel-ratio: 1.5), (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi), (min-resolution: 1.5dppx) {
.bar {
border-top: none;
border-bottom: none;
background-image: linear-gradient(0deg, #dddddd, #dddddd, 50%, transparent 50%);
+ background-position: bottom;
background-size: 100% 1px;
- background-repeat: no-repeat;
- background-position: bottom; } }
+ background-repeat: no-repeat; } }
.bar.bar-clear {
border: none;
background: none;
@@ -1814,19 +1814,20 @@ a.subdued {
line-height: 44px; }
.bar .title a {
color: inherit; }
- .bar .button {
+ .bar > .button {
box-flex: 1;
-webkit-box-flex: 0;
-moz-box-flex: 0;
z-index: 1;
margin: 0;
- padding: 4px 12px;
+ padding: 2px 8px 0 8px;
+ min-height: 34px;
background-color: transparent;
font-size: 12px;
- line-height: 23px; }
- .bar .button.button-clear {
- padding: 0 5px;
- line-height: 34px; }
+ line-height: 28px; }
+ .bar > .button [class^="icon-"],
+ .bar > .button [class*=" icon-"] {
+ margin-top: 1px; }
.bar .button-bar {
line-height: 18px; }
.bar .button-bar + .button, .bar .button + .button-bar {
@@ -1976,14 +1977,6 @@ a.subdued {
box-shadow: none;
font-size: 17px; }
-.bar [class^="icon-"],
-.bar [class*=" icon-"] {
- font-size: 24px; }
-
-.bar .button-icon {
- border: 1px solid transparent;
- background-color: transparent; }
-
.bar-header {
top: 0; }
@@ -3106,21 +3099,31 @@ input[type="range"] {
position: relative;
display: inline-block;
margin: 0;
- padding: 8px 12px;
+ padding: 9px 12px 7px 12px;
+ min-height: 44px;
border-width: 1px;
border-style: solid;
border-radius: 2px;
color: #222222;
- vertical-align: middle;
+ vertical-align: top;
text-align: center;
- font-size: 16px;
- line-height: 20px;
text-overflow: ellipsis;
+ font-size: 16px;
+ line-height: 24px;
cursor: pointer; }
+ .button [class^="icon-"],
+ .button [class*=" icon-"] {
+ display: inline-block;
+ padding: 0;
+ vertical-align: sub;
+ font-size: 24px;
+ line-height: 24px; }
.button.button-icon {
padding: 4px 5px;
- border: none;
background: none; }
+ .button.button-icon [class^="icon-"],
+ .button.button-icon [class*=" icon-"] {
+ font-size: 32px; }
.button.button-clear {
-webkit-transition: opacity 0.1s;
transition: opacity 0.1s;
diff --git a/scss/ionic/_bar.scss b/scss/ionic/_bar.scss
index 0c26064692..1b66fc8766 100644
--- a/scss/ionic/_bar.scss
+++ b/scss/ionic/_bar.scss
@@ -18,24 +18,24 @@
height: $bar-height;
border-width: 0;
border-style: solid;
-
- background-color: $bar-bg;
border-top: 1px solid transparent;
border-bottom: 1px solid $bar-default-border-color;
+
+ background-color: $bar-bg;
@media (min--moz-device-pixel-ratio: 1.5),
(-webkit-min-device-pixel-ratio: 1.5),
(min-device-pixel-ratio: 1.5),
(min-resolution: 144dpi),
(min-resolution: 1.5dppx) {
- border-top: none;
- border-bottom: none;
- background-image: linear-gradient(0deg, $bar-default-border-color, $bar-default-border-color, 50%, transparent 50%);
- background-size: 100% 1px;
- background-repeat: no-repeat;
- background-position: bottom;
+ border-top: none;
+ border-bottom: none;
+ background-image: linear-gradient(0deg, $bar-default-border-color, $bar-default-border-color, 50%, transparent 50%);
+ background-position: bottom;
+ background-size: 100% 1px;
+ background-repeat: no-repeat;
- }
+ }
&.bar-clear {
border: none;
@@ -109,22 +109,22 @@
color: inherit;
}
- .button {
+ > .button {
@include box-flex(0);
z-index: 1;
margin: 0;
- padding: 4px 12px;
+ padding: 2px 8px 0 8px;
+ min-height: 34px;
background-color: transparent;
font-size: 12px;
- line-height: $bar-button-line-height;
+ line-height: 28px;
- &.button-clear {
- padding: 0 5px;
- line-height: $bar-button-clear-line-height;
+ [class^="icon-"],
+ [class*=" icon-"] {
+ margin-top: 1px;
}
}
-
.button-bar {
line-height: $bar-button-bar-line-height;
}
@@ -200,16 +200,6 @@
}
}
-.bar [class^="icon-"],
-.bar [class*=" icon-"] {
- font-size: 24px;
-}
-
-.bar .button-icon {
- border: $button-border-width solid transparent;
- background-color: transparent;
-}
-
// Header at top
.bar-header {
top: 0;
diff --git a/scss/ionic/_button.scss b/scss/ionic/_button.scss
index c7f13448b6..bca9fb733e 100644
--- a/scss/ionic/_button.scss
+++ b/scss/ionic/_button.scss
@@ -1,31 +1,43 @@
.button {
position: relative;
display: inline-block;
-
margin: 0;
- padding: $button-padding;
+ padding: 9px 12px 7px 12px;
+ min-height: 44px;
border-width: $button-border-width;
border-style: solid;
border-radius: $button-border-radius;
color: $button-color;
-
- vertical-align: middle;
+ vertical-align: top;
text-align: center;
- font-size: $button-font-size;
- line-height: $line-height-computed;
text-overflow: ellipsis;
+ font-size: $button-font-size;
+ line-height: 24px;
cursor: pointer;
+ [class^="icon-"],
+ [class*=" icon-"] {
+ display: inline-block;
+ padding: 0;
+ vertical-align: sub;
+ font-size: 24px;
+ line-height: 24px;
+ }
+
&.button-icon {
padding: $button-clear-padding;
- border: none;
background: none;
+
+ [class^="icon-"],
+ [class*=" icon-"] {
+ font-size: 32px;
+ }
}
&.button-clear {
@@ -102,6 +114,7 @@
margin-bottom: $button-block-margin;
}
+
}
.padding > .button.block:first-child {
diff --git a/scss/ionic/_mixins.scss b/scss/ionic/_mixins.scss
index 9237297981..341615ae81 100644
--- a/scss/ionic/_mixins.scss
+++ b/scss/ionic/_mixins.scss
@@ -401,7 +401,7 @@
display: flex;
}
-@mixin dislay-inline {
+@mixin dislay-inline-flex {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -moz-inline-flex;
diff --git a/test/buttons.html b/test/buttons.html
index 63f6ccf2d5..e70daeaa67 100644
--- a/test/buttons.html
+++ b/test/buttons.html
@@ -24,212 +24,41 @@
Buttons
-
-
+
+
+
+ a.block (parent w/out padding)
+
+ .button-default
+ .button-secondary
+ .button-primary
+ .button-info
+ .button-success
+ .button-warning
+ .button-danger
+ .button-dark
+
+
+
+
+ a.block (.button-full on the parent)
+
+ .button-default
+ .button-secondary
+ .button-primary
+ .button-info
+ .button-success
+ .button-warning
+ .button-danger
+ .button-dark
+
+
+
+
+ button.block.button-full on each button and nothing on the parent
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Homepage
+
+
+