mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-11-01 07:25:06 +01:00
Add name prop to MaterialIcon (#84)
This commit is contained in:
parent
6906d137bd
commit
10d13bf305
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="icon-holder">
|
<div :class="name" class="material-holder">
|
||||||
<i v-if="legacy" class="legacy-material-icons mdi" v-bind:class="iconName"></i>
|
<i v-if="legacy" :class="iconName" class="material-legacy-icons mdi"></i>
|
||||||
<i v-else class="material-icons">{{ iconName }}</i>
|
<i v-else class="material-icons">{{ iconName }}</i>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -19,6 +19,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
name: {
|
||||||
|
type: String,
|
||||||
|
default: ""
|
||||||
|
},
|
||||||
iconName: {
|
iconName: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
@ -31,7 +35,7 @@ export default {
|
|||||||
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
|
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
|
||||||
@import url("https://cdn.materialdesignicons.com/4.4.95/css/materialdesignicons.min.css");
|
@import url("https://cdn.materialdesignicons.com/4.4.95/css/materialdesignicons.min.css");
|
||||||
|
|
||||||
.icon-holder {
|
.material-holder {
|
||||||
color: #476582;
|
color: #476582;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
@ -45,7 +49,7 @@ export default {
|
|||||||
top: 0.2rem;
|
top: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.legacy-material-icons {
|
.material-legacy-icons {
|
||||||
font-size: 1.35em;
|
font-size: 1.35em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user