podcast-webseite/assets/scss/parts/_image.scss

72 lines
979 B
SCSS
Raw Permalink Normal View History

2019-05-25 21:43:29 +02:00
/* Image */
.image {
border-radius: _size(border-radius);
border: 0;
display: inline-block;
position: relative;
overflow: hidden;
&::before {
content: '';
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1;
}
img {
border-radius: _size(border-radius);
display: block;
}
&.left {
float: left;
margin: 0 1.5em 1em 0;
top: 0.25em;
}
&.right {
float: right;
margin: 0 0 1em 1.5em;
top: 0.25em;
}
&.left,
&.right {
max-width: 40%;
img {
width: 100%;
}
}
&.fit {
display: block;
margin: 0 0 _size(element-margin) 0;
width: 100%;
img {
width: 100%;
}
}
&.mapid {
height: 70vh;
}
&.lightgallery {
width: 33%;
height: 200pt;
object-fit: cover;
@include breakpoint(tablet) {
width: 49%;
}
@include breakpoint(phablet) {
width: 100%;
}
}
}