// RIVER Design-System: Preload - Reset //

// Reset styles, to minimise conflicts we have with default browser styling
// Inspired by: github.com/jgthms/minireset.css


@if(design-setting('preload') and design-setting('preload.reset', false)) {
    /* RIVER Design-System: Preload - Reset */

    /*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */

    // Blocks
    html,
    body,
    p,
    ol,
    ul,
    li,
    dl,
    dt,
    dd,
    blockquote,
    figure,
    fieldset,
    legend,
    textarea,
    pre,
    iframe,
    hr,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: 0;
        padding: 0;
    }

    // Headings
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 100%;
        font-weight: normal;
    }

    // List
    ul {
        list-style: none;
    }

    // Form
    button,
    input,
    select,
    textarea {
        margin: 0;
    }

    // Box sizing
    html {
        box-sizing: border-box;
    }
    * {
        &,
        &::before,
        &::after {
            box-sizing: inherit;
        }
    }

    // Media
    img,
    video {
        height: auto;
        max-width: 100%;
    }

    // Iframe
    iframe {
        border: 0;
    }

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

    td,
    th {
        padding: 0;
        &:not([align]) {
            text-align: inherit;
        }
    }

}
