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.
This commit is contained in:
parent
5a0fd84e98
commit
ce2df5cd25
2 changed files with 4 additions and 13 deletions
|
@ -6,7 +6,7 @@ $default-padding: 2 * $default-spacer;
|
|||
|
||||
// layouts
|
||||
$two-columns-padding: 60px;
|
||||
$two-columns-breakpoint: $page-width + (2 * $default-padding);
|
||||
$two-columns-breakpoint: 980px;
|
||||
|
||||
// z-order
|
||||
$alert-z-index: 100;
|
||||
|
|
|
@ -17,26 +17,17 @@
|
|||
@media (min-width: $two-columns-breakpoint) {
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
justify-content: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
.column {
|
||||
padding: $two-columns-padding 0 0;
|
||||
padding: $two-columns-padding 0 $two-columns-padding 0;
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
|
||||
@media (min-width: $two-columns-breakpoint) {
|
||||
padding: $two-columns-padding;
|
||||
width: 50%;
|
||||
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
width: 45%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue