mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-30 21:58:32 +00:00 
			
		
		
		
	 10843f2909
			
		
	
	10843f2909
	
	
	
		
			
			* 🌈 Organise colors with vars only * ➕ New file structure * File restructuring * ⚒️ Fix build issue * Rearranged files
		
			
				
	
	
		
			12 lines
		
	
	
		
			221 B
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			221 B
		
	
	
	
		
			SCSS
		
	
	
	
	
	
| @function pxToRem($pixels, $context: $browser-context) {
 | |
|   @if (unitless($pixels)) {
 | |
|     $pixels: $pixels * 1px;
 | |
|   }
 | |
| 
 | |
|   @if (unitless($context)) {
 | |
|     $context: $context * 1px;
 | |
|   }
 | |
| 
 | |
|   @return $pixels / $context * 1rem;
 | |
| }
 |