forked from AkkomaGang/akkoma-fe
fix mobile post button being too square
This commit is contained in:
parent
c6a4a0a320
commit
edb66ecade
1 changed files with 28 additions and 27 deletions
|
@ -1,13 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-if="isLoggedIn">
|
|
||||||
<button
|
<button
|
||||||
class="button-default new-status-button"
|
v-if="isLoggedIn"
|
||||||
|
class="MobilePostButton button-default new-status-button"
|
||||||
:class="{ 'hidden': isHidden, 'always-show': isPersistent }"
|
:class="{ 'hidden': isHidden, 'always-show': isPersistent }"
|
||||||
@click="openPostForm"
|
@click="openPostForm"
|
||||||
>
|
>
|
||||||
<FAIcon icon="pen" />
|
<FAIcon icon="pen" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script src="./mobile_post_status_button.js"></script>
|
<script src="./mobile_post_status_button.js"></script>
|
||||||
|
@ -15,7 +14,8 @@
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '../../_variables.scss';
|
@import '../../_variables.scss';
|
||||||
|
|
||||||
.new-status-button {
|
.MobilePostButton {
|
||||||
|
&.button-default {
|
||||||
width: 5em;
|
width: 5em;
|
||||||
height: 5em;
|
height: 5em;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
transition: 0.35s transform;
|
transition: 0.35s transform;
|
||||||
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
|
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
|
||||||
|
}
|
||||||
|
|
||||||
&.hidden {
|
&.hidden {
|
||||||
transform: translateY(150%);
|
transform: translateY(150%);
|
||||||
|
|
Loading…
Reference in a new issue