spee.ch/client/scss/_horizontal-split.scss

63 lines
1.2 KiB
SCSS
Raw Normal View History

.horizontal-split {
2018-11-09 01:44:59 +01:00
max-width: $width-content-constrained;
width: 100%;
margin-left: auto;
margin-right: auto;
display : flex;
flex-direction : row;
justify-content: space-between;
2018-11-10 20:59:53 +01:00
&.horizontal-split--mobile-collapse {
@media (max-width: $break-point-mobile) {
flex-direction: column;
.horizontal-split__column {
width: 100%;
}
.horizontal-split__column--right {
padding-left: 0;
padding-top: $secondary-padding;
}
}
}
};
2018-06-11 01:07:15 +02:00
2018-11-09 01:44:59 +01:00
.horizontal-split__column {
width: 50%;
flex: 1 0 auto;
box-sizing: border-box;
}
.horizontal-split__column--left {
padding-right: $primary-padding;
2018-11-10 20:59:53 +01:00
@media (max-width: $break-point-mobile) {
padding-right: $thin-padding;
}
2018-11-09 01:44:59 +01:00
}
2018-06-11 01:07:15 +02:00
2018-11-09 01:44:59 +01:00
.horizontal-split__column--right {
padding-left: $primary-padding;
2018-11-10 20:59:53 +01:00
@media (max-width: $break-point-mobile) {
padding-left: $thin-padding;
}
2018-11-09 01:44:59 +01:00
}
2018-06-11 01:07:15 +02:00
2018-10-22 22:26:19 +02:00
@media (max-width: $break-point-tablet) {
2018-06-11 01:07:15 +02:00
2018-11-09 01:44:59 +01:00
.horizontal-split__column {
2018-06-11 01:07:15 +02:00
display : flex;
flex-direction : column;
justify-content: space-between;
};
2018-11-09 01:44:59 +01:00
.column {
width: 100%;
padding-left: 0;
padding-right: 0;
padding-bottom: $secondary-padding;
}
2018-06-11 01:07:15 +02:00
}