https://github.com/sha-red/compass-mixins/tree/master/lib
extended with more sass frameworks and as django app.
				
			
			
		
			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.
		
		
		
		
			
				
					19 lines
				
				505 B
			
		
		
			
		
	
	
					19 lines
				
				505 B
			| 
								 
											11 years ago
										 
									 | 
							
								// 
							 | 
						||
| 
								 | 
							
								// A partial implementation of the Ruby constants functions from Compass:
							 | 
						||
| 
								 | 
							
								// https://github.com/Compass/compass/blob/stable/lib/compass/sass_extensions/functions/constants.rb
							 | 
						||
| 
								 | 
							
								// 
							 | 
						||
| 
								 
											11 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								@function opposite-position($from) {
							 | 
						||
| 
								 | 
							
								    @if ($from == top) {
							 | 
						||
| 
								 | 
							
								        @return bottom;
							 | 
						||
| 
								 | 
							
								    } @else if ($from == bottom) {
							 | 
						||
| 
								 | 
							
								        @return top;
							 | 
						||
| 
								 | 
							
								    } @else if ($from == left) {
							 | 
						||
| 
								 | 
							
								        @return right;
							 | 
						||
| 
								 | 
							
								    } @else if ($from == right) {
							 | 
						||
| 
								 | 
							
								        @return left;
							 | 
						||
| 
								 | 
							
								    } @else if ($from == center) {
							 | 
						||
| 
								 | 
							
								        @return center;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |