mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
docs(demos): button contents
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -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',
|
||||||
})
|
})
|
||||||
@ -71,3 +80,12 @@ export class IconButtonsPage {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Page({
|
||||||
|
templateUrl: 'buttons/components.html',
|
||||||
|
})
|
||||||
|
export class ButtonsInComponentsPage {
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
25
demos/component-docs/buttons/clear.html
Normal file
25
demos/component-docs/buttons/clear.html
Normal 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>
|
50
demos/component-docs/buttons/components.html
Normal file
50
demos/component-docs/buttons/components.html
Normal 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>
|
@ -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>
|
||||||
|
|
||||||
|
BIN
demos/component-docs/card-wireframe.png
Normal file
BIN
demos/component-docs/card-wireframe.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
BIN
demos/component-docs/footer-wireframe.png
Normal file
BIN
demos/component-docs/footer-wireframe.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 118 B |
@ -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,
|
||||||
|
Reference in New Issue
Block a user