mirror of https://github.com/twbs/bootstrap.git
				
				
				
			adding makeRow and makeColumn mixins for generating more semantic layouts
This commit is contained in:
		
							parent
							
								
									3e00c1261f
								
							
						
					
					
						commit
						944c7298d3
					
				
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -270,6 +270,19 @@
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Make a Grid
 | 
				
			||||||
 | 
					// -------------------------
 | 
				
			||||||
 | 
					// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
 | 
				
			||||||
 | 
					.makeRow() {
 | 
				
			||||||
 | 
					  margin-left: @gridGutterWidth * -1;
 | 
				
			||||||
 | 
					  .clearfix();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					.makeColumn(@columns: 1) {
 | 
				
			||||||
 | 
					  float: left;
 | 
				
			||||||
 | 
					  margin-left: @gridGutterWidth;
 | 
				
			||||||
 | 
					  width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Form field states (used in forms.less)
 | 
					// Form field states (used in forms.less)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue