Refactor SASS flex-cols

This commit is contained in:
kitajchuk
2021-04-08 15:05:04 -07:00
parent f0f540e2e4
commit c4a81ca3f9
5 changed files with 37 additions and 12 deletions
+1 -3
View File
@@ -79,9 +79,7 @@
}
&__wrap {
display: flex;
flex-direction: column;
align-items: center;
@include flex-cols();
}
&__subtext {
+6
View File
@@ -33,4 +33,10 @@
@media (max-width: $width-tablet-1) {
margin-top: 64px;
}
}
@mixin flex-cols() {
display: flex;
flex-direction: column;
align-items: center;
}
+1
View File
@@ -43,6 +43,7 @@ $width-max: 1440px;
$width-tablet-1: 1024px;
$width-tablet-2: 768px;
$width-mobile: 640px;
$width-small: 480px;
$width-padding: 4.4444444444vw;
/******************************************************************************
+27 -3
View File
@@ -60,9 +60,25 @@
.dilemma {
text-align: center;
&__wrap {
@include flex-cols();
}
&__headline {
@media (max-width: $width-small) {
max-width: 320px;
}
}
&__subtext {
margin-top: 16px;
margin-bottom: 64px;
div {
@media (max-width: $width-small) {
max-width: 270px;
}
}
}
&__tables {
@@ -112,6 +128,10 @@
cursor: pointer;
user-select: none;
p {
line-height: 1;
}
img {
width: 50%;
@@ -183,9 +203,13 @@
text-align: center;
&__wrap {
display: flex;
flex-direction: column;
align-items: center;
@include flex-cols();
}
&__headline {
@media (max-width: $width-small) {
max-width: 320px;
}
}
&__subtext {
+2 -6
View File
@@ -88,9 +88,7 @@
text-align: center;
&__wrap {
display: flex;
flex-direction: column;
align-items: center;
@include flex-cols();
}
&__subtext {
@@ -111,9 +109,7 @@
}
&__logo {
display: flex;
flex-direction: column;
align-items: center;
@include flex-cols();
img {
width: 200px;