Custom radio buttons and the last few Linux details (#292)
* Custom radio buttons and the last few Linux details * Radio button margin * Account for FF ESR
This commit is contained in:
		
							parent
							
								
									5faff66fab
								
							
						
					
					
						commit
						599dc24862
					
				
							
								
								
									
										51
									
								
								global.css
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								global.css
									
									
									
									
									
								
							| 
						 | 
					@ -125,14 +125,51 @@ select {
 | 
				
			||||||
  transition: fill .5s;
 | 
					  transition: fill .5s;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					input[type="radio"] {
 | 
				
			||||||
 | 
					  -webkit-appearance: none;
 | 
				
			||||||
 | 
					  -moz-appearance: none;
 | 
				
			||||||
 | 
					  outline: none;
 | 
				
			||||||
 | 
					  background: hsl(0, 0%, 88%);
 | 
				
			||||||
 | 
					  border-radius: 50%;
 | 
				
			||||||
 | 
					  border: 1px solid hsl(0, 0%, 60%);
 | 
				
			||||||
 | 
					  cursor: default;
 | 
				
			||||||
 | 
					  height: 13px;
 | 
				
			||||||
 | 
					  width: 13px;
 | 
				
			||||||
 | 
					  position: relative;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					input[type="radio"]:after {
 | 
				
			||||||
 | 
					  content: '';
 | 
				
			||||||
 | 
					  background-color: transparent;
 | 
				
			||||||
 | 
					  transform: scale(0);
 | 
				
			||||||
 | 
					  transform-origin: 50% 50%;
 | 
				
			||||||
 | 
					  transition: background-color .5s, transform .5s;
 | 
				
			||||||
 | 
					  border-radius: 50%;
 | 
				
			||||||
 | 
					  height: 7px;
 | 
				
			||||||
 | 
					  width: 7px;
 | 
				
			||||||
 | 
					  left: 2px;
 | 
				
			||||||
 | 
					  top: 2px;
 | 
				
			||||||
 | 
					  position: absolute;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					input[type="radio"]:checked:after {
 | 
				
			||||||
 | 
					  background-color: hsl(0, 0%, 30%);
 | 
				
			||||||
 | 
					  transform: scale(1);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@supports (-moz-appearance: none) {
 | 
					@supports (-moz-appearance: none) {
 | 
				
			||||||
  .moz-appearance-bug .svg-icon.checked {
 | 
					  .moz-appearance-bug .svg-icon.checked,
 | 
				
			||||||
 | 
					  .moz-appearance-bug input[type="radio"]:after {
 | 
				
			||||||
    display: none !important;
 | 
					    display: none !important;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  .moz-appearance-bug input[type="checkbox"] {
 | 
					  .moz-appearance-bug input[type="checkbox"] {
 | 
				
			||||||
    -moz-appearance: checkbox !important;
 | 
					    -moz-appearance: checkbox !important;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .moz-appearance-bug input[type="radio"] {
 | 
				
			||||||
 | 
					    -moz-appearance: radio !important;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  .firefox select {
 | 
					  .firefox select {
 | 
				
			||||||
    font-size: 13px;
 | 
					    font-size: 13px;
 | 
				
			||||||
| 
						 | 
					@ -145,7 +182,7 @@ select {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* We can customize everything about number inputs except arrows. They're horrible in Linux FF, so we'll hide them unless hovered or focused. */
 | 
					/* We can customize everything about number inputs except arrows. They're horrible in Linux FF, so we'll hide them unless hovered or focused. */
 | 
				
			||||||
  .firefox.non-windows input[type=number] {
 | 
					  .firefox.non-windows input[type="number"] {
 | 
				
			||||||
    -moz-appearance: textfield;
 | 
					    -moz-appearance: textfield;
 | 
				
			||||||
    background: #fff;
 | 
					    background: #fff;
 | 
				
			||||||
    color: #000;
 | 
					    color: #000;
 | 
				
			||||||
| 
						 | 
					@ -156,6 +193,16 @@ select {
 | 
				
			||||||
  .firefox.non-windows input[type="number"]:focus {
 | 
					  .firefox.non-windows input[type="number"]:focus {
 | 
				
			||||||
    -moz-appearance: number-input;
 | 
					    -moz-appearance: number-input;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .firefox.non-windows input[type="color"] {
 | 
				
			||||||
 | 
					    background: #fff;
 | 
				
			||||||
 | 
					    border: 1px solid hsl(0, 0%, 66%);
 | 
				
			||||||
 | 
					    padding: 4px;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .firefox.non-windows .style-name {
 | 
				
			||||||
 | 
					    font-family: Arial, sans-serif;
 | 
				
			||||||
 | 
					  }  
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
/* Firefox cannot handle fractions in font-size */
 | 
					/* Firefox cannot handle fractions in font-size */
 | 
				
			||||||
  .firefox button:not(.install) {
 | 
					  .firefox button:not(.install) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -138,6 +138,10 @@ input[type="color"] {
 | 
				
			||||||
  display: block;
 | 
					  display: block;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.iconset input[type="radio"] {
 | 
				
			||||||
 | 
					  margin: 2px 4px 0 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#actions {
 | 
					#actions {
 | 
				
			||||||
  justify-content: space-around;
 | 
					  justify-content: space-around;
 | 
				
			||||||
  align-items: stretch;
 | 
					  align-items: stretch;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user