|
|
|
@@ -3,31 +3,45 @@ |
|
|
|
|
|
|
|
.card { |
|
|
|
&-inner { |
|
|
|
position: relative; |
|
|
|
display: block; |
|
|
|
max-width: 350px; |
|
|
|
background: var(--color-button-primary-background); |
|
|
|
background: linear-gradient(162deg, var(--theme-color-gradient-01) 50%, var(--theme-color-gradient-02) 98%, var(--theme-color-gradient-03) 100%); |
|
|
|
border-radius: 16px; |
|
|
|
overflow: hidden; |
|
|
|
container-type: inline-size; |
|
|
|
@media(max-width: 645px) { |
|
|
|
max-width: 230px; |
|
|
|
} |
|
|
|
|
|
|
|
&:hover { |
|
|
|
text-decoration: none; |
|
|
|
|
|
|
|
.image-box { |
|
|
|
img { |
|
|
|
scale: 1.06; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
&::before { |
|
|
|
content: ''; |
|
|
|
position: absolute; |
|
|
|
left: 0; |
|
|
|
top: 0; |
|
|
|
right: 0; |
|
|
|
bottom: 0; |
|
|
|
margin-top: calc(40 / 70 * 100%); |
|
|
|
@include gradient; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.image-box { |
|
|
|
overflow: hidden; |
|
|
|
height: 233px; |
|
|
|
position: relative; |
|
|
|
aspect-ratio: 70 / 47; |
|
|
|
border-top-left-radius: 16px; |
|
|
|
border-top-right-radius: 16px; |
|
|
|
clip-path: path("M 0 0 L 350 0 L 350 233 C 237.157 213.1 112.718 213.17 0 233 Z"); |
|
|
|
clip-path: path("M 0 0 L 350 0 L 350 215 C 237.157 195.1 112.718 195.17 0 215 Z"); |
|
|
|
@media(max-width: 645px) { |
|
|
|
height: 153px; |
|
|
|
} |
|
|
|
clip-path: path("M 0 0 L 350 0 L 350 235 C 237.157 215.1 112.718 215.17 0 235 Z"); |
|
|
|
|
|
|
|
img { |
|
|
|
width: 100%; |
|
|
|
@@ -35,40 +49,24 @@ |
|
|
|
object-fit: cover; |
|
|
|
border-top-left-radius: 16px; |
|
|
|
border-top-right-radius: 16px; |
|
|
|
transition: all 0.3s ease-in-out; |
|
|
|
transition: all 0.25s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.copyright { |
|
|
|
@include copyright; |
|
|
|
margin-bottom: 8px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.text-box { |
|
|
|
position: relative; |
|
|
|
height: 197px; |
|
|
|
padding: 0 25px; |
|
|
|
min-height: 194px; |
|
|
|
padding: 20px 25px; |
|
|
|
color: var(--color-button-primary-text); |
|
|
|
border-bottom-left-radius: 16px; |
|
|
|
border-bottom-right-radius: 16px; |
|
|
|
//background: linear-gradient(132deg, var(--gradient-b) 26.51%, var(--gradient-a) 100%); |
|
|
|
@media(max-width: 645px) { |
|
|
|
height: 130px; |
|
|
|
} |
|
|
|
|
|
|
|
&:before { |
|
|
|
//content: ''; |
|
|
|
//position: absolute; |
|
|
|
//left: 0; |
|
|
|
//top: -34px; |
|
|
|
//width: 100%; |
|
|
|
//height: 34px; |
|
|
|
//clip-path: path('M 0 15.88 C 112.843 -4.02 237.282 -3.95 350 15.88 L 350 234 L 0 234 Z'); |
|
|
|
//background: var(--color-button-primary-background); |
|
|
|
} |
|
|
|
|
|
|
|
.kicker { |
|
|
|
|
|
|
|
@media(max-width: 645px) { |
|
|
|
min-height: 130px; |
|
|
|
} |
|
|
|
|
|
|
|
.like-h4 { |
|
|
|
@@ -77,17 +75,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
&:hover { |
|
|
|
.card-inner { |
|
|
|
.image-box { |
|
|
|
img { |
|
|
|
scale: 1.1; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&.extern, |
|
|
|
&.download, |
|
|
|
&.intranet, |
|
|
|
|