mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(demos): add weather cards
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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°</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°</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°</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>
|
||||
|
||||
|
||||
|
||||
BIN
demos/component-docs/img/advance-card-alaska.jpg
Normal file
BIN
demos/component-docs/img/advance-card-alaska.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 124 KiB |
BIN
demos/component-docs/img/advance-card-london.jpg
Normal file
BIN
demos/component-docs/img/advance-card-london.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
BIN
demos/component-docs/img/advance-card-machu-picchu-1.jpg
Normal file
BIN
demos/component-docs/img/advance-card-machu-picchu-1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 204 KiB |
Reference in New Issue
Block a user