82 lines
1.4 KiB
SCSS
82 lines
1.4 KiB
SCSS
.post-card-box {
|
|
margin: 20px 0 20px;
|
|
padding: 0;
|
|
|
|
li {
|
|
position: relative;
|
|
list-style: none;
|
|
float: left;
|
|
width: 50%;
|
|
transition: all .3s;
|
|
padding: 0 10px 10px 0;
|
|
&:hover {
|
|
opacity: 0.9;
|
|
}
|
|
& .light-gray {
|
|
background-color: $lighten-gray;
|
|
}
|
|
& .light-purple {
|
|
background-color: $light-purple;
|
|
}
|
|
& .light-pink {
|
|
background-color: $light-pink;
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-card {
|
|
position: relative;
|
|
|
|
.post-card-image {
|
|
display: block;
|
|
width: 100%;
|
|
min-height: 150px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
&::after {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,.3);
|
|
}
|
|
}
|
|
|
|
.post-card-body {
|
|
position: absolute;
|
|
left: 5%;
|
|
bottom: 5%;
|
|
|
|
.post-card-link {
|
|
text-decoration: none;
|
|
display: block;
|
|
}
|
|
|
|
.post-card-title {
|
|
font-family: 'Lato', sans-serif;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
font-size: 18px;
|
|
color: $white;
|
|
margin: 0 0 10px;
|
|
&:hover {
|
|
opacity: .8;
|
|
}
|
|
}
|
|
|
|
.tag {
|
|
text-decoration: none;
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
color: $white;
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|