[Glitch] Change floating action button to be a button in header in web UI

Port 1fd6460b02 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko
2022-10-23 15:58:24 +02:00
committed by Claire
parent 05c1dd9114
commit e9ccee38a7
7 changed files with 23 additions and 65 deletions

View File

@ -541,6 +541,7 @@
&__buttons {
display: flex;
align-items: center;
gap: 8px;
padding-top: 55px;
overflow: hidden;
@ -550,14 +551,6 @@
box-sizing: content-box;
padding: 2px;
}
& > .icon-button {
margin-right: 8px;
}
.button {
margin: 0 8px;
}
}
&__name {

View File

@ -674,6 +674,7 @@ $ui-header-height: 55px;
cursor: default;
&__image {
width: 70%;
max-width: 350px;
margin-top: -50px;
}

View File

@ -222,30 +222,6 @@
}
}
.floating-action-button {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
width: 3.9375rem;
height: 3.9375rem;
bottom: 1.3125rem;
right: 1.3125rem;
background: darken($ui-highlight-color, 2%);
color: $white;
border-radius: 50%;
font-size: 21px;
line-height: 21px;
text-decoration: none;
box-shadow: 2px 3px 9px rgba($base-shadow-color, 0.4);
&:hover,
&:focus,
&:active {
background: $ui-highlight-color;
}
}
@media screen and (min-width: $no-gap-breakpoint) {
.tabs-bar {
width: 100%;
@ -260,7 +236,6 @@
margin-bottom: 10px;
}
.floating-action-button,
.tabs-bar__link.optional {
display: none;
}
@ -277,10 +252,6 @@
@media screen and (max-width: $no-gap-breakpoint - 1px) {
$sidebar-width: 285px;
.with-fab .scrollable .item-list:last-child {
padding-bottom: 5.25rem;
}
.columns-area__panels__main {
width: calc(100% - $sidebar-width);
}