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 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 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;