mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-11-11 05:56:40 +01:00
refactor(starter): upgrade to new version of gatsby
This commit is contained in:
@@ -1,25 +1,23 @@
|
||||
/**
|
||||
* Breakpoints
|
||||
*/
|
||||
@import "../variables";
|
||||
|
||||
@mixin breakpoint-xs {
|
||||
@content;
|
||||
@content;
|
||||
}
|
||||
|
||||
@mixin breakpoint-sm {
|
||||
@media screen and (min-width: $layout-breakpoint-sm) {
|
||||
@content;
|
||||
}
|
||||
@media screen and (min-width: $layout-breakpoint-sm) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin breakpoint-md {
|
||||
@media screen and (min-width: $layout-breakpoint-md) {
|
||||
@content;
|
||||
}
|
||||
@media screen and (min-width: $layout-breakpoint-md) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin breakpoint-lg {
|
||||
@media screen and (min-width: $layout-breakpoint-lg) {
|
||||
@content
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: $layout-breakpoint-lg) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/**
|
||||
* Line-Height
|
||||
*/
|
||||
@import "../variables";
|
||||
|
||||
@mixin line-height($number) {
|
||||
line-height: #{ $number * $typographic-leading + "px"};
|
||||
}
|
||||
line-height: #{$number * $typographic-leading + "px"};
|
||||
}
|
||||
|
||||
@@ -1,25 +1,43 @@
|
||||
/**
|
||||
* Margin
|
||||
*/
|
||||
@import "../variables";
|
||||
|
||||
@mixin margin-top($number) {
|
||||
margin-top: #{ $number * $typographic-leading + "px"};
|
||||
margin-top: #{$number * $typographic-leading + "px"};
|
||||
}
|
||||
|
||||
@mixin margin-bottom($number) {
|
||||
margin-bottom: #{ $number * $typographic-leading + "px"};
|
||||
margin-bottom: #{$number * $typographic-leading + "px"};
|
||||
}
|
||||
|
||||
@mixin margin($top, $right, $bottom:null, $left:null) {
|
||||
@if $left==null and $bottom==null {
|
||||
margin: #{ $top * $typographic-leading + "px"} #{ $right * $typographic-leading + "px"};
|
||||
}
|
||||
|
||||
@else if $left==null or $left==$right {
|
||||
margin: #{ $top * $typographic-leading + "px"} #{ $right * $typographic-leading + "px"} #{ $bottom * $typographic-leading + "px"};
|
||||
}
|
||||
|
||||
@else {
|
||||
margin: #{ $top * $typographic-leading + "px"} #{ $right * $typographic-leading + "px"} #{ $bottom * $typographic-leading + "px"} #{ $left * $typographic-leading + "px"};
|
||||
}
|
||||
}
|
||||
@mixin margin($top, $right, $bottom: null, $left: null) {
|
||||
@if not $left and not $bottom {
|
||||
margin: #{$top *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$right *
|
||||
$typographic-leading +
|
||||
"px"};
|
||||
} @else if not $left or $left == $right {
|
||||
margin: #{$top *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$right *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$bottom *
|
||||
$typographic-leading +
|
||||
"px"};
|
||||
} @else {
|
||||
margin: #{$top *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$right *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$bottom *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$left *
|
||||
$typographic-leading +
|
||||
"px"};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,39 @@
|
||||
/**
|
||||
* Padding
|
||||
*/
|
||||
@import "../variables";
|
||||
|
||||
@mixin padding($top, $right, $bottom:null, $left:null) {
|
||||
@if $left==null and $bottom==null {
|
||||
padding: #{ $top * $typographic-leading + "px"} #{ $right * $typographic-leading + "px"};
|
||||
}
|
||||
@else if $left==null or $left==$right {
|
||||
padding: #{ $top * $typographic-leading + "px"} #{ $right * $typographic-leading + "px"} #{ $bottom * $typographic-leading + "px"};
|
||||
}
|
||||
@else {
|
||||
padding: #{ $top * $typographic-leading + "px"} #{ $right * $typographic-leading + "px"} #{ $bottom * $typographic-leading + "px"} #{ $left * $typographic-leading + "px"};
|
||||
}
|
||||
@mixin padding($top, $right, $bottom: null, $left: null) {
|
||||
@if not $left and not $bottom {
|
||||
padding: #{$top *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$right *
|
||||
$typographic-leading +
|
||||
"px"};
|
||||
} @else if not $left or $left == $right {
|
||||
padding: #{$top *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$right *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$bottom *
|
||||
$typographic-leading +
|
||||
"px"};
|
||||
} @else {
|
||||
padding: #{$top *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$right *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$bottom *
|
||||
$typographic-leading +
|
||||
"px"}
|
||||
#{$left *
|
||||
$typographic-leading +
|
||||
"px"};
|
||||
}
|
||||
}
|
||||
|
||||
@mixin padding-equal($number) {
|
||||
padding: #{ $number * $typographic-leading + "px"};
|
||||
}
|
||||
padding: #{$number * $typographic-leading + "px"};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user