demarches-normaliennes/app/assets/stylesheets/new_design/_mixins.scss

23 lines
558 B
SCSS
Raw Normal View History

2017-04-04 14:38:42 +02:00
@mixin horizontal-padding($value) {
padding-left: $value;
padding-right: $value;
}
@mixin vertical-padding($value) {
padding-top: $value;
padding-bottom: $value;
}
2017-12-04 11:29:22 +01:00
// due to issues that won't be fixed in ie11 regarding images and flex
// https://connect.microsoft.com/IE/Feedback/Details/1218984
// we are obliged to use a background-image
@mixin ie-compatible-background-image($image-url: false) {
display: block;
background-size: contain;
background-repeat: no-repeat;
@if $image-url {
background-image: image-url($image-url);
}
}