mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-31 06:08:33 +00:00 
			
		
		
		
	⚒️ Restructured Sass organisation (#83)
* 🌈 Organise colors with vars only * ➕ New file structure * File restructuring * ⚒️ Fix build issue * Rearranged files
This commit is contained in:
		
							
								
								
									
										11
									
								
								assets/css/abstracts/_functions.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								assets/css/abstracts/_functions.scss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| @function pxToRem($pixels, $context: $browser-context) { | ||||
|   @if (unitless($pixels)) { | ||||
|     $pixels: $pixels * 1px; | ||||
|   } | ||||
|  | ||||
|   @if (unitless($context)) { | ||||
|     $context: $context * 1px; | ||||
|   } | ||||
|  | ||||
|   @return $pixels / $context * 1rem; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Tatiana Mac
					Tatiana Mac