mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
40 lines
732 B
SCSS
40 lines
732 B
SCSS
@import 'variables';
|
|
@import 'mixins';
|
|
|
|
.postImageTitle {
|
|
transition: 0.1s ease-out;
|
|
font-size: $font-size-h3;
|
|
font-family: $font-family-headings;
|
|
line-height: $line-height-headings;
|
|
font-weight: $font-weight-headings;
|
|
font-style: normal;
|
|
text-align: left;
|
|
letter-spacing: -0.02em;
|
|
margin: 0;
|
|
position: absolute;
|
|
top: 10%;
|
|
padding: $spacer / 3 $spacer;
|
|
background: rgba($link-color, 0.85);
|
|
color: #fff !important;
|
|
text-shadow: 0 1px 0 #000;
|
|
left: 0;
|
|
opacity: 0;
|
|
transform: translate3d(0, -20px, 0);
|
|
}
|
|
|
|
.postImage {
|
|
display: block;
|
|
|
|
a & {
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
a:hover & {
|
|
.postImageTitle {
|
|
opacity: 1;
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
}
|
|
}
|