/**
 * 1. Prevent padding and border from affecting element width
 *    https://goo.gl/pYtbK7.
 * 2. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
 */

 html {
    //box-sizing: border-box;
    /* 1 */
    -ms-text-size-adjust: 100%;
    /* 2 */
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

// *,
// *::before,
// *::after {
//     box-sizing: inherit;
// }
[class*=#{$prefix}],
[class*=#{$prefix}]::before,
[class*=#{$prefix}]::after{
    box-sizing: border-box;
    // color: $color-text;
}
body {
    margin: 0;
    padding:0;
    font-family: $body-font-family;
    font-size: $font-size-default;
    line-height: 1.5;
    height: 100%;
    // 减少tea对其他框架的影响
    // overflow-y: hidden;
}

/**
 * Add the correct display in IE 9-.
 */

aside,
footer,
header,
nav,
section,
figcaption,
figure,
main,
details,
summary,
menu {
    display: block;
}

audio,
canvas,
progress,
video {
    display: inline-block;
}

template,
[hidden] {
    display: none;
}


/**
 * Removes the default spacing and border for appropriate elements.
 */

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
p,
pre {
    margin: 0;
}

ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
i, cite, em, var, address, dfn {
    font-style: normal;
}


/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove the outline on focused links when they are also active or hovered
 * in all browsers (opinionated).
 */

a {
    background-color: transparent;
    /* 1 */
    text-decoration: none;
    color: $color-primary;
    cursor: pointer;
}

a:active,
a:hover {
    // color:var(--text-primary-color);
    outline-width: 0;
    /* 2 */
}

a:hover {
    text-decoration: underline;
}

iframe {
    border: 0;
}


/**
 * Remove most spacing between table cells.
 */

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

td,
th {
    padding: 0;
}


/**
 * Remove the border on images inside links in IE 10-.
 */

img {
    border-style: none;
}


/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}


/**
 * Add the correct background and color in IE 9-.
 */

// mark {
//     background-color: #ff0;
//     color: #000;
// }


/**
 * Hide the overflow in IE.
 */

svg:not(:root) {
    overflow: hidden;
}


/* Suppress the focus outline on elements that cannot be accessed via keyboard.
 * This prevents an unwanted focus outline from appearing around elements that
 * might still respond to pointer events.
 * Credit: https://github.com/suitcss/base
 */

[tabindex]:focus {
    outline: 0 !important;
}


/* Forms
   ========================================================================== */


/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
     font-family: inherit;    /* 1 */
    // font-size: inherit;      /* 1 */
    // line-height: inherit;    /* 1 */
    margin: 0;                  /* 2 */
}

// 用于修复 safari 14 下禁用 input 文本变白的问题
input:disabled{
	opacity:1;
	-webkit-text-fill-color:$color-text-disabled;
}


/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
    /* 1 */
    overflow: visible;
}


/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
    /* 1 */
    text-transform: none;
}


/**
 *
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    /* 2 */
    cursor: pointer;
}

[disabled] {
    cursor: default;
}


/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}


/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */
}


/**
 * Remove the default vertical scrollbar in IE.
* Textareas should really only resize vertically so they don't break their (horizontal) containers.
 */

textarea {
    overflow: auto;
    resize: vertical;
}


/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button;
    /* 1 */
    font: inherit;
    /* 2 */
}
