/* # CSS initialization # May 2016 Edwardson Tan [Normalize.css](https://necolas.github.io/normalize.css/) is by Nicolas Gallagher and Jonathan Neal ## References ## * For some basic styling defaults see Jonathan Neal's [sanitize.css](https://10up.github.io/sanitize.css/) * More styling defaults using [mini reset ](https://github.com/vladocar/CSS-Mini-Reset/blob/master/CSS-Mini-Reset.css) * Pseudo-class [:root](https://css-tricks.com/almanac/selectors/r/root/) * Guide to `box-sizing`: [box-sizing](https://css-tricks.com/box-sizing/), [better box-sizing](https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/) ## License ## [MIT License](https://opensource.org/licenses/MIT) */ @import url(normalize.css); /*! Initial styling for all pages */ // use box-border as default so that width = content width + padding + border (but excludes margins) // from https://css-tricks.com/box-sizing/ , https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ html { box-sizing: border-box; font: 100% sans-serif; } *, *:before, *:after { box-sizing: inherit; } // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // Normalize.css only includes body {margin: 0} // see https://github.com/vladocar/CSS-Mini-Reset/blob/master/CSS-Mini-Reset.css html, body, div, form, fieldset, legend, label { margin: 0; padding: 0; } // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // see https://github.com/vladocar/CSS-Mini-Reset/blob/master/CSS-Mini-Reset.css h1, h2, h3, h4, h5, h6, th, td, caption { font-weight: normal; } // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // large images should automatically resize down as viewport size decreases img { max-width: 100%; border: 0; // I think some browsers add borders to images } // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // table/cell borders and paddings should be specified by user as requirements dictate table { border-collapse: collapse; border-spacing: 0; max-width: 100%; } // wrap tables in