hackertours-theme/sass/layouts/layout-swap/_layout-swap.scss
Fredrik Jonsson b7977e1c28 First commit.
2017-03-09 14:29:29 +01:00

31 lines
687 B
SCSS

// The height of the navigation container.
$layout-swap-height: 2 * $base-line-height;
// Layout swap
//
// Uses absolute positioning and selective padding to make 2 elements appear to
// swap places in the visual order while maintaining their original HTML source
// order.
//
// Markup: layout-swap.twig
//
// Style guide: layouts.layout-swap
.layout-swap,
%layout-swap {
position: relative;
@include respond-to(xs) {
// Move all the children down to make room for the "top" element.
padding-top: $layout-swap-height;
}
&__top {
@include respond-to(xs) {
position: absolute;
top: 0;
height: $layout-swap-height;
width: 100%;
}
}
}