mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-09-13 19:50:24 +02:00
refactor(starter): upgrade to new version of gatsby
This commit is contained in:
@@ -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"};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user