mirror of
				https://github.com/twbs/bootstrap.git
				synced 2025-11-04 00:03:15 -05:00 
			
		
		
		
	Fixes #11402: Set width: auto; to select.form-control within .form-inline
This commit is contained in:
		
							parent
							
								
									d2f8b5327b
								
							
						
					
					
						commit
						7aa6b4190b
					
				
							
								
								
									
										6
									
								
								dist/css/bootstrap.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/css/bootstrap.css
									
									
									
									
										vendored
									
									
								
							@ -2180,6 +2180,9 @@ textarea.input-lg {
 | 
			
		||||
  .form-inline .form-control {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
  }
 | 
			
		||||
  .form-inline select.form-control {
 | 
			
		||||
    width: auto;
 | 
			
		||||
  }
 | 
			
		||||
  .form-inline .radio,
 | 
			
		||||
  .form-inline .checkbox {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
@ -4568,6 +4571,9 @@ textarea.input-group-sm > .input-group-btn > .btn {
 | 
			
		||||
  .navbar-form .form-control {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
  }
 | 
			
		||||
  .navbar-form select.form-control {
 | 
			
		||||
    width: auto;
 | 
			
		||||
  }
 | 
			
		||||
  .navbar-form .radio,
 | 
			
		||||
  .navbar-form .checkbox {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								dist/css/bootstrap.min.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/css/bootstrap.min.css
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -309,6 +309,11 @@ input[type="checkbox"],
 | 
			
		||||
      display: inline-block;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Override `width: 100%;` when not within a `.form-group`
 | 
			
		||||
    select.form-control {
 | 
			
		||||
      width: auto;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Remove default margin on radios/checkboxes that were used for stacking, and
 | 
			
		||||
    // then undo the floating of radios and checkboxes to match (which also avoids
 | 
			
		||||
    // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user