| 
									
										
										
										
											2019-04-07 16:57:48 +08:00
										 |  |  | // Here we generate spacing utility classes for our sizes for all box sides and axis.
 | 
					
						
							|  |  |  | // These will output to classes like .px-m (Padding on x-axis, medium size) or .mr-l (Margin right, large size)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @mixin spacing($prop, $propLetter) { | 
					
						
							|  |  |  |   @each $sizeLetter, $size in $spacing { | 
					
						
							|  |  |  |     .#{$propLetter}-#{$sizeLetter} { | 
					
						
							|  |  |  |       #{$prop}: $size !important; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     .#{$propLetter}x-#{$sizeLetter} { | 
					
						
							| 
									
										
										
										
											2020-04-05 20:07:19 +08:00
										 |  |  |       #{$prop}-inline-start: $size !important; | 
					
						
							|  |  |  |       #{$prop}-inline-end: $size !important; | 
					
						
							| 
									
										
										
										
											2019-04-07 16:57:48 +08:00
										 |  |  |     } | 
					
						
							|  |  |  |     .#{$propLetter}y-#{$sizeLetter} { | 
					
						
							|  |  |  |       #{$prop}-top: $size !important; | 
					
						
							|  |  |  |       #{$prop}-bottom: $size !important; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     .#{$propLetter}t-#{$sizeLetter} { | 
					
						
							|  |  |  |       #{$prop}-top: $size !important; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     .#{$propLetter}r-#{$sizeLetter} { | 
					
						
							| 
									
										
										
										
											2020-04-05 20:07:19 +08:00
										 |  |  |       #{$prop}-inline-end: $size !important; | 
					
						
							| 
									
										
										
										
											2019-04-07 16:57:48 +08:00
										 |  |  |     } | 
					
						
							|  |  |  |     .#{$propLetter}b-#{$sizeLetter} { | 
					
						
							|  |  |  |       #{$prop}-bottom: $size !important; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     .#{$propLetter}l-#{$sizeLetter} { | 
					
						
							| 
									
										
										
										
											2020-04-05 20:07:19 +08:00
										 |  |  |       #{$prop}-inline-start: $size !important; | 
					
						
							| 
									
										
										
										
											2019-04-07 16:57:48 +08:00
										 |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2020-06-26 18:44:41 +08:00
										 |  |  | @include spacing('margin', 'm'); | 
					
						
							| 
									
										
										
										
											2022-10-02 20:17:28 +08:00
										 |  |  | @include spacing('padding', 'p'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @each $sizeLetter, $size in $spacing { | 
					
						
							|  |  |  |   .gap-#{$sizeLetter} { | 
					
						
							|  |  |  |     gap: $size !important; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   .gap-x-#{$sizeLetter} { | 
					
						
							|  |  |  |     column-gap: $size !important; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   .gap-y-#{$sizeLetter} { | 
					
						
							|  |  |  |     row-gap: $size !important; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |