2018-02-12 14:10:16 +02:00
|
|
|
<template>
|
2018-04-07 20:30:37 +03:00
|
|
|
<div class="note">
|
2018-04-14 20:36:01 +03:00
|
|
|
<button @click="post" title="%i18n:@post%">%fa:pencil-alt%</button>
|
2018-02-12 14:10:16 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
methods: {
|
|
|
|
post() {
|
2018-02-20 16:12:29 +02:00
|
|
|
(this as any).apis.post();
|
2018-02-12 14:10:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-03-03 06:47:55 +02:00
|
|
|
@import '~const.styl'
|
|
|
|
|
2018-04-07 20:30:37 +03:00
|
|
|
.note
|
2018-02-12 14:10:16 +02:00
|
|
|
display inline-block
|
|
|
|
padding 8px
|
|
|
|
height 100%
|
|
|
|
vertical-align top
|
|
|
|
|
|
|
|
> button
|
|
|
|
display inline-block
|
|
|
|
margin 0
|
|
|
|
padding 0 10px
|
|
|
|
height 100%
|
|
|
|
font-size 1.2em
|
|
|
|
font-weight normal
|
|
|
|
text-decoration none
|
|
|
|
color $theme-color-foreground
|
|
|
|
background $theme-color !important
|
|
|
|
outline none
|
|
|
|
border none
|
|
|
|
border-radius 4px
|
|
|
|
transition background 0.1s ease
|
|
|
|
cursor pointer
|
|
|
|
|
|
|
|
*
|
|
|
|
pointer-events none
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
background lighten($theme-color, 10%) !important
|
|
|
|
|
|
|
|
&:active
|
|
|
|
background darken($theme-color, 10%) !important
|
|
|
|
transition background 0s ease
|
|
|
|
|
|
|
|
</style>
|