Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matrix-Sasuke
pleroma-fe
Commits
edb66eca
Commit
edb66eca
authored
3 years ago
by
HJ
Browse files
Options
Downloads
Patches
Plain Diff
fix mobile post button being too square
parent
c6a4a0a3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/mobile_post_status_button/mobile_post_status_button.vue
+29
-28
29 additions, 28 deletions
...s/mobile_post_status_button/mobile_post_status_button.vue
with
29 additions
and
28 deletions
src/components/mobile_post_status_button/mobile_post_status_button.vue
+
29
−
28
View file @
edb66eca
<
template
>
<div
v-if=
"isLoggedIn"
>
<button
class=
"button-default new-status-button"
:class=
"
{ 'hidden': isHidden, 'always-show': isPersistent }"
@click="openPostForm"
>
<FAIcon
icon=
"pen"
/>
</button>
</div>
<button
v-if=
"isLoggedIn"
class=
"MobilePostButton button-default new-status-button"
:class=
"
{ 'hidden': isHidden, 'always-show': isPersistent }"
@click="openPostForm"
>
<FAIcon
icon=
"pen"
/>
</button>
</
template
>
<
script
src=
"./mobile_post_status_button.js"
></
script
>
...
...
@@ -15,25 +14,27 @@
<
style
lang=
"scss"
>
@import
'../../_variables.scss'
;
.new-status-button
{
width
:
5em
;
height
:
5em
;
border-radius
:
100%
;
position
:
fixed
;
bottom
:
1
.5em
;
right
:
1
.5em
;
// TODO: this needs its own color, it has to stand out enough and link color
// is not very optimal for this particular use.
background-color
:
$fallback--fg
;
background-color
:
var
(
--
btn
,
$fallback--fg
);
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
box-shadow
:
0px
2px
2px
rgba
(
0
,
0
,
0
,
0
.3
)
,
0px
4px
6px
rgba
(
0
,
0
,
0
,
0
.3
);
z-index
:
10
;
transition
:
0
.35s
transform
;
transition-timing-function
:
cubic-bezier
(
0
,
1
,
0
.5
,
1
);
.MobilePostButton
{
&
.button-default
{
width
:
5em
;
height
:
5em
;
border-radius
:
100%
;
position
:
fixed
;
bottom
:
1
.5em
;
right
:
1
.5em
;
// TODO: this needs its own color, it has to stand out enough and link color
// is not very optimal for this particular use.
background-color
:
$fallback--fg
;
background-color
:
var
(
--
btn
,
$fallback--fg
);
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
box-shadow
:
0px
2px
2px
rgba
(
0
,
0
,
0
,
0
.3
)
,
0px
4px
6px
rgba
(
0
,
0
,
0
,
0
.3
);
z-index
:
10
;
transition
:
0
.35s
transform
;
transition-timing-function
:
cubic-bezier
(
0
,
1
,
0
.5
,
1
);
}
&
.hidden
{
transform
:
translateY
(
150%
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment