mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
docs(demos): add background card example
This commit is contained in:
@ -143,3 +143,28 @@ ion-card.cards-list-demo a > icon {
|
|||||||
color: #444444;
|
color: #444444;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.adv-background {
|
||||||
|
position: relative;
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
ion-card p.adv-background-title {
|
||||||
|
position: absolute;
|
||||||
|
top: 29%;
|
||||||
|
font-size: 2.0em;
|
||||||
|
width: 100%;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff !important;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ion-card p.adv-background-subtitle {
|
||||||
|
font-size: 1.0em;
|
||||||
|
position: absolute;
|
||||||
|
top: 48%;
|
||||||
|
width: 100%;
|
||||||
|
color: #fff !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -5,12 +5,34 @@
|
|||||||
|
|
||||||
<ion-content class="has-header components-demo">
|
<ion-content class="has-header components-demo">
|
||||||
|
|
||||||
<ion-card>
|
<ion-card class="adv-background">
|
||||||
|
<img src="img/card-amsterdam.png"/>
|
||||||
|
<p class="adv-background-title">Amsterdam</p>
|
||||||
|
<p class="adv-background-subtitle">64 Listings</p>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
<ion-card-content>
|
<ion-card class="adv-background">
|
||||||
This is just your basic card with some text to boot. Like it? Keep scrolling...
|
<img src="img/card-madison.png"/>
|
||||||
</ion-card-content>
|
<p class="adv-background-title">Madison</p>
|
||||||
|
<p class="adv-background-subtitle">28 Listings</p>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
<ion-card class="adv-background">
|
||||||
|
<img src="img/card-portland.png"/>
|
||||||
|
<p class="adv-background-title">Portland</p>
|
||||||
|
<p class="adv-background-subtitle">31 Listings</p>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
<ion-card class="adv-background">
|
||||||
|
<img src="img/card-saopaolo.png"/>
|
||||||
|
<p class="adv-background-title">São Paulo</p>
|
||||||
|
<p class="adv-background-subtitle">41 Listings</p>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
<ion-card class="adv-background">
|
||||||
|
<img src="img/card-sf.png"/>
|
||||||
|
<p class="adv-background-title">San Francisco</p>
|
||||||
|
<p class="adv-background-subtitle">72 Listings</p>
|
||||||
</ion-card>
|
</ion-card>
|
||||||
|
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ export function getPageFor(hash) {
|
|||||||
'card-header': CardsHeaderPage,
|
'card-header': CardsHeaderPage,
|
||||||
'card-list': CardsListPage,
|
'card-list': CardsListPage,
|
||||||
'card-image': CardsImagePage,
|
'card-image': CardsImagePage,
|
||||||
'card-background-image': CardsBackgroundPage,
|
'card-background': CardsBackgroundPage,
|
||||||
'card-advanced-map': CardsAdvancedMapPage,
|
'card-advanced-map': CardsAdvancedMapPage,
|
||||||
'card-advanced-social': CardsAdvancedSocialPage,
|
'card-advanced-social': CardsAdvancedSocialPage,
|
||||||
'card-advanced-image': CardsAdvancedImagePage,
|
'card-advanced-image': CardsAdvancedImagePage,
|
||||||
|
BIN
demos/component-docs/img/card-amsterdam.png
Normal file
BIN
demos/component-docs/img/card-amsterdam.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 438 KiB |
BIN
demos/component-docs/img/card-madison.png
Normal file
BIN
demos/component-docs/img/card-madison.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 465 KiB |
BIN
demos/component-docs/img/card-portland.png
Normal file
BIN
demos/component-docs/img/card-portland.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 415 KiB |
BIN
demos/component-docs/img/card-saopaolo.png
Normal file
BIN
demos/component-docs/img/card-saopaolo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 403 KiB |
BIN
demos/component-docs/img/card-sf.png
Normal file
BIN
demos/component-docs/img/card-sf.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 271 KiB |
Reference in New Issue
Block a user