krautworld-website_kraut.world/assets/sass/components/_image.scss
2022-05-09 13:22:27 +02:00

70 lines
991 B
SCSS

///
/// Prototype by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Image */
.image {
border-radius: _size(border-radius);
border: 0;
display: inline-block;
position: relative;
img {
border-radius: _size(border-radius);
display: block;
}
&.left,
&.right {
max-width: 40%;
img {
width: 100%;
}
}
&.left {
float: left;
margin: 0 2.5em 2em 0;
top: 0.25em;
}
&.right {
float: right;
margin: 0 0 2em 2.5em;
top: 0.25em;
}
&.fit {
display: block;
margin: 0 0 _size(element-margin) 0;
width: 100%;
img {
width: 100%;
}
}
&.main {
display: block;
margin: 0 0 (_size(element-margin) * 1.5) 0;
width: 100%;
img {
width: 100%;
}
}
@include breakpoint('<=small') {
&.left {
margin: 0 1.5em 1em 0;
}
&.right {
margin: 0 0 1em 1.5em;
}
}
}