Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ffoodd's full-sized avatar
🎯
Focusing

Gaël Poupard ffoodd

🎯
Focusing
View GitHub Profile
@ffoodd
ffoodd / input.scss
Created July 6, 2021 10:21
Generated by SassMeister.com.
@function add($value1, $value2, $return-calc: true) {
@if $value1 == null {
@return $value2;
}
@if $value2 == null {
@return $value1;
}
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
@ffoodd
ffoodd / input.scss
Last active July 6, 2021 10:20
Generated by SassMeister.com.
@function add($value1, $value2, $return-calc: true) {
@if $value1 == null {
@return $value2;
}
@if $value2 == null {
@return $value1;
}
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
@ffoodd
ffoodd / input.scss
Created May 20, 2021 14:50
Generated by SassMeister.com.
@function add($value1, $value2, $return-calc: true) {
@if $value1 == null {
@return $value2;
}
@if $value2 == null {
@return $value1;
}
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
@ffoodd
ffoodd / input.scss
Created May 20, 2021 14:30
Generated by SassMeister.com.
@function add($value1, $value2, $return-calc: true) {
@if $value1 == null {
@return $value2;
}
@if $value2 == null {
@return $value1;
}
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
@ffoodd
ffoodd / input.scss
Created May 7, 2021 09:20
Generated by SassMeister.com.
$theme-colors: (
"primary": #0d6efd
);
$list-group-color: #911;
@each $state, $value in $theme-colors {
$list-group-color: $value;
.list-group-inside { color: $list-group-color; }
@ffoodd
ffoodd / input.scss
Created May 7, 2021 09:19
Generated by SassMeister.com.
$theme-colors: (
"primary": #0d6efd
);
$list-group-color: #911;
@each $state, $value in $theme-colors {
$list-group-color: $value;
.list-group-inside { color: $list-group-color; }
@ffoodd
ffoodd / input.scss
Created May 4, 2021 20:46
Generated by SassMeister.com.
$primary: #0d6efd;
@function shade-color($color, $weight) {
@return mix(black, $color, $weight);
}
a {
color: darken($primary, 20%);
}
@ffoodd
ffoodd / input.scss
Last active February 19, 2021 12:53
Generated by SassMeister.com.
@function tint-color($color, $weight) {
@return mix(white, $color, $weight);
}
@function shade-color($color, $weight) {
@return mix(black, $color, $weight);
}
@function shift-color($color, $weight) {
@ffoodd
ffoodd / input.scss
Created November 20, 2020 09:34
Generated by SassMeister.com.
$value: 4;
p {
--padding: $value * 1px;
}
@ffoodd
ffoodd / input.scss
Created November 20, 2020 09:34
Generated by SassMeister.com.
$value: 4;
@mixin try() {
@content;
}
@include try() {
p {
--padding: $value * 1px;
}