51 lines
999 B
SCSS
51 lines
999 B
SCSS
@mixin trim-list-margin-horizontal {
|
|
& {
|
|
li {
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin menu-list($direction) {
|
|
& {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: #{$direction};
|
|
|
|
li {
|
|
flex: 0 0 auto;
|
|
margin: 0 $gutter-width;
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin background($class) {
|
|
$background-image: "/img/background/" + $class + ".jpg";
|
|
|
|
& {
|
|
background-position: center;
|
|
background-attachment: fixed;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
|
|
&.background-#{$class} {
|
|
background-image: url(#{$background-image});
|
|
}
|
|
|
|
@media only screen and (max-width: 800px) {
|
|
&.background-default {
|
|
background-position-x: 37%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|