Skip to content

Instantly share code, notes, and snippets.

View esmaeilbahrani's full-sized avatar

Esmaeil Bahrani Fard esmaeilbahrani

View GitHub Profile
@esmaeilbahrani
esmaeilbahrani / spacing.scss
Last active October 26, 2023 06:59
Efficiently manage margin and padding in CSS with this dynamic SCSS spacing module. Customizable spacing values and flexible side options make it easy to achieve consistent spacing throughout your web projects. Boost code reusability and streamline development with generated CSS classes, while maintaining scalability for future design needs. Imp…
$spaces: (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 30, 40, 50, 100);
$sides: (
"": "all",
"t": "top",
"b": "bottom",
"l": "left",
"r": "right",
"tl": "top-left",
"tr": "top-right",
"bl": "bottom-left",
@esmaeilbahrani
esmaeilbahrani / responsive.scss
Last active March 11, 2024 07:52
Responsive Design (SCSS)
// Standard Breakpoints
$breakpoints: (
xxs: 480px,
xs: 768px,
sm: 991px,
md: 1280px,
lg: 1920px,
);
// Function for handling breakpoints