// 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. // // 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 { // Change the font styles in all browsers (opinionated). @include typeface(body); @include line-height(1); font-size: 100%; // Keep form elements constrained in their containers. box-sizing: border-box; max-width: 100%; // 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 macOS. &::-webkit-search-cancel-button, &::-webkit-search-decoration { -webkit-appearance: none; } } ::-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; } // Buttons // // Buttons built with the `