Skip to content

Instantly share code, notes, and snippets.

@JuanSerranoTech
Created October 20, 2021 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JuanSerranoTech/8ab864a2d178fa757864a7822c5c5811 to your computer and use it in GitHub Desktop.
Save JuanSerranoTech/8ab864a2d178fa757864a7822c5c5811 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$map-sizes-desk: (
'xxl': 280,
'xl': 160,
'l': 80,
'm': 40,
's': 20,
'xs': 12
);
$map-sizes-mob: (
'xxl': 160,
'xl': 80
);
$varSizeFormat : 1px;
@each $varSizeName, $varSizeValue in $map-sizes-desk {
.u-mT-#{$varSizeName}{
margin-top: $varSizeValue * $varSizeFormat;
}
.u-mB-#{$varSizeName}{
margin-bottom: $varSizeValue * $varSizeFormat;
}
.u-mTB-#{$varSizeName}{
margin-bottom: $varSizeValue * $varSizeFormat;
margin-top: $varSizeValue * $varSizeFormat;
}
}
@media (max-width: 1000px) {
@each $varSizeName, $varSizeValue in $map-sizes-mob {
.u-mT-#{$varSizeName}{
margin-top: $varSizeValue * $varSizeFormat;
}
.u-mB-#{$varSizeName}{
margin-bottom: $varSizeValue * $varSizeFormat;
}
.u-mTB-#{$varSizeName}{
margin-bottom: $varSizeValue * $varSizeFormat;
margin-top: $varSizeValue * $varSizeFormat;
}
}
}
.u-mT-xxl {
margin-top: 280px;
}
.u-mB-xxl {
margin-bottom: 280px;
}
.u-mTB-xxl {
margin-bottom: 280px;
margin-top: 280px;
}
.u-mT-xl {
margin-top: 160px;
}
.u-mB-xl {
margin-bottom: 160px;
}
.u-mTB-xl {
margin-bottom: 160px;
margin-top: 160px;
}
.u-mT-l {
margin-top: 80px;
}
.u-mB-l {
margin-bottom: 80px;
}
.u-mTB-l {
margin-bottom: 80px;
margin-top: 80px;
}
.u-mT-m {
margin-top: 40px;
}
.u-mB-m {
margin-bottom: 40px;
}
.u-mTB-m {
margin-bottom: 40px;
margin-top: 40px;
}
.u-mT-s {
margin-top: 20px;
}
.u-mB-s {
margin-bottom: 20px;
}
.u-mTB-s {
margin-bottom: 20px;
margin-top: 20px;
}
.u-mT-xs {
margin-top: 12px;
}
.u-mB-xs {
margin-bottom: 12px;
}
.u-mTB-xs {
margin-bottom: 12px;
margin-top: 12px;
}
@media (max-width: 1000px) {
.u-mT-xxl {
margin-top: 160px;
}
.u-mB-xxl {
margin-bottom: 160px;
}
.u-mTB-xxl {
margin-bottom: 160px;
margin-top: 160px;
}
.u-mT-xl {
margin-top: 80px;
}
.u-mB-xl {
margin-bottom: 80px;
}
.u-mTB-xl {
margin-bottom: 80px;
margin-top: 80px;
}
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment