mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Merge pull request #248 from hellcp/patch-20
Make card not round on mobile (and fix #244)
This commit is contained in:
commit
a297f50f63
2 changed files with 16 additions and 2 deletions
14
resources/assets/sass/custom.scss
vendored
14
resources/assets/sass/custom.scss
vendored
|
@ -193,6 +193,13 @@ body, button, input, textarea {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: map-get($grid-breakpoints, "sm")) {
|
||||||
|
.card-md-rounded-0 {
|
||||||
|
border-width: 1px 0;
|
||||||
|
border-radius:0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes loading-bar {
|
@keyframes loading-bar {
|
||||||
from { background-position: 0 0; }
|
from { background-position: 0 0; }
|
||||||
to { background-position: 100vw 0; }
|
to { background-position: 100vw 0; }
|
||||||
|
@ -235,6 +242,12 @@ body, button, input, textarea {
|
||||||
background-position: 50%;
|
background-position: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.status-photo img {
|
||||||
|
object-fit: contain;
|
||||||
|
max-height: calc(100vh - (6rem));
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes fadeInDown {
|
@keyframes fadeInDown {
|
||||||
0% {
|
0% {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
@ -249,3 +262,4 @@ body, button, input, textarea {
|
||||||
animation-name: fadeInDown;
|
animation-name: fadeInDown;
|
||||||
animation-duration: 0.5s;
|
animation-duration: 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="container px-0 mt-md-4">
|
<div class="container px-0 mt-md-4">
|
||||||
<div class="card status-container orientation-{{$status->firstMedia()->orientation ?? 'unknown'}}">
|
<div class="card card-md-rounded-0 status-container orientation-{{$status->firstMedia()->orientation ?? 'unknown'}}">
|
||||||
<div class="row mx-0">
|
<div class="row mx-0">
|
||||||
<div class="d-flex d-md-none align-items-center justify-content-between card-header bg-white w-100">
|
<div class="d-flex d-md-none align-items-center justify-content-between card-header bg-white w-100">
|
||||||
<div class="d-flex align-items-center status-username">
|
<div class="d-flex align-items-center status-username">
|
||||||
|
|
Loading…
Reference in a new issue