2021-12-23 03:42:22 +01:00
|
|
|
@use 'sass:math';
|
|
|
|
|
2024-01-17 18:01:24 +01:00
|
|
|
// grid settings
|
|
|
|
$grid-columns: 12;
|
|
|
|
$grid-gutter-width: 3%;
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
// Utility variable - you should never need to modify this
|
2021-12-23 03:42:22 +01:00
|
|
|
$padding: math.div($grid-gutter-width, 2);
|
2014-02-11 18:18:59 +01:00
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
// Our row container
|
2015-09-25 15:17:39 +02:00
|
|
|
@mixin row($padding: 0) {
|
2014-02-11 18:18:59 +01:00
|
|
|
@include clearfix();
|
2015-09-25 15:17:39 +02:00
|
|
|
display: block;
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-end: auto;
|
|
|
|
margin-inline-start: auto;
|
|
|
|
padding-inline-end: $padding;
|
|
|
|
padding-inline-start: $padding;
|
2014-02-11 18:18:59 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
@mixin row-flush() {
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-start: -$padding;
|
|
|
|
margin-inline-end: -$padding;
|
2014-02-11 18:18:59 +01:00
|
|
|
}
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
// Our column container
|
2015-09-25 15:17:39 +02:00
|
|
|
@mixin column($x, $padding: $padding, $grid-columns: $grid-columns) {
|
2014-02-11 18:18:59 +01:00
|
|
|
display: inline;
|
2023-12-18 18:03:03 +01:00
|
|
|
float: inline-start;
|
2021-12-23 03:42:22 +01:00
|
|
|
width: 100% * math.div($x, $grid-columns);
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-end: $padding;
|
|
|
|
padding-inline-start: $padding;
|
2014-02-11 18:18:59 +01:00
|
|
|
}
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
// only used in places where padding not applied to same elements as row or row-flush
|
|
|
|
// most of the time this class should be applied directly to the html elements
|
2015-09-25 15:17:39 +02:00
|
|
|
@mixin nice-padding {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: $mobile-nice-padding;
|
|
|
|
padding-inline-end: $mobile-nice-padding;
|
2014-02-11 18:18:59 +01:00
|
|
|
|
2018-11-04 22:46:42 +01:00
|
|
|
@include media-breakpoint-up(sm) {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: $desktop-nice-padding;
|
|
|
|
padding-inline-end: $desktop-nice-padding;
|
2014-02-11 18:18:59 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
}
|
2018-01-18 13:43:15 +01:00
|
|
|
|
|
|
|
@mixin nice-margin {
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-start: $mobile-nice-padding;
|
|
|
|
margin-inline-end: $mobile-nice-padding;
|
2018-01-18 13:43:15 +01:00
|
|
|
|
2018-11-04 22:46:42 +01:00
|
|
|
@include media-breakpoint-up(sm) {
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-start: $desktop-nice-padding;
|
|
|
|
margin-inline-end: $desktop-nice-padding;
|
2018-01-18 13:43:15 +01:00
|
|
|
}
|
|
|
|
}
|
2022-07-25 16:20:19 +02:00
|
|
|
|
|
|
|
@mixin max-form-width {
|
|
|
|
max-width: $max-form-width;
|
|
|
|
}
|