mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 01:08:50 +01:00
New "shazam" CSS effect utility lolol
I might rename this in the future
This commit is contained in:
parent
c316f0106b
commit
ef12916bab
4 changed files with 69 additions and 50 deletions
|
@ -199,17 +199,6 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.account-container .common-followers {
|
|
||||||
display: grid;
|
|
||||||
grid-template-rows: 1fr;
|
|
||||||
transition: grid-template-rows 0.5s ease-in-out;
|
|
||||||
}
|
|
||||||
.account-container .common-followers[hidden] {
|
|
||||||
grid-template-rows: 0fr;
|
|
||||||
}
|
|
||||||
.account-container .common-followers > .common-followers-inner {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.account-container .common-followers p {
|
.account-container .common-followers p {
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
color: var(--text-insignificant-color);
|
color: var(--text-insignificant-color);
|
||||||
|
|
|
@ -487,8 +487,11 @@ function RelatedActions({ info, instance, authenticated }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div class="common-followers" hidden={!familiarFollowers?.length}>
|
<div
|
||||||
<div class="common-followers-inner">
|
class="common-followers shazam-container no-animation"
|
||||||
|
hidden={!familiarFollowers?.length}
|
||||||
|
>
|
||||||
|
<div class="shazam-container-inner">
|
||||||
<p>
|
<p>
|
||||||
Also followed by{' '}
|
Also followed by{' '}
|
||||||
<span class="ib">
|
<span class="ib">
|
||||||
|
|
|
@ -391,3 +391,26 @@ code {
|
||||||
object-position: 50% 50%;
|
object-position: 50% 50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes shazam {
|
||||||
|
0% {
|
||||||
|
grid-template-rows: 0fr;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
grid-template-rows: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.shazam-container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 1fr;
|
||||||
|
transition: grid-template-rows 0.5s ease-in-out;
|
||||||
|
}
|
||||||
|
.shazam-container:not(.no-animation) {
|
||||||
|
animation: shazam 0.5s ease-in-out both !important;
|
||||||
|
}
|
||||||
|
.shazam-container[hidden] {
|
||||||
|
grid-template-rows: 0fr;
|
||||||
|
}
|
||||||
|
.shazam-container-inner {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
|
@ -235,6 +235,8 @@ function Notifications() {
|
||||||
)}
|
)}
|
||||||
</header>
|
</header>
|
||||||
{announcements.length > 0 && (
|
{announcements.length > 0 && (
|
||||||
|
<div class="shazam-container">
|
||||||
|
<div class="shazam-container-inner">
|
||||||
<details class="announcements">
|
<details class="announcements">
|
||||||
<summary>
|
<summary>
|
||||||
<span>
|
<span>
|
||||||
|
@ -273,6 +275,8 @@ function Notifications() {
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
{followRequests.length > 0 && (
|
{followRequests.length > 0 && (
|
||||||
<div class="follow-requests">
|
<div class="follow-requests">
|
||||||
|
|
Loading…
Reference in a new issue