You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					34 lines
				
				637 B
			
		
		
			
		
	
	
					34 lines
				
				637 B
			| 
								 
											3 years ago
										 
									 | 
							
								import { system } from '@styled-system/core';
							 | 
						||
| 
								 | 
							
								var defaults = {
							 | 
						||
| 
								 | 
							
								  space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								var config = {
							 | 
						||
| 
								 | 
							
								  position: true,
							 | 
						||
| 
								 | 
							
								  zIndex: {
							 | 
						||
| 
								 | 
							
								    property: 'zIndex',
							 | 
						||
| 
								 | 
							
								    scale: 'zIndices'
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  top: {
							 | 
						||
| 
								 | 
							
								    property: 'top',
							 | 
						||
| 
								 | 
							
								    scale: 'space',
							 | 
						||
| 
								 | 
							
								    defaultScale: defaults.space
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  right: {
							 | 
						||
| 
								 | 
							
								    property: 'right',
							 | 
						||
| 
								 | 
							
								    scale: 'space',
							 | 
						||
| 
								 | 
							
								    defaultScale: defaults.space
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  bottom: {
							 | 
						||
| 
								 | 
							
								    property: 'bottom',
							 | 
						||
| 
								 | 
							
								    scale: 'space',
							 | 
						||
| 
								 | 
							
								    defaultScale: defaults.space
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  left: {
							 | 
						||
| 
								 | 
							
								    property: 'left',
							 | 
						||
| 
								 | 
							
								    scale: 'space',
							 | 
						||
| 
								 | 
							
								    defaultScale: defaults.space
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								export var position = system(config);
							 | 
						||
| 
								 | 
							
								export default position;
							 |