mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-31 16:49:49 +01:00 
			
		
		
		
	refactor(starter): upgrade to new version of gatsby
This commit is contained in:
		| @@ -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