2022-06-04 06:26:31 +02:00

445 lines
10 KiB
Plaintext

.postCard {
display: inline-flex;
flex-direction: column;
width: 100%;
max-width: 600px;
filter: drop-shadow(3px 3px 2px var(--shadow-color));
background-color: var(--background-color-accent);
border-radius: 8px;
transition: all 0.2s ease-in-out;
outline-width: 1px;
outline-style: solid;
outline-color: transparent;
&.liked {
filter: drop-shadow(0px 0px 2px var(--primaryColor));
outline-color: var(--primaryColor);
}
.wrapper {
display: inline-flex;
flex-direction: column;
align-items: center;
width: 100%;
padding: 17px;
transition: all 0.2s ease-in-out;
.postHeader {
display: inline-flex;
flex-direction: row;
justify-content: space-between;
.userInfo {
display: inline-flex;
flex-direction: row;
align-items: center;
margin-bottom: 15px;
>div {
margin-right: 10px;
}
svg {
fill: var(--appColor);
margin-left: 6px;
}
.avatar {
width: 40px;
height: 40px;
img {
object-fit: cover;
width: 40px;
height: 40px;
border-radius: 8px;
}
}
.info {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: start;
text-align: start;
width: fit-content;
color: var(--background-color-contrast);
h1 {
color: var(--background-color-contrast);
margin: 0;
font-family: "DM Mono", monospace;
align-self: start;
cursor: pointer;
}
>div {
align-self: start;
}
}
}
.postStatistics {
display: inline-flex;
flex-direction: column;
font-size: 16px;
color: var(--background-color-contrast);
height: fit-content;
.item {
display: inline-flex;
align-items: center;
justify-content: flex-end;
height: fit-content;
margin-left: 20px;
margin-bottom: 5px;
.icon {
&.filled {
color: var(--primaryColor);
fill: var(--primaryColor);
}
}
.value {
font-family: "DM Mono", monospace;
font-size: 14px;
}
}
}
}
.content {
display: inline-flex;
flex-direction: column;
align-items: flex-start;
//background-color: rgba(var(--background-color-primary));
padding: 0 10px 10px 10px;
border-radius: 8px;
color: rgba(var(--background-color-contrast));
overflow: hidden;
.message {
font-size: 14px;
font-family: "Poppins", sans-serif;
word-break: break-all;
user-select: text;
}
.additions {
width: 100%;
height: 28vh;
.slick-slider {
.slick-prev {
display: inline !important;
color: #ffffff;
z-index: 100;
top: 0;
left: 0;
height: 100%;
width: 5vw;
opacity: 0;
transition: all 150ms ease-in-out;
&:hover {
opacity: 0.6;
width: 7vw;
}
&:active {
transform: scale(0.5);
}
}
.slick-next {
display: inline !important;
color: #ffffff;
z-index: 100;
top: 0;
right: 0;
height: 100%;
width: 5vw;
opacity: 0;
transition: all 150ms ease-in-out;
&:hover {
opacity: 0.6;
width: 7vw;
}
&:active {
transform: scale(0.5);
}
}
}
.slick-track {
display: flex;
align-items: center;
}
.slick-slide {
height: 100%;
div {
height: 100%;
}
}
.ant-carousel,
.slick-slider,
.slick-list,
.slick-track {
height: 100%;
}
.addition {
width: 100%;
height: 100%;
// fixtures for media content
img {
width: 100%;
height: 100%;
border-radius: 12px;
user-select: none;
-webkit-user-drag: none;
object-fit: cover;
}
video {
width: 100%;
height: 100%;
border-radius: 12px;
user-select: none;
-webkit-user-drag: none;
object-fit: cover;
}
audio {
width: 100%;
height: 100%;
user-select: none;
-webkit-user-drag: none;
}
>div {
height: 100%;
}
}
}
>div {
margin-bottom: 10px;
}
}
>div {
width: 100%;
}
}
.actionsIndicatorWrapper {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
transition: all 0.2s ease-in-out;
}
.actionsIndicator {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 10vw;
padding: 2px;
border-radius: 8px 8px 0 0;
background-color: var(--background-color-primary);
color: var(--background-color-contrast);
font-size: 18px;
transition: all 0.2s ease-in-out;
svg {
margin: 0 !important;
}
}
.actionsWrapper {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
position: absolute;
bottom: 0;
left: 0;
opacity: 0;
width: 100%;
height: 40px;
margin-top: 15px;
padding: 10px;
border-radius: 8px;
transition: all 0.2s ease-in-out;
background-color: var(--background-color-primary);
}
.actions {
display: inline-flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 80%;
transition: all 0.2s ease-in-out;
color: var(--background-color-contrast);
.action {
display: inline-flex;
flex-direction: column;
transition: all 0.2s ease-in-out;
.icon {
cursor: pointer;
transition: all 0.2s ease-in-out;
svg {
transition: all 0.2s ease-in-out;
}
}
.value {
position: absolute;
bottom: 0;
font-size: 14px;
font-family: "DM Mono", monospace;
transform: translate(0, 50%);
transition: all 0.2s ease-in-out;
}
}
.action:hover {
.icon {
svg {
color: var(--primaryColor) !important;
}
}
}
svg {
margin: 0 !important;
}
>div {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
border-radius: 360px;
width: 55px;
height: 55px;
font-size: 20px;
padding: 2px;
background-color: var(--background-color-primary);
transform: translate(0, -15px);
}
}
}
.postCard:hover {
.wrapper {
margin-bottom: 25px;
}
.actionsWrapper {
opacity: 1;
}
// .actionsIndicator {
// opacity: 0;
// }
}
.adm-swiper-track-inner {
display: flex;
align-items: center;
height: 100%;
width: 100%;
user-select: none;
-webkit-user-drag: none;
.adm-swiper-slide {
display: flex;
align-items: center;
user-select: none;
-webkit-user-drag: none;
.adm-swiper-item {
display: flex;
align-items: center;
justify-content: center;
height: fit-content;
user-select: none;
-webkit-user-drag: none;
}
}
}