mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	* Introduce custom form widget templates to apply CSS classes * Apply both mandatory and optional CSS classes to form widgets * Omit required & placeholder attrs * Move annotation of field validation failures to CSS * Remove BootstrapMixin class * Remove obsolete ComponentTemplateImportForm class * Remove obsolete custom forms for login & password change * Clean up obsolete accommodations for 'required' widget attr
		
			
				
	
	
		
			28 lines
		
	
	
		
			532 B
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			532 B
		
	
	
	
		
			SCSS
		
	
	
	
	
	
| // Limit the width of object edit forms
 | |
| form.object-edit {
 | |
|   margin: auto;
 | |
|   max-width: 800px;
 | |
| }
 | |
| 
 | |
| // Set bond font & append an asterisk to labels for required fields
 | |
| .col-form-label.required {
 | |
|   font-weight: bold;
 | |
|   &:after {
 | |
|     position: absolute;
 | |
|     display: inline-block;
 | |
|     margin-left: 0;
 | |
|     font-family: 'Material Design Icons';
 | |
|     font-size: 8px;
 | |
|     content: '\f06C4';
 | |
|   }
 | |
| }
 | |
| 
 | |
| // Set red border on form fields inside a row with .has-errors
 | |
| .has-errors {
 | |
|   input,
 | |
|   select,
 | |
|   textarea {
 | |
|     border: 1px solid $red;
 | |
|   }
 | |
| }
 |