// sass-lint:disable no-vendor-prefixes, no-css-comments // Form defaults // // These are the default base styles applied to HTML form elements. // // Component classes can override these styles, but if no class applies a style // to an HTML form element, these styles will be the ones displayed. // // Weight: -1 // // Style guide: forms.base // // The following rules are from normalize.css and help to fix inconsistencies // across various browsers. You should probably leave these rules as is and jump // to the "Buttons" rule on line 92 before you start editing this file. // button, input, optgroup, select, textarea { // Keep form elements constrained in their containers. box-sizing: border-box; max-width: 100%; // Change font properties to `inherit` in all browsers (opinionated). font: inherit; // Remove the margin in Firefox and Safari. margin: 0; } // Show the overflow in IE. button { overflow: visible; } // Remove the inheritance of text transform in Edge, Firefox, and IE. button, select { text-transform: none; } // Show the overflow in Edge. input { overflow: visible; } // Correct the cursor style of increment and decrement buttons in Chrome. [type='number']::-webkit-inner-spin-button, [type='number']::-webkit-outer-spin-button { height: auto; } [type='search'] { // Correct the odd appearance in Chrome and Safari. -webkit-appearance: textfield; // Correct the outline style in Safari. outline-offset: -2px; // Remove the inner padding and cancel buttons in Chrome and Safari on OS X. &::-webkit-search-cancel-button, &::-webkit-search-decoration { -webkit-appearance: none; } } // Correct the text style of placeholders in Chrome, Edge, and Safari. ::-webkit-input-placeholder { color: inherit; opacity: .54; } ::-webkit-file-upload-button { // Correct the inability to style clickable types in iOS and Safari. -webkit-appearance: button; // Change font properties to `inherit` in Safari. font: inherit; } // The %text-form-element can be used to style `` text types and // `