Skip to content

Instantly share code, notes, and snippets.

@TheJaredWilcurt
Created June 13, 2022 17:38
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 TheJaredWilcurt/d9b02802323a103c2148e77961821f23 to your computer and use it in GitHub Desktop.
Save TheJaredWilcurt/d9b02802323a103c2148e77961821f23 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@use "sass:map";
$media-padding: 400px;
$padding-margin: 2px;
$utilities: ();
$utilities: map.merge(
(
"padding-y": (
class: "py",
property: padding-top padding-bottom,
media: $media-padding,
values: (
"auto": auto,
0: 0,
1: $padding-margin * 0.25,
2: $padding-margin * 0.5,
3: $padding-margin * 0.75,
4: $padding-margin * 1,
5: $padding-margin * 1.5,
6: $padding-margin * 2,
7: $padding-margin * 2.5,
8: $padding-margin * 3,
9: $padding-margin * 3.5,
10: $padding-margin * 4,
11: $padding-margin * 4.5,
12: $padding-margin * 5
)
)
),
$utilities
);
$py: map.get($utilities, 'padding-y');
.example {
content: map.get($py, 'class');
}
.example {
content: "py";
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment