2021-07-20 01:35:21 +02:00
|
|
|
@use "sass:math";
|
|
|
|
|
2022-03-28 12:53:06 +02:00
|
|
|
$tablet: 769px;
|
|
|
|
$desktop: 1024px;
|
|
|
|
$widescreen: 1216px;
|
|
|
|
$fullhd: 1408px;
|
|
|
|
|
2020-11-21 01:12:08 +01:00
|
|
|
$widths: (
|
2022-03-28 12:53:06 +02:00
|
|
|
m: $tablet,
|
|
|
|
l: $desktop,
|
|
|
|
xl: $widescreen,
|
|
|
|
xxl: $fullhd,
|
2020-11-21 01:12:08 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
@for $i from 1 through 12 {
|
|
|
|
.col-#{$i} {
|
|
|
|
float: left;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
@if $i < 12 {
|
|
|
|
width: (4.66666666667%*$i) + (4% * if($i > 1, $i - 1, 0));
|
|
|
|
margin-left: 4%;
|
|
|
|
} @else {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-no-margin-#{$i} {
|
|
|
|
float: left;
|
|
|
|
box-sizing: border-box;
|
2021-07-20 01:35:21 +02:00
|
|
|
width: ((math.div(100%, 12))*$i);
|
2020-11-21 01:12:08 +01:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@if $i < 12 {
|
|
|
|
.col-offset-#{$i}:first-child {
|
|
|
|
margin-left: (8.66666666667%*$i) !important;
|
|
|
|
}
|
|
|
|
.col-offset-#{$i}:not(first-child) {
|
|
|
|
margin-left: 4% + (8.66666666667%*$i) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-28 12:53:06 +02:00
|
|
|
@media screen and (max-width: calc(#{$tablet} - 1px)) {
|
2021-05-06 23:18:47 +02:00
|
|
|
@for $i from 1 through 12 {
|
|
|
|
.col-s-#{$i} {
|
|
|
|
float: left;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
@if $i < 12 {
|
|
|
|
width: (4.66666666667%*$i) + (4% * if($i > 1, $i - 1, 0));
|
|
|
|
margin-left: 4%;
|
|
|
|
} @else {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@if $i < 12 {
|
|
|
|
.col-offset-s-#{$i} {
|
|
|
|
margin-left: (8.66666666667%*$i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-no-margin-s-#{$i} {
|
|
|
|
float: left;
|
|
|
|
box-sizing: border-box;
|
2021-07-20 01:35:21 +02:00
|
|
|
width: (math.div(100%, 12)*$i);
|
2021-05-06 23:18:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.s-hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.s-visible {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-21 01:12:08 +01:00
|
|
|
@each $size, $width in $widths {
|
2021-05-06 23:18:47 +02:00
|
|
|
@media screen and (min-width: $width) {
|
2020-11-21 01:12:08 +01:00
|
|
|
@for $i from 1 through 12 {
|
|
|
|
.col-#{$size}-#{$i} {
|
|
|
|
float: left;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
@if $i < 12 {
|
2021-07-20 01:35:21 +02:00
|
|
|
width: #{(4.66666666667%*$i) + (4% * if($i > 1, $i - 1, 0))};
|
2020-11-21 01:12:08 +01:00
|
|
|
margin-left: 4%;
|
|
|
|
} @else {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@if $i < 12 {
|
|
|
|
.col-offset-#{$size}-#{$i} {
|
2021-07-20 01:35:21 +02:00
|
|
|
margin-left: #{(8.66666666667%*$i)};
|
2020-11-21 01:12:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-no-margin-#{$size}-#{$i} {
|
|
|
|
float: left;
|
|
|
|
box-sizing: border-box;
|
2021-07-20 01:35:21 +02:00
|
|
|
width: (math.div(100%, 12)*$i);
|
2020-11-21 01:12:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$size}-hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$size}-visible {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-28 12:53:06 +02:00
|
|
|
@mixin from($device) {
|
|
|
|
@media screen and (min-width: $device) {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin until($device) {
|
|
|
|
@media screen and (max-width: calc(#{$device} - 1px)) {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin between($from, $until) {
|
|
|
|
@media screen and (min-width: $from) and (max-width: calc(#{$until} - 1px)) {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-21 01:12:08 +01:00
|
|
|
.vertical-center {
|
2023-03-20 01:26:48 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-11-21 01:12:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.horizontal-center {
|
2023-03-20 01:26:48 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2020-11-21 01:12:08 +01:00
|
|
|
}
|
2020-11-26 23:43:16 +01:00
|
|
|
|
2023-03-20 01:26:48 +01:00
|
|
|
@mixin pull-right {
|
|
|
|
display: inline-flex;
|
2020-11-26 23:43:16 +01:00
|
|
|
text-align: right;
|
2021-01-22 01:00:49 +01:00
|
|
|
justify-content: right;
|
2023-03-20 01:26:48 +01:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pull-right {
|
|
|
|
@include pull-right;
|
2020-11-26 23:43:16 +01:00
|
|
|
}
|
2020-11-27 23:12:10 +01:00
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-12-26 15:03:12 +01:00
|
|
|
|
|
|
|
.no-content {
|
|
|
|
display: flex;
|
|
|
|
font-size: 1.5em;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|