diff --git a/ionic/components/app/test/music/main.html b/ionic/components/app/test/music/main.html index 59f82f8d92..62e1c37b0d 100644 --- a/ionic/components/app/test/music/main.html +++ b/ionic/components/app/test/music/main.html @@ -40,7 +40,7 @@ background: transparent; min-height: 55px; } - .mode-ios ion-list .item .item-content { + .mode-ios ion-list .item ion-item-content { background: transparent; color: rgba(255,255,255,0.8); padding: 10px; @@ -57,7 +57,7 @@ ion-content { background: transparent !important; } - .mode-ios #menu .item-content:after { + .mode-ios #menu ion-item-content:after { background: none; } .mode-ios .item:first-of-type:before { diff --git a/ionic/components/app/test/sink/pages/list.ts b/ionic/components/app/test/sink/pages/list.ts index e2d3a0f849..3758e25f82 100644 --- a/ionic/components/app/test/sink/pages/list.ts +++ b/ionic/components/app/test/sink/pages/list.ts @@ -26,14 +26,12 @@ import {SinkPage} from '../sink-page'; -
-
-
- Item -
-
-
- Item + + Item + + + Item + diff --git a/ionic/components/app/test/snapcat/main.html b/ionic/components/app/test/snapcat/main.html index 5f6ae001fe..76aa5eedd3 100644 --- a/ionic/components/app/test/snapcat/main.html +++ b/ionic/components/app/test/snapcat/main.html @@ -64,7 +64,7 @@ font-family: 'lato'; font-size: 16px; } - .item-content { + ion-item-content { min-height: 70px !important; } ion-toolbar { @@ -83,7 +83,7 @@ } .mode-ios .item:first-of-type:before, .mode-ios .item:last-of-type:after, - .mode-ios .item-content:after { + .mode-ios ion-item-content:after { background-color: #F5F5F5 !important; } #p1toolbar { diff --git a/ionic/components/card/modes/material.scss b/ionic/components/card/modes/material.scss index 9212b9a1d5..4210b43766 100644 --- a/ionic/components/card/modes/material.scss +++ b/ionic/components/card/modes/material.scss @@ -50,8 +50,8 @@ $card-md-header-font-size: 1.6rem !default; } } - .item-content button:first-child, - .item-content [button]:first-child { + ion-item-content button:first-child, + ion-item-content [button]:first-child { margin-left: 0; } diff --git a/ionic/components/card/test/advanced/main.html b/ionic/components/card/test/advanced/main.html index ac0f5bec22..40c542515c 100644 --- a/ionic/components/card/test/advanced/main.html +++ b/ionic/components/card/test/advanced/main.html @@ -10,7 +10,7 @@
-
+

Card Title Goes Here @@ -20,15 +20,15 @@ Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain. I am within a paragraph element.

-

+
- - @@ -43,10 +43,10 @@
-
+

Card With An Inset Picture

Isn't it beautiful

-
+
@@ -54,9 +54,9 @@
-
+ Hello. I am a one liner, not a paragraph. -
+
diff --git a/ionic/components/card/test/basic/main.html b/ionic/components/card/test/basic/main.html index f553b019a5..7b79bd5af4 100644 --- a/ionic/components/card/test/basic/main.html +++ b/ionic/components/card/test/basic/main.html @@ -9,9 +9,9 @@
-
+ Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week in the woods. Wash your spirit clean. -
+
@@ -21,32 +21,32 @@
-
+ All Out Card -
+
-
+ This is a multiline content within a card that should take up multiple lines and stuff. -
+
-
+ 255 -
-
+ + Reply -
-
+ + Forward -
+
@@ -55,9 +55,9 @@
-
+ Card, no header -
+
diff --git a/ionic/components/card/test/images/main.html b/ionic/components/card/test/images/main.html index 683db2615d..763573e6d9 100644 --- a/ionic/components/card/test/images/main.html +++ b/ionic/components/card/test/images/main.html @@ -7,22 +7,22 @@
-
+

Item with no-border-bottom

-
+
-
+

This is content text and stuff.

-
+
-
+ Like -
-
+ + Share -
+
@@ -33,31 +33,31 @@
-
+

Card With An Inset Picture

Isn't it beautiful

-
+
-
+ -
+
-
+ 255 -
-
+ + Reply -
-
+ + Forward -
+
diff --git a/ionic/components/card/test/links/main.html b/ionic/components/card/test/links/main.html index 074ea809da..4cbb63721d 100644 --- a/ionic/components/card/test/links/main.html +++ b/ionic/components/card/test/links/main.html @@ -6,33 +6,33 @@ -
+ Link 1 -
+
-
+ Link 2 -
+
@@ -47,33 +47,33 @@ -
+ Link 1 -
+
-
+ Link 2 -
+
-
+ Link 3 -
+
-
+ Link 4 -
+
diff --git a/ionic/components/checkbox/checkbox.ts b/ionic/components/checkbox/checkbox.ts index c5dfc069ec..7bda684ea8 100644 --- a/ionic/components/checkbox/checkbox.ts +++ b/ionic/components/checkbox/checkbox.ts @@ -36,9 +36,9 @@ import {TapClick} from '../button/button'; '
' + '
' + '
' + - '
' + + '' + '' + - '
' + '' }) export class Checkbox extends Ion { constructor( diff --git a/ionic/components/item/item.scss b/ionic/components/item/item.scss index b16057a4e1..fc6595e9c0 100644 --- a/ionic/components/item/item.scss +++ b/ionic/components/item/item.scss @@ -34,7 +34,7 @@ button.item.item { font-weight: normal; } -.item-content { +ion-item-content { margin: 0; flex: 1; white-space: nowrap; @@ -42,8 +42,7 @@ button.item.item { text-overflow: ellipsis; } -.item-text-wrap, -.item-text-wrap .item-content { +.item-text-wrap ion-item-content { white-space: normal; } @@ -72,15 +71,15 @@ button.item.item { .list .item.item { - .item-content + button, - .item-content + [button], - button + .item-content, - [button] + .item-content, + ion-item-content + button, + ion-item-content + [button], + button + ion-item-content, + [button] + ion-item-content, icon + icon, - .item-content + icon, - .item-media + .item-content, - .item-content + .item-media, - .item-content + .item-content, + ion-item-content + icon, + .item-media + ion-item-content, + ion-item-content + .item-media, + ion-item-content + ion-item-content, icon + .input, .input + icon, icon + .input-label, diff --git a/ionic/components/item/item.ts b/ionic/components/item/item.ts index d6e10b8923..fbfc9c3f2c 100644 --- a/ionic/components/item/item.ts +++ b/ionic/components/item/item.ts @@ -1,4 +1,4 @@ -import {Component, View, ElementRef} from 'angular2/angular2'; +import {Component, Directive, View, ElementRef, NgIf, ViewQuery, QueryList} from 'angular2/angular2'; import {ItemPrimaryOptions, ItemSecondaryOptions} from './item-options'; import {ItemPrimarySwipeButtons, ItemSecondarySwipeButtons} from './item-swipe-buttons'; @@ -6,16 +6,19 @@ import {dom} from 'ionic/util'; @Component({ - selector: 'ion-item', + selector: 'ion-item,[ion-item]', host: { 'class': 'item' } }) @View({ template: - '
' + + '' + + '' + ''+ - '
' + '' + + '', + directives: [NgIf] }) export class Item { constructor(elementRef: ElementRef) { @@ -28,6 +31,7 @@ export class Item { this.swipeButtons = {}; this.optionButtons = {}; } + } diff --git a/ionic/components/item/modes/ios.scss b/ionic/components/item/modes/ios.scss index 7d7c021677..231c131196 100644 --- a/ionic/components/item/modes/ios.scss +++ b/ionic/components/item/modes/ios.scss @@ -66,7 +66,7 @@ $item-ios-forward-icon-color: $item-ios-border-color !default; } .input-label, - .item-content, + ion-item-content, .item-note { margin: $item-ios-padding-top $item-ios-padding-right $item-ios-padding-bottom $item-ios-padding-left; } @@ -79,7 +79,7 @@ $item-ios-forward-icon-color: $item-ios-border-color !default; color: $item-ios-note-color; } - .item icon + .item-content { + .item icon + ion-item-content { margin-left: 0; } diff --git a/ionic/components/item/modes/material.scss b/ionic/components/item/modes/material.scss index 2d105987f4..558047293f 100644 --- a/ionic/components/item/modes/material.scss +++ b/ionic/components/item/modes/material.scss @@ -49,13 +49,12 @@ $item-md-forward-icon-color: $item-md-border-color !default; } .input-label, - .item-content, + ion-item-content, .item-note { margin: $item-md-padding-top $item-md-padding-right $item-md-padding-bottom $item-md-padding-left; } - .item-text-wrap, - .item-text-wrap .item-content { + .item-text-wrap ion-item-content { font-size: $item-md-body-text-font-size; line-height: $item-md-body-text-line-height; } @@ -92,7 +91,7 @@ $item-md-forward-icon-color: $item-md-border-color !default; margin-top: $item-md-padding-media-top; } - .item[actions] .item-content { + .item[actions] ion-item-content { margin: 8px; } diff --git a/ionic/components/item/test/buttons/main.html b/ionic/components/item/test/buttons/main.html index fc8a3c0fd6..35adff7bde 100644 --- a/ionic/components/item/test/buttons/main.html +++ b/ionic/components/item/test/buttons/main.html @@ -2,103 +2,70 @@ - -
- a.item -
- +
+ a.item + - -
- a.item.activated -
- +
+ a.item.activated + - - -
- -
- div.item left button -
-
+ + + div.item left button + -
-
- div.item right button[outline][secondary] -
- -
+ + div.item right button[outline][secondary] + + -
-
- div.item icon only button -
- -
+
-
-
- div.item right icon/text button -
- -
+ -
- -
- div.item left clear button -
-
+ div.item left clear button + -
-
- div.item right clear button -
- -
+ -
-
- This is multiline text that has a - long description of about how the text is really long. -
- -
+ + This is multiline text that has a + long description of about how the text is really long. + + - - - - diff --git a/ionic/components/item/test/icons/main.html b/ionic/components/item/test/icons/main.html index 01ed6f5ad3..0634f66464 100644 --- a/ionic/components/item/test/icons/main.html +++ b/ionic/components/item/test/icons/main.html @@ -2,94 +2,62 @@ -
-
- Div with forward icon -
- -
+ + Div with forward icon + + - -
- Link with forward icon -
- +
+ Link with forward icon + - - -
- Link with right side default icon -
- +
+ Link with right side default icon + - -
- Link with right side large icon -
- +
+ Link with right side large icon + - -
- Link with right side small icon -
- +
+ Link with right side small icon + - - - -
- Link with two right side icons -
- - +
+ Link with two right side icons + + - -
- - - diff --git a/ionic/components/item/test/images/main.html b/ionic/components/item/test/images/main.html index 45a7efc80e..46ffa05583 100644 --- a/ionic/components/item/test/images/main.html +++ b/ionic/components/item/test/images/main.html @@ -2,77 +2,61 @@ -
-
- Plain Ol' div w/ some text, no images -
-
+ + Plain Ol' div w/ some text, no images + -
- -
- One Line w/ Icon, div only text -
-
+ + + One Line w/ Icon, div only text + -
- -
-

Two Lines w/ Icon, H2 Header

-

Paragraph text.

-
-
+ + +

Two Lines w/ Icon, H2 Header

+

Paragraph text.

+
-
-
+ +
-
- One Line w/ Avatar, div only text -
-
+ One Line w/ Avatar, div only text + -
-
+ +
-
-

Two Lines w/ Avatar, H2 Header

-

Paragraph text.

-
-
+

Two Lines w/ Avatar, H2 Header

+

Paragraph text.

+ -
-
+ +
-
-

Three Lines w/ Avatar, H2 Header

-

Paragraph text.

-

Paragraph text.

-
-
+

Three Lines w/ Avatar, H2 Header

+

Paragraph text.

+

Paragraph text.

+ -
-
+ +
-
-

Two Lines w/ Thumbnail, H2 Header

-

Paragraph text.

-
-
+

Two Lines w/ Thumbnail, H2 Header

+

Paragraph text.

+ -
-
+ +
-
-

Three Lines w/ Thumbnail, H2 Header

-

Paragraph text.

-

Paragraph text.

-
-
+

Three Lines w/ Thumbnail, H2 Header

+

Paragraph text.

+

Paragraph text.

+ diff --git a/ionic/components/item/test/media/main.html b/ionic/components/item/test/media/main.html index 6a57146354..a69352d7ed 100644 --- a/ionic/components/item/test/media/main.html +++ b/ionic/components/item/test/media/main.html @@ -8,75 +8,61 @@ - - -
- Media/Avatar right, a.item -
-
+ + Media/Avatar right, a.item +
-
-
+ +
-
- Media/Avatar, right button -
- -
+ Media/Avatar, right button + + - -
+ +
-
-

H2 Title Text

-

Paragraph text

-
+

H2 Title Text

+

Paragraph text

- -
- Media/Thumbnail right side, a.item -
-
+ + Media/Thumbnail right side, a.item +
-
-
+ +
-
-

H2 Title Text

-

Button on right

-
- -
+

H2 Title Text

+

Button on right

+ + - diff --git a/ionic/components/item/test/text/main.html b/ionic/components/item/test/text/main.html index 136628cb91..bbb03d4143 100644 --- a/ionic/components/item/test/text/main.html +++ b/ionic/components/item/test/text/main.html @@ -2,86 +2,40 @@ -
-
- Plain Ol' div with some text -
-
+ + Plain Ol' div with some text + -
-
- Single line text that should have ellipses when it doesn't all fit in the item -
-
+ + Single line text that should have ellipses when it doesn't all fit in the item + -
-
- Column -
-
- Column -
-
- Column -
-
- Column -
-
+ + Multiline text that should wrap when it is too long + to fit on one line in the item. Class on .item + -
-
- align-left -
-
- align-center -
-
- align-right -
-
+ +

H1 Title Text

+

Paragraph line 1

+
-
-
- Multiline text that should wrap when it is too long to fit on one line in the item. Class on .item-content -
-
+ +

H2 Title Text

+

Paragraph line 1

+
-
-
- Multiline text that should wrap when it is too long to fit on one line in the item. Class on .item -
-
+ +

H3 Title Text

+

Paragraph line 1

+

Paragraph line 2

+
-
-
-

H1 Title Text

-

Paragraph line 1

-
-
- -
-
-

H2 Title Text

-

Paragraph line 1

-
-
- -
-
-

H3 Title Text

-

Paragraph line 1

-

Paragraph line 2

-
-
- -
-
-

H4 Title Text

-

Paragraph line 1

-

Paragraph line 2

-

Paragraph line 3

-
-
+ +

H4 Title Text

+

Paragraph line 1

+

Paragraph line 2

+

Paragraph line 3

+
diff --git a/ionic/components/list/test/headers/main.html b/ionic/components/list/test/headers/main.html index 98bfda4eef..062ca5986d 100644 --- a/ionic/components/list/test/headers/main.html +++ b/ionic/components/list/test/headers/main.html @@ -6,118 +6,101 @@ List Header -
- -
- Wifi -
-
+ + + Wifi +
Terrible
-
+ -
- -
- Affection -
-
+ + + Affection +
Very Little
-
+ -
- -
- Home -
-
+ + + Home +
Where the heart is
-
+ + List Header -
- -
- Magic -
-
+ + + Magic +
Activated
-
+ -
- -
- Star status -
-
+ + + Star status +
Super
-
+ + List Header with text that is too long to fit inside the list header -
- -
- Pizza -
-
+ + + Pizza +
Always
-
+ -
- -
- Beer -
-
+ + + Beer +
Yes Plz
-
+ -
- -
- Wine -
-
+ + + Wine +
All the time
-
+ + -
- -
- New List, no header, Item 1 -
-
+ + + New List, no header, Item 1 + -
- -
- New List, no header, Item 2 -
-
+ + + New List, no header, Item 2 +
diff --git a/ionic/components/list/test/inset/main.html b/ionic/components/list/test/inset/main.html index b0cd9f8cdb..cc98c74243 100644 --- a/ionic/components/list/test/inset/main.html +++ b/ionic/components/list/test/inset/main.html @@ -6,55 +6,33 @@ Inset List Header -
-
- Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week in the woods. Wash your spirit clean. -
-
+ + Keep close to Nature's heart... and break clear away, once in awhile, and + climb a mountain or spend a week in the woods. Wash your spirit clean. + -
- -
- All Out Inset List -
- -
+ + + All Out Inset List + + -
-
- This is a multiline content within a list that should - take up multiple lines and stuff. -
-
- -
-
- - 255 -
-
- - Reply -
-
- - Forward -
-
+ + This is a multiline content within a list that should + take up multiple lines and stuff. +
-
-
- Inset List, no header -
-
+ + Inset List, no header +
diff --git a/ionic/components/radio/radio.ts b/ionic/components/radio/radio.ts index 1af82a330e..9965de86c9 100644 --- a/ionic/components/radio/radio.ts +++ b/ionic/components/radio/radio.ts @@ -101,9 +101,9 @@ export class RadioGroup extends Ion { }) @IonicView({ template: - '
' + + '' + '' + - '
' + + '' + '
' + '
' + '
' diff --git a/ionic/components/switch/switch.ts b/ionic/components/switch/switch.ts index 2ebce23e2c..ae77cf9ef9 100644 --- a/ionic/components/switch/switch.ts +++ b/ionic/components/switch/switch.ts @@ -124,9 +124,9 @@ class MediaSwitch { }) @IonicView({ template: - '
' + + '' + '' + - '
' + + '' + '
' + '
' + '
',