// ------------------------------
// edX Pattern Library: Reset

// About: Sass partial for resetting and setting base elements.

// #GLOBAL:     Global overrides and resets
// #BASE:       Base overrides and resets
// #FORMS:      Form-focused overrides and resets
// #ACTIONS:    links, buttons, controls overrides and resets
// #MEDIA:      images, video, mutlmedia overrides and resets
// #UTILITIES:  layout and use case utilities
// #TYPOGRAPHY: basic typography rules and settings


// ----------------------------
// #GLOBAL
// ----------------------------
* {
    box-sizing: border-box;
}


// ----------------------------
// #BASE
// ----------------------------
html, body {

}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

body {
    @include font-smoothing(on);
    @extend %depth-0;
    color: $text-base-color;
    font-size: font-size(base);
    font-family: $text-base-font-family;
}

p,
ol,
ul,
dl {
    margin: 0 0 spacing-vertical(small) 0;
}


// ----------------------------
// #FORMS
// ----------------------------
fieldset {
    margin: 0;
    border: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}


// ----------------------------
// #ACTIONS
// ----------------------------
a,
.link {
    @extend %link;
}


// ----------------------------
// #MEDIA
// ----------------------------
figure {
    display: inline-block;
    margin: 0;
    padding: 0;

    img {
        display: block;
    }

    figcaption {

    }
}

// images
.img,
picture {
    max-width: 100%;
    margin: 0;
}

pre {
    font-family: $font-family-monospace;
    margin: 0;
}


// ----------------------------
// #UTILITIES
// ----------------------------
.sr-only {
    @extend %a11y-hide;
    @extend %a11y-ensure-contrast;

    * {
        @extend %a11y-ensure-contrast;
    }
}

.bg-replace {
    @extend %a11y-hide-image-text;
}

.is-hidden {
    display: none;
}

[class^='wrapper'] {
    @extend %wrapper;
}


// ----------------------------
// #TYPOGRAPHY
// ----------------------------
// headings
h1, h2, h3, h4, h5, h6 {
    @extend %reset-headings;
}

h1 {
    font-size: font-size(xxx-large);
}

h2 {
    font-size: font-size(xx-large);
}

h3 {
    font-size: font-size(x-large);
}

h4 {
    font-size: font-size(large);
}

h5 {
    font-size: font-size(base);
}

h6 {
   font-size: font-size(small);
}
