demarches-normaliennes/app/assets/stylesheets/new_design/layouts.scss
2017-09-06 11:11:10 +02:00

32 lines
618 B
SCSS

@import "colors";
@import "common";
@import "constants";
.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 .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;
}
}
}
}