docs(demos): add weather cards

This commit is contained in:
Drew Rygh
2015-10-27 17:38:28 -05:00
parent c98867493a
commit 48d570f7c1
5 changed files with 119 additions and 6 deletions

View File

@@ -156,13 +156,75 @@ ion-card.cards-list-demo a > icon {
ion-card p.advanced-background-title {
position: absolute;
top: 29%;
top: 25%;
font-size: 2.0em;
width: 100%;
font-weight: bold;
color: #fff !important;
}
ion-card p.advanced-background-title-large {
top: 29%;
font-weight: normal;
font-size: 4.4em;
color: #fff !important;
}
ion-card p.advanced-background-title-large span {
vertical-align: top;
padding-top: 5px;
font-size: 72px;
height: 74px;
line-height: 1;
display: inline-block;
}
ion-card ion-item.advanced-trans.item {
position: absolute;
top: 0;
width: 100%;
padding: 12px 20px !important;
background: transparent;
}
ion-card ion-item.advanced-trans.item p {
font-size: 12px;
}
ion-card .advanced-weather-tabs {
position: absolute;
bottom: 0;
width: 100%;
background: transparent;
}
ion-card .advanced-weather-tabs tab-bar {
background: transparent;
border-top: none;
}
body.ios ion-card .advanced-weather-tabs tab-bar {
height: 88px;
}
body.md ion-card .advanced-weather-tabs tab-bar {
height: 100px;
}
ion-card .advanced-weather-tabs tab-bar a {
height: 100%;
}
ion-card .advanced-weather-tabs tab-bar a icon.tab-button-icon {
color: #fff;
font-size: 2.8em;
margin-bottom: 2px;
}
ion-card .advanced-weather-tabs tab-bar a span.tab-button-text {
color: #fff;
font-size: 13px;
}
body.md tab-highlight {
background-color: #fff !important;
}
ion-content ion-card ion-item.advanced-trans p {
color: #fff;
}
ion-card p.advanced-background-subtitle {
@@ -171,7 +233,6 @@ ion-card p.advanced-background-subtitle {
top: 48%;
width: 100%;
color: #fff !important;
}
ion-card .icon-avatar {

View File

@@ -5,12 +5,64 @@
<ion-content class="has-header components-demo cards-bg">
<ion-card>
<ion-card class="advanced-background">
<img src="img/advance-card-alaska.jpg"/>
<ion-card-content>
TODO
</ion-card-content>
<ion-item class="advanced-trans">
<p item-left>ALASKA, USA</p>
<p item-right>SUN</p>
</ion-item>
<p class="advanced-background-title advanced-background-title-large">
<icon moon></icon>
<span>23&deg;</span>
</p>
<ion-tabs light class="advanced-weather-tabs" no-navbar tab-bar-placement="bottom">
<ion-tab light tab-title="SUN" tab-icon="sunny"></ion-tab>
<ion-tab tab-title="MON" tab-icon="snow"></ion-tab>
<ion-tab tab-title="TUE" tab-icon="cloudy"></ion-tab>
</ion-tabs>
</ion-card>
<ion-card class="advanced-background">
<img src="img/advance-card-machu-picchu-1.jpg"/>
<ion-item class="advanced-trans">
<p item-left>MACHU PICCHU, PERU</p>
<p item-right>TUE</p>
</ion-item>
<p class="advanced-background-title advanced-background-title-large">
<icon sunny></icon>
<span>78&deg;</span>
</p>
<ion-tabs light class="advanced-weather-tabs" no-navbar tab-bar-placement="bottom">
<ion-tab light tab-title="TUE" tab-icon="sunny"></ion-tab>
<ion-tab tab-title="WED" tab-icon="partly-sunny"></ion-tab>
<ion-tab tab-title="THR" tab-icon="cloudy"></ion-tab>
</ion-tabs>
</ion-card>
<ion-card class="advanced-background">
<img src="img/advance-card-london.jpg"/>
<ion-item class="advanced-trans">
<p item-left>LONDON, UK</p>
<p item-right>SUN</p>
</ion-item>
<p class="advanced-background-title advanced-background-title-large">
<icon thunderstorm></icon>
<span>41&deg;</span>
</p>
<ion-tabs light class="advanced-weather-tabs" no-navbar tab-bar-placement="bottom">
<ion-tab light tab-title="SUN" tab-icon="thunderstorm"></ion-tab>
<ion-tab tab-title="MON" tab-icon="rainy"></ion-tab>
<ion-tab tab-title="TUE" tab-icon="rainy"></ion-tab>
</ion-tabs>
</ion-card>

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB