// Based on:
// http://meyerweb.com/eric/tools/css/reset/
// v2.0 | 20110126
// License: none (public domain)

//sass-lint:disable-block single-line-per-selector

@mixin reset {
  html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    border: 0;
    font: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
  }

  * {
    box-sizing: inherit;

    &:active,
    &:focus {
      outline: none;
    }
  }

  html {
    box-sizing: border-box;
    font-family: $f-text;
    font-size: $f-base-size;
    overflow-x: hidden;
  }

  body {
    color: $c-text;
    line-height: $f-line-height;
    overflow-x: hidden !important; //sass-lint:disable-line no-important -- important needed
  }

  ::selection {
    background-color: $c-text--highlight;
  }

  strong,
  b {
    font-weight: $f-medium;
  }

  em,
  i,
  var {
    font-style: italic;
  }

  pre,
  code,
  kbd {
    background: $c-bg-container;
    border: 1px solid $c-border;
    border-radius: 2px;
    font-family: monospace;
    font-size: rem-calc( 14 );
    overflow-x: scroll;
    padding: em-calc( 2, 14 ) em-calc( 4, 14 ) em-calc( 1, 14 );
  }

  // HTML5 display-role reset for older browsers
  article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
  }

  ol, ul {
    list-style: none;
  }

  blockquote, q {
    quotes: none;
  }

  blockquote {
    &::before, &::after {
      content: '';
    }
  }

  q {

    &::before, &::after {
      content: '';
    }
  }

  table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  figure,
  img,
  svg {
    height: auto;
    max-width: 100%;
  }

  svg {
    max-height: 100%;
    width: auto;
  }

  button,
  input,
  textarea {
    font-family: inherit;
  }

  button {
    cursor: pointer;
  }

  sub {
    font-size: smaller;
    vertical-align: sub;
  }

  sup {
    font-size: smaller;
    vertical-align: super;
  }

  abbr,
  acronym {
    border-bottom: 1px dotted $c-border;
    cursor: help;
    font-size: 90%;
    text-transform: uppercase;
  }

}

@include reset;
