File: D:/HostingSpaces/Neopoints/momsecurity.be/resources/sass/6-Organisms/_organisms.blog.scss
.o-blog__grid {
@include mq(600) {
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
margin: -20px;
}
}
.o-blog__divider {
border: none;
border-bottom: 2px solid rgba(palette(text, 400), 0.2);
margin-bottom: space(8);
}
.o-blog__others {
margin-bottom: space(6);
@include mq($max: 600) {
> * + * {
margin-top: space(2);
}
}
@include mq(600) {
display: flex;
justify-content: space-between;
}
}
.o-blog__heading {
@include font-size(l);
font-weight: 500;
color: palette(text, 600);
}
.o-blog__article {
position: relative;
box-shadow: 0 10px 20px -15px rgba(104,153,252,0.50), 0 20px 40px -10px rgba(104,153,252,0.10);
@include mq($max: 600) {
& + & {
margin-top: 20px;
}
}
@include mq(600) {
margin: 20px;
width: calc((100% - 20px * 4) / 2);
}
@include mq(1200) {
width: calc((100% - 20px * 6) / 3);
}
}
.o-blog__link {
display: block;
cursor: pointer;
border-radius: 10px;
overflow: hidden;
text-decoration: none;
transition: background-color 150ms linear;
&:hover {
background-color: palette(neutral, 100);
&::before {
border-color: palette(neutral, 300);
}
}
&:focus {
outline-color: palette(feedback, focus);
}
}
.o-blog__body {
padding: 36px 24px;
background-color: white;
transition: background-color 0.2s;
.o-blog__link:hover & {
background-color: palette(neutral, 100);
}
}
.o-blog__image {
position: relative;
width: 100%;
padding-bottom: 65%;
overflow: hidden;
}
.o-blog__bg-image {
position: absolute;
background-size: cover;
background-position: center;
width: 100%;
height: 100%;
transform: scale3d(1,1,1);
transition: transform 0.3s ease-in-out;
.o-blog__link:hover & {
transform: scale3d(1.04, 1.04, 1);
}
}
// Body content:
.o-blog__intro {
margin-top: space(2);
margin-bottom: space(2);
@include font-size(16);
}
.o-blog__timestamp {
display: block;
margin-top: 2px;
//font-weight: 500;
@include font(14);
color: palette(primary, 400);
}
.o-blog__action {
display: flex;
justify-content: flex-start;
align-items: center;
margin-top: space(1);
@include font(14);
color: palette(text, 600);
}
.o-blog__readmore {
margin-right: space(1);
}
.o-blog__footer {
margin-top: space(8);
text-align: center;
}