demarches-normaliennes/app/assets/stylesheets/new_design/layouts.scss
Pierre de La Morinerie ce2df5cd25 stylesheet: refactor the two-columns layout with adaptative margins
This allow to break to the single-column layout later, and thus to
display the two-columns variant of the layout on narrower screens.
2019-03-19 14:19:25 +01:00

42 lines
810 B
SCSS

@import "colors";
@import "common";
@import "constants";
.two-columns {
background-color: #FFFFFF;
@media (min-width: $two-columns-breakpoint) {
background: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 50%, $light-grey 50%, $light-grey 100%);
}
.columns-container {
@extend .container;
display: flex;
flex-direction: column;
@media (min-width: $two-columns-breakpoint) {
flex-direction: row;
align-items: stretch;
justify-content: space-between;
}
}
.column {
padding: $two-columns-padding 0 $two-columns-padding 0;
width: 100%;
max-width: 500px;
@media (min-width: $two-columns-breakpoint) {
width: 45%;
}
}
}
.one-column-centered {
margin: auto;
max-width: $page-width / 2;
}
.blank-tab {
text-align: center;
}