mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-07-24 13:13:26 +00:00
116 lines
2.4 KiB
SCSS
116 lines
2.4 KiB
SCSS
.-post-received-reactions {
|
|
.rewind-report-container {
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5em;
|
|
@media screen and (width <= 475px) {
|
|
gap: 0.125em;
|
|
}
|
|
}
|
|
.rewind-card {
|
|
background: var(--secondary);
|
|
flex-direction: row;
|
|
gap: 0.5em;
|
|
height: min-content;
|
|
@include rewind-border;
|
|
.emoji {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
perspective: 1000px;
|
|
will-change: transform;
|
|
transform-style: preserve-3d;
|
|
border-radius: var(--rewind-border-radius);
|
|
cursor: pointer;
|
|
animation-name: ambientMovement;
|
|
animation-duration: 4000ms;
|
|
animation-delay: calc(-4000ms * var(--rand));
|
|
animation-iteration-count: infinite;
|
|
animation-timing-function: ease-in-out;
|
|
z-index: 1;
|
|
}
|
|
.rewind-card__emoji {
|
|
font-size: 12px;
|
|
}
|
|
.scale:nth-child(1) {
|
|
padding: 0.25em;
|
|
transform: rotateZ(calc(var(--ambientAmount) * 12deg));
|
|
.emoji {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
.scale:nth-child(2) {
|
|
padding: 0.35em;
|
|
transform: rotateZ(calc(var(--ambientAmount) * 11.2deg));
|
|
.emoji {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
}
|
|
.scale:nth-child(3) {
|
|
transform: rotateZ(calc(var(--ambientAmount) * 10deg));
|
|
padding: 0.5em;
|
|
.emoji {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
.scale:nth-child(4) {
|
|
transform: rotateZ(calc(var(--ambientAmount) * 8deg));
|
|
padding: 0.75em;
|
|
.emoji {
|
|
width: 26px;
|
|
height: 26px;
|
|
}
|
|
}
|
|
.scale:nth-child(5) {
|
|
transform: rotateZ(calc(var(--ambientAmount) * 13deg));
|
|
}
|
|
@media screen and (width <= 625px) {
|
|
.scale {
|
|
width: min-content;
|
|
}
|
|
.scale:nth-child(1) {
|
|
padding: 0.15em;
|
|
}
|
|
.scale:nth-child(2) {
|
|
padding: 0.25em;
|
|
}
|
|
.scale:nth-child(3) {
|
|
padding: 0.35em;
|
|
}
|
|
.scale:nth-child(4) {
|
|
padding: 0.45em;
|
|
}
|
|
.scale:nth-child(5) {
|
|
padding: 0.65em;
|
|
}
|
|
}
|
|
@media screen and (width <= 475px) {
|
|
.scale {
|
|
width: min-content;
|
|
}
|
|
.scale:nth-child(1) {
|
|
padding: 0.15em;
|
|
display: none;
|
|
}
|
|
.scale:nth-child(2) {
|
|
padding: 0.2em;
|
|
margin-top: 10px;
|
|
}
|
|
.scale:nth-child(3) {
|
|
padding: 0.2em;
|
|
margin-top: 20px;
|
|
}
|
|
.scale:nth-child(4) {
|
|
padding: 0.2em;
|
|
}
|
|
.scale:nth-child(5) {
|
|
padding: 0.2em;
|
|
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
}
|