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

33 lines
635 B
SCSS
Raw Normal View History

2017-06-20 11:13:24 +02:00
@import "colors";
@import "constants";
@import "placeholders";
.two-columns {
$column-padding: 60px;
$two-columns-breakpoint: $page-width + (2 * $column-padding);
background: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 50%, $light-grey 50%, $light-grey 100%);
.columns-container {
@extend %page-width-container;
display: flex;
flex-direction: row;
align-items: center;
}
.column {
width: 50%;
padding: $column-padding;
@media (min-width: $two-columns-breakpoint) {
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}
}
}