docs(demos): button contents

This commit is contained in:
Drew Rygh
2015-10-09 17:06:07 -05:00
parent a9112eb55d
commit f8fdcb6333
8 changed files with 137 additions and 6 deletions

View File

@ -93,6 +93,40 @@ scroll-content {
color: #757575; color: #757575;
} }
#demo-hammer { #card-wireframe {
padding: 0 0.4em; width: 100%;
margin-bottom: 2.7em;
} }
#subtle-footer {
background-color: #fff;
border-image-source: url(footer-wireframe.png);
border-image-repeat: repeat;
border-image-width: 100%;
border-bottom: 0;
border-left: 0;
border-right: 0;
position: absolute;
bottom:0;
}
#demo-fab-bottom {
padding-top: 3px;
z-index: 100;
}
#subtle-footer .toolbar-background {
background-color: #fff;
border-bottom: 0;
}
#demo-card-left {
font-size: 14px;
margin-top: -90px;
margin-left: 10px;
float: left;
}
#demo-card-right {
font-size: 14px;
margin-top: -90px;
float: right;
margin-right: 10px;
}

View File

@ -18,6 +18,15 @@ export class BlockButtonsPage {
} }
} }
@Page({
templateUrl: 'buttons/clear.html',
})
export class ClearButtonsPage {
constructor() {
}
}
@Page({ @Page({
templateUrl: 'buttons/full.html', templateUrl: 'buttons/full.html',
}) })
@ -69,5 +78,14 @@ export class ButtonSizesPage {
export class IconButtonsPage { export class IconButtonsPage {
constructor() { constructor() {
}
}
@Page({
templateUrl: 'buttons/components.html',
})
export class ButtonsInComponentsPage {
constructor() {
} }
} }

View File

@ -0,0 +1,25 @@
<ion-navbar *navbar>
<ion-title>Clear Buttons</ion-title>
</ion-navbar>
<ion-content padding class="has-header components-demo">
<p>
<button light clear>Light</button>
</p>
<p>
<button clear>Default</button>
</p>
<p>
<button secondary clear>Secondary</button>
</p>
<p>
<button danger clear>Danger</button>
</p>
<p>
<button dark clear>Dark</button>
</p>
</ion-content>

View File

@ -0,0 +1,50 @@
<ion-navbar *navbar>
<ion-title>Buttons</ion-title>
<ion-nav-items primary>
<button>
<icon contact></icon>
</button>
</ion-nav-items>
<ion-nav-items secondary>
<button>
<icon search></icon>
</button>
</ion-nav-items>
</ion-navbar>
<ion-content padding class="has-header components-demo">
<div id="mock-card">
<img src="card-wireframe.png" id="card-wireframe">
<button clear id="demo-card-left">Like</button>
<button clear id="demo-card-right">Comment</button>
</div>
<ion-list>
<ion-item>
Inner Button
<button item-right outline>Outline</button>
</ion-item>
<ion-item>
Left Icon Button
<button item-right outline>
<icon star></icon>
Left Icon
</button>
</ion-item>
<ion-item>
Right Icon Button
<button item-right outline>
Right Icon
<icon star></icon>
</button>
</ion-item>
</ion-list>
</ion-content>

View File

@ -13,12 +13,12 @@
<button fab danger fab-top fab-right> <button fab danger fab-top fab-right>
<icon is-active="false" mic></icon> <icon is-active="false" mic></icon>
</button> </button>
<button fab dark fab-bottom fab-center> <button fab dark fab-bottom fab-center id="demo-fab-bottom">
<icon is-active="false" heart></icon> <icon is-active="false" heart></icon>
</button> </button>
</p> </p>
</ion-content> </ion-content>
<ion-toolbar id="subtle-footer">
</ion-toolbar>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

View File

@ -2,12 +2,14 @@ import {ActionSheetPage} from 'actionSheet/actionSheet';
import {ButtonsPage, import {ButtonsPage,
BlockButtonsPage, BlockButtonsPage,
ClearButtonsPage,
FullButtonsPage, FullButtonsPage,
OutlineButtonsPage, OutlineButtonsPage,
RoundButtonsPage, RoundButtonsPage,
FabPage, FabPage,
ButtonSizesPage, ButtonSizesPage,
IconButtonsPage} from 'buttons/buttons'; IconButtonsPage,
ButtonsInComponentsPage} from 'buttons/buttons';
import {CardsPage} from 'cards/cards'; import {CardsPage} from 'cards/cards';
import {FormsPage} from 'forms/forms'; import {FormsPage} from 'forms/forms';
@ -30,10 +32,12 @@ export function getPageFor(hash) {
'action-sheets': ActionSheetPage, 'action-sheets': ActionSheetPage,
'buttons': ButtonsPage, 'buttons': ButtonsPage,
'block-buttons': BlockButtonsPage, 'block-buttons': BlockButtonsPage,
'clear-buttons': ClearButtonsPage,
'full-buttons': FullButtonsPage, 'full-buttons': FullButtonsPage,
'outline-buttons': OutlineButtonsPage, 'outline-buttons': OutlineButtonsPage,
'round-buttons': RoundButtonsPage, 'round-buttons': RoundButtonsPage,
'floating-action-buttons': FabPage, 'floating-action-buttons': FabPage,
'buttons-in-components': ButtonsInComponentsPage,
'button-sizes': ButtonSizesPage, 'button-sizes': ButtonSizesPage,
'icon-buttons': IconButtonsPage, 'icon-buttons': IconButtonsPage,
'cards': CardsPage, 'cards': CardsPage,