// ========================================================================== // RESET // ========================================================================== @use '../abstracts/variables' as v; @use 'sass:map'; @use 'sass:color'; // Box sizing, margins, and padding *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } // HTML and body html { font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); scroll-behavior: smooth; } body { margin: 0; font-family: v.$font-family-sans; font-size: map.get(v.$font-sizes, 'base'); font-weight: map.get(v.$font-weights, 'regular'); line-height: 1.6; color: v.$dark-gray; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; } // Links a { color: v.$primary; text-decoration: none; background-color: transparent; transition: v.$transition-base; &:hover { color: color.scale(v.$primary, $lightness: -15%); text-decoration: none; } } // Images img, svg { vertical-align: middle; max-width: 100%; height: auto; } // Lists ul, ol { list-style: none; padding: 0; margin: 0; } // Form elements button, input, optgroup, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; } button, input { overflow: visible; } button, select { text-transform: none; } // Buttons button, [type="button"], [type="reset"], [type="submit"] { cursor: pointer; } // Tables table { border-collapse: collapse; width: 100%; } // Focus outline :focus { outline: 0; } // Remove Chrome's autofill background input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { transition: background-color 5000s ease-in-out 0s; } // Clearfix .clearfix::after { content: ""; display: table; clear: both; }