193 lines
3.3 KiB
SCSS
193 lines
3.3 KiB
SCSS
|
.articles {
|
||
|
display: grid;
|
||
|
grid-template-columns: repeat(3, 1fr);
|
||
|
grid-column-gap: 1.3em;
|
||
|
grid-row-gap: 1.3em;
|
||
|
|
||
|
article {
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
.article {
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
background-color: #fff;
|
||
|
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
|
||
|
transition: box-shadow 0.3s;
|
||
|
border-radius: 5px;
|
||
|
width: 100%;
|
||
|
height: 25em;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
color: inherit;
|
||
|
text-decoration: none;
|
||
|
opacity: initial;
|
||
|
}
|
||
|
|
||
|
a:hover {
|
||
|
opacity: initial;
|
||
|
}
|
||
|
|
||
|
.article:hover {
|
||
|
box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.3);
|
||
|
}
|
||
|
|
||
|
.article-status {
|
||
|
position: absolute;
|
||
|
top: 20px;
|
||
|
right: 20px;
|
||
|
width: 55px;
|
||
|
height: 55px;
|
||
|
padding-top: 10px;
|
||
|
color: #fff;
|
||
|
line-height: 2.3;
|
||
|
font-size: 15px;
|
||
|
font-weight: bold;
|
||
|
text-align: center;
|
||
|
background-color: $primary-color;
|
||
|
border-radius: 50%;
|
||
|
text-transform: uppercase;
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.article-status-day {
|
||
|
display: block;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
.article-status-month {
|
||
|
display: block;
|
||
|
font-size: 14px;
|
||
|
text-transform: uppercase;
|
||
|
}
|
||
|
|
||
|
.article-thumb {
|
||
|
height: 15em;
|
||
|
overflow: hidden;
|
||
|
background-color: white;
|
||
|
background-size: cover;
|
||
|
background-position: center;
|
||
|
transition: height 0.3s;
|
||
|
}
|
||
|
|
||
|
.article-thumb img {
|
||
|
display: block;
|
||
|
opacity: 1;
|
||
|
transition: opacity 0.3s, transform 0.3s;
|
||
|
transform: scale(1);
|
||
|
}
|
||
|
|
||
|
.article-body {
|
||
|
position: absolute;
|
||
|
bottom: 0;
|
||
|
background: white;
|
||
|
width: 100%;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
|
||
|
padding: 1em;
|
||
|
height: 12em;
|
||
|
transition: height 0.3s;
|
||
|
}
|
||
|
|
||
|
.article:hover .article-body {
|
||
|
height: 18em;
|
||
|
}
|
||
|
|
||
|
.article-title {
|
||
|
margin: 0;
|
||
|
padding: 0 0 10px 0;
|
||
|
font-size: 22px;
|
||
|
color: #000;
|
||
|
font-weight: bold;
|
||
|
transition: all 0.3s;
|
||
|
}
|
||
|
|
||
|
.article-subtitle {
|
||
|
margin: 0;
|
||
|
padding: 0 0 10px 0;
|
||
|
font-size: 19px;
|
||
|
color: $primary-color;
|
||
|
}
|
||
|
|
||
|
.article-description {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
color: #666C74;
|
||
|
font-size: 14px;
|
||
|
line-height: 27px;
|
||
|
opacity: 0;
|
||
|
transition: opacity 0.2s, transform 0.2s;
|
||
|
transition-delay: 0s;
|
||
|
transform: translateY(25px);
|
||
|
|
||
|
height: 100%;
|
||
|
// text-overflow: ellipsis;
|
||
|
// white-space: nowrap;
|
||
|
// overflow: hidden;
|
||
|
}
|
||
|
|
||
|
.article:hover .article-description {
|
||
|
opacity: 1;
|
||
|
transition-delay: 0.1s;
|
||
|
transform: translateY(0);
|
||
|
}
|
||
|
|
||
|
// @keyframes titleBlur {
|
||
|
// 0% {
|
||
|
// opacity: 0.6;
|
||
|
// text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.6);
|
||
|
// }
|
||
|
|
||
|
// 100% {
|
||
|
// opacity: 1;
|
||
|
// text-shadow: 0px 5px 5px transparent;
|
||
|
// }
|
||
|
// }
|
||
|
// @keyframes subtitleBlur {
|
||
|
// 0% {
|
||
|
// opacity: 0.6;
|
||
|
// text-shadow: 0px 5px 5px rgba(239, 90, 49, 0.6);
|
||
|
// }
|
||
|
|
||
|
// 100% {
|
||
|
// opacity: 1;
|
||
|
// text-shadow: 0px 5px 5px rgba(239, 90, 49, 0);
|
||
|
// }
|
||
|
// }
|
||
|
}
|
||
|
|
||
|
|
||
|
@media (max-width: $responsive-medium) {
|
||
|
.articles {
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
flex-wrap: wrap;
|
||
|
.article {
|
||
|
max-width: 22em;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (max-width: $responsive-small) {
|
||
|
.blog-title-container {
|
||
|
padding: 0;
|
||
|
.blog-title {
|
||
|
display: none;
|
||
|
}
|
||
|
.sort {
|
||
|
margin-top: 0 !important;
|
||
|
padding-top: 1em;
|
||
|
padding-bottom: 1em;
|
||
|
}
|
||
|
}
|
||
|
.articles {
|
||
|
align-items: center;
|
||
|
flex-direction: column;
|
||
|
.article {
|
||
|
width: 100%;
|
||
|
}
|
||
|
}
|
||
|
}
|