//
// 重置样式
// ----------------------------------------------------

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,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input, textarea
    margin: 0
    padding: 0
    box-sizing: border-box

article, aside, details, figcaption, figure, footer, header, menu, nav, section
    display: block

html,body
    height: 100%
    -webkit-text-size-adjust: 100%
    overflow-scrolling: touch           // 解决移动端上下啦卡顿

body
    @extend .color-black
    @extend .font-size
    font-family: $font-family
    line-height: $line-height
    -webkit-tap-highlight-color: transparent

// 禁止获取焦点默认样式
button, input, textarea, select, .contenteditable
    outline: none

table
    border-collapse: collapse
    border-spacing: 0

caption, th
    @extend .text-align-left

fieldset, img
    border: none

img
    max-width: 100%

li
    list-style: none

ins,a
    text-decoration: none

del
    text-decoration: line-through

a
    @extend .color-black
    @extend .transition-1s
    -webkit-touch-callout: none
    text-decoration: none
    &:hover
        color: $link-hover
    &:active
        color: $link-active

input, button, code
    @extend .line-height-1

input
    // 自动填充
    &:-webkit-autofill
        box-shadow: 0 0 0 1000px white inset

    // 获取焦点
    &:focus
        -webkit-tap-highlight-color: transparent

// 字体不加粗
em, i, strong, h1, h2, h3, h4, h5, h6, b
    font-weight: normal

// 去除移动端点击时显示的背景颜色
a, div, section, img, button, input
    -webkit-tap-highlight-color: transparent

// 禁用调整大小
textarea
    resize: none

.iconfont
    @extend .font-size
