Skip to content

Instantly share code, notes, and snippets.

View norin89's full-sized avatar

Marcin Goscicki norin89

View GitHub Profile
@norin89
norin89 / input.scss
Created August 3, 2023 08:37
Generated by SassMeister.com.
// @use "sass:math";
@mixin font-size($size: 16, $line: 1.5) {
font-size: $size * 1px;
font-size: ($size / 16) + rem;
@if $line < 4 {
line-height: $line;
} @else {
line-height: $line / $size;
@norin89
norin89 / input.scss
Created July 1, 2022 15:19
Generated by SassMeister.com.
/* Root should be passed for modifiers only */
@mixin hoverable($root: '') {
@at-root {
a#{&},
button#{&},
label#{&},
&#{$root}--hoverable {
@content;
}
}
@norin89
norin89 / input.scss
Created July 1, 2022 15:18
Generated by SassMeister.com.
/* Root should be passed for modifiers only */
@mixin hoverable($root: '') {
@at-root {
a#{&},
button#{&},
label#{&},
&#{$root}--hoverable {
@content;
}
}
@norin89
norin89 / input.scss
Created July 1, 2022 15:17
Generated by SassMeister.com.
/* Root should be passed for modifiers only */
@mixin hoverable($root: '') {
@at-root {
a#{&},
button#{&},
label#{&},
&#{$root}--hoverable {
@content;
}
}
@norin89
norin89 / input.scss
Created July 1, 2022 14:54
Generated by SassMeister.com.
@mixin hoverable($root: '') {
@at-root {
a#{&},
button#{&},
label#{&},
&#{$root}--hoverable {
@content;
}
}
}
@norin89
norin89 / input.scss
Created June 23, 2022 14:28
Generated by SassMeister.com.
@use "sass:map";
// Sass map, ideally imported from JSON (e.g. with https://github.com/pmowrer/node-sass-json-importer)
// Based on MUI palette example - https://mui.com/material-ui/customization/color/#picking-colors
$palette: (
primary: (
light: '#757ce8',
main: '#3f50b5',
dark: '#002884',
contrastText: '#fff',
@norin89
norin89 / input.scss
Created June 23, 2022 14:27
Generated by SassMeister.com.
@use "sass:map";
// Sass map, ideally imported from JSON (e.g. with https://github.com/pmowrer/node-sass-json-importer)
// Based on MUI palette example - https://mui.com/material-ui/customization/color/#picking-colors
$palette: (
primary: (
light: '#757ce8',
main: '#3f50b5',
dark: '#002884',
contrastText: '#fff',
@norin89
norin89 / input.scss
Created June 23, 2022 14:23
Generated by SassMeister.com.
@use "sass:map";
// Sass map, ideally imported from JSON (e.g. with https://github.com/pmowrer/node-sass-json-importer)
// Based on MUI palette example - https://mui.com/material-ui/customization/color/#picking-colors
$palette: (
primary: (
light: '#757ce8',
main: '#3f50b5',
dark: '#002884',
contrastText: '#fff',
@norin89
norin89 / input.scss
Created June 23, 2022 14:06
Generated by SassMeister.com.
// Sass map, ideally imported from JSON (e.g. with https://github.com/pmowrer/node-sass-json-importer)
// Based on MUI palette example - https://mui.com/material-ui/customization/color/#picking-colors
$palette: (
primary: (
light: '#757ce8',
main: '#3f50b5',
dark: '#002884',
contrastText: '#fff',
),
secondary: (
@norin89
norin89 / input.scss
Created August 27, 2021 08:45
Generated by SassMeister.com.
@use "sass:meta";
@use "sass:map";
@use "sass:string";
$breakpoints: (
'xs': 0,
'md': 800,
);
@function breakpoint($key) {