mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-20 21:11:52 +00:00
[rating-bar] fix offset on custom font icon set examples
This commit is contained in:
parent
bc1ea86112
commit
47236f150a
1 changed files with 56 additions and 3 deletions
|
|
@ -197,7 +197,7 @@
|
|||
<md-rating-bar v-model="rating14" class="md-primary" :md-back-iconset="'fa fa-bell-o'" :md-front-iconset="'fa fa-bell'"></md-rating-bar>
|
||||
<md-rating-bar v-model="rating14" class="md-warn" :md-size="2" :md-back-iconset="'fa fa-heart-o'" :md-front-iconset="'fa fa-heart'"></md-rating-bar>
|
||||
<hr/>
|
||||
<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/>
|
||||
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/>
|
||||
<div>This second example uses <a href="http://ionicons.com/" target="ion_icons">Ion Icons</a></div>
|
||||
<md-rating-bar v-model="rating14" class="md-primary" :md-back-iconset="'ion-ios-bell-outline'" :md-front-iconset="'ion-ios-bell'"></md-rating-bar>
|
||||
<md-rating-bar v-model="rating14" class="md-warn" :md-size="2" :md-back-iconset="'ion-android-favorite-outline'" :md-front-iconset="'ion-android-favorite'"></md-rating-bar>
|
||||
|
|
@ -209,11 +209,38 @@
|
|||
<div>This first example uses <a href="http://fontawesome.io/icons/" target="fa_icons">Font Awesome Icons</a></div><br />
|
||||
<md-rating-bar v-model="rating14" class="md-primary" :md-back-iconset="'fa fa-bell-o'" :md-front-iconset="'fa fa-bell'"></md-rating-bar><br />
|
||||
<md-rating-bar v-model="rating14" class="md-warn" :md-size="2" :md-back-iconset="'fa fa-heart-o'" :md-front-iconset="'fa fa-heart'"></md-rating-bar><br />
|
||||
<style type="text/css"><!-- offset fix to awesome icons--><br />
|
||||
.fa {<br />
|
||||
font-size: 19px !important;<br />
|
||||
line-height: 1.3em !important;<br />
|
||||
padding-left: 0.1em;<br />
|
||||
}<br />
|
||||
.fa.md-size-2x {<br />
|
||||
font-size: 38px !important;<br />
|
||||
}<br />
|
||||
<br />
|
||||
.fa.md-size-3x {<br />
|
||||
font-size: 57px !important;<br />
|
||||
}<br />
|
||||
<br />
|
||||
.fa.md-size-4x {<br />
|
||||
font-size: 76px !important;<br />
|
||||
}<br />
|
||||
<br />
|
||||
.fa.md-size-5x {<br />
|
||||
font-size: 95px !important;<br />
|
||||
}<br />
|
||||
</style><br />
|
||||
<hr/><br />
|
||||
<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/><br />
|
||||
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/><br />
|
||||
<div>This second example uses <a href="http://ionicons.com/" target="ion_icons">Ion Icons</a></div><br />
|
||||
<md-rating-bar v-model="rating14" class="md-primary" :md-back-iconset="'ion-ios-bell-outline'" :md-front-iconset="'ion-ios-bell'"></md-rating-bar><br />
|
||||
<md-rating-bar v-model="rating14" class="md-warn" :md-size="2" :md-back-iconset="'ion-android-favorite-outline'" :md-front-iconset="'ion-android-favorite'"></md-rating-bar>
|
||||
<md-rating-bar v-model="rating14" class="md-warn" :md-size="2" :md-back-iconset="'ion-android-favorite-outline'" :md-front-iconset="'ion-android-favorite'"></md-rating-bar><br />
|
||||
<style type="text/css"> <!-- offset fix to ion icons--><br />
|
||||
i[class*="ion-"]{<br />
|
||||
padding-left: 0.1em;<br />
|
||||
}<br />
|
||||
</style>
|
||||
</code-block>
|
||||
</div>
|
||||
</example-box>
|
||||
|
|
@ -244,3 +271,29 @@
|
|||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.fa {
|
||||
font-size: 19px !important;
|
||||
line-height: 1.3em !important;
|
||||
padding-left: 0.1em;
|
||||
}
|
||||
.fa.md-size-2x {
|
||||
font-size: 38px !important;
|
||||
}
|
||||
|
||||
.fa.md-size-3x {
|
||||
font-size: 57px !important;
|
||||
}
|
||||
|
||||
.fa.md-size-4x {
|
||||
font-size: 76px !important;
|
||||
}
|
||||
|
||||
.fa.md-size-5x {
|
||||
font-size: 95px !important;
|
||||
}
|
||||
i[class*="ion-"]{
|
||||
padding-left: 0.1em;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue