[WIP] Use FontAwesome Component for Vue (#3127)

* wip

* Rename

* Clean up

* Clean up

* wip

* wip

* Enable tree shaking

* ✌️

* ✌️

* wip

* wip

* Clean up
This commit is contained in:
syuilo
2018-11-06 01:40:11 +09:00
committed by GitHub
parent e640dbc501
commit 9f5dc2c0df
190 changed files with 924 additions and 865 deletions

View File

@@ -1,7 +1,8 @@
<template>
<div class="notifications" v-hotkey.global="keymap">
<button :data-active="isOpen" @click="toggle" title="%i18n:@title%">
%fa:R bell%<template v-if="hasUnreadNotification">%fa:circle%</template>
<i class="bell"><fa :icon="['far', 'bell']"/></i>
<i class="circle" v-if="hasUnreadNotification"><fa icon="circle"/></i>
</button>
<div class="pop" v-if="isOpen">
<mk-notifications/>
@@ -79,11 +80,11 @@ export default Vue.extend({
&[data-active='true']
color var(--desktopHeaderHoverFg)
> [data-fa].bell
> i.bell
font-size 1.2em
line-height 48px
> [data-fa].circle
> i.circle
margin-left -5px
vertical-align super
font-size 10px