| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9fc63fe commit c657bb6
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,18 +46,18 @@ <h2 style="text-align: center; color: #555; font-size: 16px;">Swipe Right <i cla | |||
| 46 | 46 | ion-content { | |
| 47 | 47 | background-color: #F5F5F5 !important; | |
| 48 | 48 | } | |
| 49 | - .card { | ||
| 49 | + ion-card { | ||
| 50 | 50 | box-shadow: none !important; | |
| 51 | 51 | } | |
| 52 | - .card .card-content { | ||
| 52 | + ion-card ion-card-content { | ||
| 53 | 53 | font-family: 'lato'; | |
| 54 | 54 | font-size: 16px; | |
| 55 | 55 | line-height: 25px; | |
| 56 | 56 | } | |
| 57 | - .card .item { | ||
| 57 | + ion-card .item { | ||
| 58 | 58 | border: none !important; | |
| 59 | 59 | } | |
| 60 | - .card .card-content { | ||
| 60 | + ion-card ion-card-content { | ||
| 61 | 61 | padding: 25px !important; | |
| 62 | 62 | } | |
| 63 | 63 | .item { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,6 @@ export * from 'ionic/components/app/id' | |||
| 4 | 4 | export * from 'ionic/components/action-sheet/action-sheet' | |
| 5 | 5 | export * from 'ionic/components/blur/blur' | |
| 6 | 6 | export * from 'ionic/components/button/button' | |
| 7 | - export * from 'ionic/components/card/card' | ||
| 8 | 7 | export * from 'ionic/components/checkbox/checkbox' | |
| 9 | 8 | export * from 'ionic/components/content/content' | |
| 10 | 9 | export * from 'ionic/components/form/input' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -155,3 +155,9 @@ ion-item-options { | |||
| 155 | 155 | z-index: $z-index-item-options; | |
| 156 | 156 | height: 100%; | |
| 157 | 157 | } | |
| 158 | + | ||
| 159 | + | ||
| 160 | + // TEMP hack for https://github.com/angular/angular/issues/4582 | ||
| 161 | + [item-right] { | ||
| 162 | + order: 1; | ||
| 163 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - import {Component, View} from 'angular2/angular2'; | ||
| 1 | + import {Component, View, ElementRef, Renderer} from 'angular2/angular2'; | ||
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | 4 | /** | |
@@ -18,17 +18,18 @@ import {Component, View} from 'angular2/angular2'; | |||
| 18 | 18 | * ``` | |
| 19 | 19 | */ | |
| 20 | 20 | @Component({ | |
| 21 | - selector: 'ion-item,[ion-item]', | ||
| 22 | - host: { | ||
| 23 | - 'class': 'item' | ||
| 24 | - } | ||
| 21 | + selector: 'ion-item,[ion-item]' | ||
| 25 | 22 | }) | |
| 26 | 23 | @View({ | |
| 27 | 24 | template: | |
| 28 | 25 | '<ng-content select="[item-left]"></ng-content>' + | |
| 26 | + '<ng-content select="[item-right]"></ng-content>' + | ||
| 29 | 27 | '<ion-item-content>' + | |
| 30 | 28 | '<ng-content></ng-content>'+ | |
| 31 | - '</ion-item-content>' + | ||
| 32 | - '<ng-content select="[item-right]"></ng-content>' | ||
| 29 | + '</ion-item-content>' | ||
| 33 | 30 | }) | |
| 34 | - export class Item {} | ||
| 31 | + export class Item { | ||
| 32 | + constructor(elementRef: ElementRef, renderer: Renderer) { | ||
| 33 | + renderer.setElementClass(elementRef, 'item', true); | ||
| 34 | + } | ||
| 35 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -210,7 +210,7 @@ button.item { | |||
| 210 | 210 | } | |
| 211 | 211 | ||
| 212 | 212 | .list, | |
| 213 | - .card { | ||
| 213 | + ion-card { | ||
| 214 | 214 | button[ion-item]:not([detail-none]), | |
| 215 | 215 | a[ion-item]:not([detail-none]), | |
| 216 | 216 | [detail-push]:not(ion-item-sliding) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -148,8 +148,8 @@ $item-md-sliding-transition: transform 250ms ease-in-out !default; | |||
| 148 | 148 | margin: 4px; | |
| 149 | 149 | } | |
| 150 | 150 | ||
| 151 | - icon + ion-item-content, | ||
| 152 | - icon + .text-input { | ||
| 151 | + icon[item-left] + ion-item-content, | ||
| 152 | + icon[item-left] + .text-input { | ||
| 153 | 153 | margin-left: $item-md-padding-left + ($item-md-padding-left / 2); | |
| 154 | 154 | } | |
| 155 | 155 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,4 @@ | |||
| 1 | - import {NgControl} from 'angular2/angular2'; | ||
| 2 | - import {FORM_DIRECTIVES, FormBuilder, Validators, Control, ControlGroup} from 'angular2/forms'; | ||
| 1 | + import {NgControl, FORM_DIRECTIVES, FormBuilder, Validators, Control, ControlGroup} from 'angular2/angular2'; | ||
| 3 | 2 | ||
| 4 | 3 | import {App} from 'ionic/ionic'; | |
| 5 | 4 | import {SearchPipe} from 'ionic/components/search-bar/search-bar'; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,6 @@ import {Refresher} from '../components/scroll/pull-to-refresh'; | |||
| 12 | 12 | import {Slides, Slide, SlideLazy} from '../components/slides/slides'; | |
| 13 | 13 | import {Tabs} from '../components/tabs/tabs'; | |
| 14 | 14 | import {Tab} from '../components/tabs/tab'; | |
| 15 | - import {Card} from '../components/card/card'; | ||
| 16 | 15 | import {List, ListHeader} from '../components/list/list'; | |
| 17 | 16 | import {Item} from '../components/item/item'; | |
| 18 | 17 | import {ItemGroup, ItemGroupTitle} from '../components/item/item-group'; | |
@@ -55,7 +54,6 @@ export const IONIC_DIRECTIVES = [ | |||
| 55 | 54 | Refresher, | |
| 56 | 55 | ||
| 57 | 56 | // Lists | |
| 58 | - Card, | ||
| 59 | 57 | List, | |
| 60 | 58 | ListHeader, | |
| 61 | 59 | Item, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments