Skip to content

Instantly share code, notes, and snippets.

@SvenBudak
SvenBudak / input.scss
Created July 14, 2022 23:14
Generated by SassMeister.com.
// https://material.angular.io/cdk/layout/overview#predefined-breakpoints
$res-xs: 0 !default; // Smartphone
$res-sm: 600px !default; // Tablet
$res-md: 960px !default; // Large Tablet
$res-lg: 1280px !default; // Large Tablet and Notebooks
$res-xl: 1920px !default; // Desktop +
$breakpoints: (
'xs': $res-xs,
'sm': $res-sm,
@SvenBudak
SvenBudak / test\input.scss
Created May 4, 2022 23:05
Generated by SassStyle.
.test {
color:blue;
}
@SvenBudak
SvenBudak / input.scss
Created February 10, 2022 00:31
Generated by SassMeister.com.
$breakpoints: ('xs': 0, 'sm': 600px) !default;
@mixin media-min($var) {@media only screen and (min-width: $var) {@content;}}
@mixin media-max($var) {@media only screen and (max-width: $var - 1px) {@content;}}
@mixin media-from-to($var1, $var2) {@media only screen and (min-width: $var1) and (max-width: $var2 - 1px) {@content;}}
$spacings: (
'margin': (
'shorten-class-names': false,
@SvenBudak
SvenBudak / input.scss
Created February 8, 2022 21:04
Generated by SassMeister.com.
$breakpoints: ('xs': 0, 'sm': 600px) !default;
// $breakpoints: ('xs': 0,'sm': 600px,'md': 960px,'lg': 1280px,'xl': 1920px) !default;
$spacings: 4px, 8px !default;
// $spacings: 4px, 8px, 12px, 16px, 24px, 32px, 40px, 48px, 56px, 64px !default;
$types: 'margin', 'padding';
@mixin media-min($var) {@media only screen and (min-width: $var) {@content;}}
@SvenBudak
SvenBudak / input.scss
Last active February 5, 2022 21:39
Medium Article - Responsive Font Size - SassMeister.com
$_browser-context: 16px; // Default
@function em($pixels, $context: $_browser-context) {
@return ($pixels / $context);
}
@function rem($pixels, $context: $_browser-context) {
@return ($pixels / $context) * 1rem;
}
@use 'sass:map';
@use 'variables';
@use 'functions';
@use 'mixins';
// RFS Config (Defines from which resolution the fonts should not scale further)
$rfs-breakpoint: 1200px !default;
@import 'vendor/rfs'; // https://github.com/twbs/rfs/blob/main/scss.scss
// Defines which breakpoints should be created for typographies
@SvenBudak
SvenBudak / input.scss
Created February 3, 2022 23:02
Generated by SassMeister.com.
$headline-variants: (
'h1': (
'font-size': 64px,
'font-weight': 700,
'line-height': 70px,
),
'h2': (
'font-size': 44px,
'font-weight': 700,
'line-height': 52px,
@SvenBudak
SvenBudak / input.scss
Created February 2, 2022 21:15
Generated by SassMeister.com.
// https://material.angular.io/cdk/layout/overview#predefined-breakpoints
$res-xs: 0 !default; // Smartphone
$res-sm: 600px !default; // Tablet
$res-md: 960px !default; // Large Tablet
$res-lg: 1280px !default; // Large Tablet and Notebooks
$res-xl: 1920px !default; // Desktop +
@function em($pixels, $context: 16px) {
@return ($pixels / $context);
}
@SvenBudak
SvenBudak / input.scss
Created February 2, 2022 13:30
Generated by SassMeister.com.
// https://material.angular.io/cdk/layout/overview#predefined-breakpoints
$res-xs: 0 !default; // Smartphone
$res-sm: 600px !default; // Tablet
$res-md: 960px !default; // Large Tablet
$res-lg: 1280px !default; // Large Tablet and Notebooks
$res-xl: 1920px !default; // Desktop +
@function em($pixels, $context: 16px) {
@return ($pixels / $context);
@SvenBudak
SvenBudak / input.scss
Last active February 2, 2022 13:28
Generated by SassMeister.com.
// https://material.angular.io/cdk/layout/overview#predefined-breakpoints
$res-xs: 0 !default; // Smartphone
$res-sm: 600px !default; // Tablet
$res-md: 960px !default; // Large Tablet
$res-lg: 1280px !default; // Large Tablet and Notebooks
$res-xl: 1920px !default; // Desktop +
@function em($pixels, $context: 16px) {
@return ($pixels / $context);