blog/frontend/src/lib/css/carousel.css

92 lines
No EOL
1.7 KiB
Text

.carousel-v-main {
padding: 1rem;
margin-left: 10dvw;
width: 80dvw;
display: flex;
flex-direction: row;
height: calc(50dvh + 2rem*3);
font-family: Urbanist;
font-weight: 500;
font-size: 1.1rem;
padding-bottom: 3rem;
}
.carousel-v-bigpost {
display: flex;
width: 50%;
height: 100%;
box-shadow: #00000040 0px 8px 18px -1px;
transition: all .1s ease 0s;
background-color: var(--color-background);
z-index: 2;
margin-right: 1rem;
margin-top: 2rem;
margin-bottom: 2rem;
}
.carousel-v-bigpost>div {
display: flex;
flex-direction: column;
margin: 1rem;
}
.carousel-picture {
width: 90%;
height: auto;
object-fit: cover;
margin-bottom: 0.5rem;
}
.carousel-v-minpost-container {
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
width: 50%;
height: 100%;
padding-top: 2rem;
padding-bottom: 2rem;
}
.carousel-v-main h2 {
font-family: Gabarito;
font-weight: 500;
}
.carousel-v-main svg {
margin-right: 1rem;
}
.carousel-v-bigpost:hover, .carousel-v-minpost:hover {
cursor: pointer;
transform: scale(1.01) translateY(-4px);
}
.carousel-v-minpost {
display: flex;
flex-direction: row;
height: calc(50dvh/3);
padding: 1rem;
box-shadow: #00000040 0px 8px 18px -1px;
transition: all .1s ease 0s;
margin-right: 1rem;
margin-left: 1rem;
}
.carousel-v-minpost img {
min-width: 50%;
max-width: 50%;
height: 100%;
object-fit: cover;
margin: 0;
margin-right: 1rem;
}
.carousel-v-minpost h2 {
margin: 0;
margin-bottom: 0.5rem;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}