diff --git a/dist/css/ionic-ios7.css b/dist/css/ionic-ios7.css index c4fbc2fab7..a7a55b5fe2 100644 --- a/dist/css/ionic-ios7.css +++ b/dist/css/ionic-ios7.css @@ -390,41 +390,51 @@ body, .ionic-body { .hide { display: none !important; } -.padded { +.padding { padding: 10px; } -.padded-top { - padding-top: 10px; } - -.padded-right { - padding-right: 10px; } - -.padded-bottom { +.padding-vertical { + padding-top: 10px; padding-bottom: 10px; } -.padded-left { +.padding-horizontal { + padding-left: 10px; + padding-right: 10px; } + +.padding-top { + padding-top: 10px; } + +.padding-right { + padding-right: 10px; } + +.padding-bottom { + padding-bottom: 10px; } + +.padding-left { padding-left: 10px; } -.padded-2 { - padding: 20px; } - -.inset { +.margin { margin: 10px; } -.inset-top { - margin-top: 10px; } - -.inset-right { - margin-right: 10px; } - -.inset-bottom { +.margin-vertical { + margin-top: 10px; margin-bottom: 10px; } -.inset-left { - margin-left: 10px; } +.margin-horizontal { + margin-left: 10px; + margin-right: 10px; } -.inset-2 { - margin: 20px; } +.margin-top { + margin-top: 10px; } + +.margin-right { + margin-right: 10px; } + +.margin-bottom { + margin-bottom: 10px; } + +.margin-left { + margin-left: 10px; } .rounded { border-radius: 4px; } @@ -1284,7 +1294,7 @@ textarea { background-color: white; } .padded > .input-group, -.input-group.inset { +.input-group.margin { -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; @@ -1810,8 +1820,8 @@ input[type="checkbox"][readonly] { a.button { text-decoration: none; } -.inset .button, -.padded .button { +.margin .button, +.padding .button { border-right-width: 1px; border-left-width: 1px; border-radius: 2px; } diff --git a/dist/css/ionic-scoped.css b/dist/css/ionic-scoped.css index 9c521dedf3..23aefb3a4a 100644 --- a/dist/css/ionic-scoped.css +++ b/dist/css/ionic-scoped.css @@ -1115,30 +1115,38 @@ .ionic .hidden, .ionic .hide { display: none !important; } - .ionic .padded { + .ionic .padding { padding: 10px; } - .ionic .padded-top { - padding-top: 10px; } - .ionic .padded-right { - padding-right: 10px; } - .ionic .padded-bottom { + .ionic .padding-vertical { + padding-top: 10px; padding-bottom: 10px; } - .ionic .padded-left { + .ionic .padding-horizontal { + padding-left: 10px; + padding-right: 10px; } + .ionic .padding-top { + padding-top: 10px; } + .ionic .padding-right { + padding-right: 10px; } + .ionic .padding-bottom { + padding-bottom: 10px; } + .ionic .padding-left { padding-left: 10px; } - .ionic .padded-2 { - padding: 20px; } - .ionic .inset { + .ionic .margin { margin: 10px; } - .ionic .inset-top { - margin-top: 10px; } - .ionic .inset-right { - margin-right: 10px; } - .ionic .inset-bottom { + .ionic .margin-vertical { + margin-top: 10px; margin-bottom: 10px; } - .ionic .inset-left { + .ionic .margin-horizontal { + margin-left: 10px; + margin-right: 10px; } + .ionic .margin-top { + margin-top: 10px; } + .ionic .margin-right { + margin-right: 10px; } + .ionic .margin-bottom { + margin-bottom: 10px; } + .ionic .margin-left { margin-left: 10px; } - .ionic .inset-2 { - margin: 20px; } .ionic .rounded { border-radius: 4px; } .ionic p { @@ -1918,7 +1926,7 @@ border-bottom: 1px solid #cccccc; background-color: white; } .ionic .padded > .input-group, - .ionic .input-group.inset { + .ionic .input-group.margin { -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; @@ -2435,8 +2443,8 @@ margin: 10px 0 10px 0; } .ionic a.button { text-decoration: none; } - .ionic .inset .button, - .ionic .padded .button { + .ionic .margin .button, + .ionic .padding .button { border-right-width: 1px; border-left-width: 1px; border-radius: 2px; } diff --git a/dist/css/ionic.css b/dist/css/ionic.css index 0a24b1ffef..05fbd12629 100644 --- a/dist/css/ionic.css +++ b/dist/css/ionic.css @@ -1447,41 +1447,51 @@ body, .ionic-body { .hide { display: none !important; } -.padded { +.padding { padding: 10px; } -.padded-top { - padding-top: 10px; } - -.padded-right { - padding-right: 10px; } - -.padded-bottom { +.padding-vertical { + padding-top: 10px; padding-bottom: 10px; } -.padded-left { +.padding-horizontal { + padding-left: 10px; + padding-right: 10px; } + +.padding-top { + padding-top: 10px; } + +.padding-right { + padding-right: 10px; } + +.padding-bottom { + padding-bottom: 10px; } + +.padding-left { padding-left: 10px; } -.padded-2 { - padding: 20px; } - -.inset { +.margin { margin: 10px; } -.inset-top { - margin-top: 10px; } - -.inset-right { - margin-right: 10px; } - -.inset-bottom { +.margin-vertical { + margin-top: 10px; margin-bottom: 10px; } -.inset-left { - margin-left: 10px; } +.margin-horizontal { + margin-left: 10px; + margin-right: 10px; } -.inset-2 { - margin: 20px; } +.margin-top { + margin-top: 10px; } + +.margin-right { + margin-right: 10px; } + +.margin-bottom { + margin-bottom: 10px; } + +.margin-left { + margin-left: 10px; } .rounded { border-radius: 4px; } @@ -2371,7 +2381,7 @@ textarea { background-color: white; } .padded > .input-group, -.input-group.inset { +.input-group.margin { -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; @@ -2928,8 +2938,8 @@ input[type="checkbox"][readonly] { a.button { text-decoration: none; } -.inset .button, -.padded .button { +.margin .button, +.padding .button { border-right-width: 1px; border-left-width: 1px; border-radius: 2px; } diff --git a/example/toderp/index.html b/example/toderp/index.html index 772f650d84..81ccfb1196 100644 --- a/example/toderp/index.html +++ b/example/toderp/index.html @@ -37,7 +37,7 @@

Finish your Top Three Tasks Today

-
+
-
+
Invalid email/password. Please try again.
@@ -63,7 +63,7 @@
-
+
-
+
Unable to signup, please try again.
diff --git a/example/toderp2/index.html b/example/toderp2/index.html index 8d4cec9792..52b8b1c23e 100644 --- a/example/toderp2/index.html +++ b/example/toderp2/index.html @@ -64,7 +64,7 @@
-
+
Unable to signup, please try again.
@@ -84,9 +84,9 @@

Log in

-
+
-
+
-
+
Invalid email/password. Please try again.
@@ -158,7 +158,7 @@

Settings

-
+
Account details Account details diff --git a/js/ext/angular/test/tabs.html b/js/ext/angular/test/tabs.html index d491c64824..f1cdfa7259 100644 --- a/js/ext/angular/test/tabs.html +++ b/js/ext/angular/test/tabs.html @@ -100,7 +100,7 @@

New Task

-
+
diff --git a/scss/ionic/_button.scss b/scss/ionic/_button.scss index fbf4327cb1..0b5780a009 100644 --- a/scss/ionic/_button.scss +++ b/scss/ionic/_button.scss @@ -122,8 +122,8 @@ a.button { text-decoration: none; } -.inset .button, -.padded .button { +.margin .button, +.padding .button { border-right-width: $button-border-width; border-left-width: $button-border-width; border-radius: $button-border-radius; diff --git a/scss/ionic/_form.scss b/scss/ionic/_form.scss index 96f371b1df..99f072e246 100644 --- a/scss/ionic/_form.scss +++ b/scss/ionic/_form.scss @@ -53,7 +53,7 @@ textarea { background-color: $input-bg; } .padded > .input-group, -.input-group.inset { +.input-group.margin { @include border-radius($input-border-radius); border-right: $input-border-width solid $input-border-color; border-left: $input-border-width solid $input-border-color; diff --git a/scss/ionic/_util.scss b/scss/ionic/_util.scss index 510eee1322..134f8c07f0 100644 --- a/scss/ionic/_util.scss +++ b/scss/ionic/_util.scss @@ -4,59 +4,71 @@ } -// Padded +// Content Padding // ------------------------------- -.padded { +.padding { padding: $content-padding; } -.padded-top { +.padding-vertical { padding-top: $content-padding; -} - -.padded-right { - padding-right: $content-padding; -} - -.padded-bottom { padding-bottom: $content-padding; } -.padded-left { +.padding-horizontal { + padding-left: $content-padding; + padding-right: $content-padding; +} + +.padding-top { + padding-top: $content-padding; +} + +.padding-right { + padding-right: $content-padding; +} + +.padding-bottom { + padding-bottom: $content-padding; +} + +.padding-left { padding-left: $content-padding; } -.padded-2 { - padding: $content-padding * 2; -} - -// Inset +// Inset Margin // ------------------------------- -.inset { +.margin { margin: $inset-margin; } -.inset-top { +.margin-vertical { margin-top: $inset-margin; -} - -.inset-right { - margin-right: $inset-margin; -} - -.inset-bottom { margin-bottom: $inset-margin; } -.inset-left { +.margin-horizontal { margin-left: $inset-margin; + margin-right: $inset-margin; } -.inset-2 { - margin: $inset-margin * 2; +.margin-top { + margin-top: $inset-margin; +} + +.margin-right { + margin-right: $inset-margin; +} + +.margin-bottom { + margin-bottom: $inset-margin; +} + +.margin-left { + margin-left: $inset-margin; } diff --git a/test/actionsheet.html b/test/actionsheet.html index 3c750287b7..4997400035 100644 --- a/test/actionsheet.html +++ b/test/actionsheet.html @@ -17,7 +17,7 @@
-
+ diff --git a/test/alerts.html b/test/alerts.html index 4a73569d4c..7cda0496a0 100644 --- a/test/alerts.html +++ b/test/alerts.html @@ -16,7 +16,7 @@

Alerts

-
+

Warning! Best check yo self, you're not looking too good. diff --git a/test/button-bar.html b/test/button-bar.html index 9040d2d12d..68a0b771c9 100644 --- a/test/button-bar.html +++ b/test/button-bar.html @@ -14,7 +14,7 @@

-
+

Success diff --git a/test/buttons.html b/test/buttons.html index fbd3734be6..dcd012f54f 100644 --- a/test/buttons.html +++ b/test/buttons.html @@ -16,9 +16,9 @@
-
+
-

Default (Block w/ parent .padded)

+

Default (Block w/ parent .padding)

Default Secondary @@ -106,7 +106,7 @@

-

Default (Block w/out padded)

+

Default (Block w/out padding)

Default Secondary @@ -118,8 +118,8 @@ Dark

-

Default (Block w/out padded and parent .inset)

-

+

Default (Block w/out padding and parent .margin)

+

Default Secondary Primary diff --git a/test/cards.html b/test/cards.html index 2e7eb06818..6f54a0fe36 100644 --- a/test/cards.html +++ b/test/cards.html @@ -16,7 +16,7 @@

Cards

-
+
todo

Homepage

diff --git a/test/controllers/sideMenu.html b/test/controllers/sideMenu.html index b454998b83..1013ca77e4 100644 --- a/test/controllers/sideMenu.html +++ b/test/controllers/sideMenu.html @@ -17,7 +17,7 @@

Tab Bars

-
+

Swipe me, side to side

diff --git a/test/footers.html b/test/footers.html index 301387988f..0cb77afc79 100644 --- a/test/footers.html +++ b/test/footers.html @@ -19,7 +19,7 @@

Footer

-
+

Footer should always stay at the bottom of the screen, and on top of the main content.

Content element must have "has-footer" as a classname.

diff --git a/test/headers.html b/test/headers.html index d9db29a133..178c64e4c7 100644 --- a/test/headers.html +++ b/test/headers.html @@ -55,7 +55,7 @@
-
+

Content element must have "has-header" as a classname.

Homepage

diff --git a/test/index.html b/test/index.html index ed30eb739b..a2cb854266 100644 --- a/test/index.html +++ b/test/index.html @@ -16,9 +16,9 @@
-
+

Alerts

-

Buttons

+

Buttons

Button Bar

Cards

Footers

diff --git a/test/input-radio.html b/test/input-radio.html index 07cb78377f..54cdf138da 100644 --- a/test/input-radio.html +++ b/test/input-radio.html @@ -60,7 +60,7 @@
-
+ diff --git a/test/input-range.html b/test/input-range.html index b8a0732f28..4e6852818c 100644 --- a/test/input-range.html +++ b/test/input-range.html @@ -25,7 +25,7 @@ -
+ diff --git a/test/input-select.html b/test/input-select.html index 74927a1f82..ea68a30ea7 100644 --- a/test/input-select.html +++ b/test/input-select.html @@ -28,7 +28,7 @@ -
+ diff --git a/test/input-text.html b/test/input-text.html index 167d72ddc9..7d8f651bab 100644 --- a/test/input-text.html +++ b/test/input-text.html @@ -36,7 +36,7 @@

Default Text Input, Is Inset, No Content Padding

-
+
@@ -48,7 +48,7 @@
-
+

Default Text Input, Not Inset, With Content Padding

@@ -67,7 +67,7 @@

Default Text Input, Is Inset, With Content Padding

-
+
@@ -113,14 +113,14 @@

Inline Label On Top Of Text Input, Is Inset, No Content Padding

-
+
-
+

Inline Label On Top Of Text Input, Not Inset, With Content Padding

@@ -135,13 +135,13 @@

Inline Label On Top Of Text Input, Is Inset, With Content Padding

-
+
-
+

Stacked Label On Top Of Text Input, Is Inset, No Content Padding

-
+
-
+

Stacked Label On Top Of Text Input, Not Inset, With Content Padding

@@ -194,7 +194,7 @@

Stacked Label On Top Of Text Input, Is Inset, With Content Padding

-
+

Default Text Input, Is Inset, No Content Padding

-
+
-
+

Stacked Label On Top Of Text Input, Not Inset, With Content Padding

@@ -241,7 +241,7 @@

Stacked Label On Top Of Text Input, Is Inset, With Content Padding

-
+

Default Text Area, Is Inset, No Content Padding

-
+
@@ -39,7 +39,7 @@
-
+

Default Text Area, Not Inset, With Content Padding

@@ -58,7 +58,7 @@

Default Text Area, Is Inset, With Content Padding

-
+
@@ -80,7 +80,7 @@

Stacked Label On Top Of Text Area, Is Inset, No Content Padding

-
+

Stacked Label On Top Of Text Area, Is Inset, With Content Padding

-
+