Skip to content

Instantly share code, notes, and snippets.

@maolion
Created December 30, 2014 12:20
Show Gist options
  • Select an option

  • Save maolion/884a31d74c26a3c77123 to your computer and use it in GitHub Desktop.

Select an option

Save maolion/884a31d74c26a3c77123 to your computer and use it in GitHub Desktop.
/**
* <reset.less> - 2014/10/21
* @version 0.1
* @author Joye, maolion.j@gmail.com
* @website http://maolion.com
*/
@import "variables.less";
@import "utils.less";
/*RESET*
重置默认的CSS样式, 为实现统一的排版, 各浏览器下的相同表现.
*/
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small,
strong, sub, sup, var, b, i, hr, dl, dt, dd, ol, ul, li, fieldset, form, label,
legend, table, caption, tbody, tfoot, thead, tr, tt, th, td, article, aside,
canvas, details, figure, figcaption, hgroup, menu, header, footer, nav, section,
summary, time, mark, audio, video {
padding:0;
margin:0;
border: 0;
outline: 0;
//font-weight: inherit;
//font-style: inherit;
//font-family: inherit;
text-align: left;
vertical-align: baseline;
background-color: transparent;
}
*, *:before, *:after{
box-sizing:border-box;
}
/**
* 元素获取焦点时不显示虚线边框
*/
:target, :focus{
outline: 0 none;
}
/**
* 考虑到IE 6/7/8 未有对HTML5标签的支持
*/
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav,
section, summary {
display: block;
}
audio, canvas, progress, video {
display: inline-block;
}
strong,
h1, h2, h3, h4, h5{
font-weight: bold;
}
cite, em, dfn {
font-style: italic;
}
del {
text-decoration: line-through;
color: #666;
}
ins, dfn {
text-decoration: underline;
}
fieldset, img, addr, acronym {
border: 0;
}
addr, acronym {
font-variant: normal;
}
sup {
vertical-align: super;
}
sub {
vertical-align: sub;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
input, button, textarea, select, optgroup, option {
//font-family: inherit;
//font-size: inherit;
//font-style: inherit;
//font-weight: inherit;
}
input, textarea, select, button{
cursor: default;
}
input, textarea, select{
border: 1px solid #b0b0b0;
background-color:#fff;
}
input, textarea{
cursor:text;
}
textarea{
height:auto;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
caption, th, thead td {
text-align: left;
font-weight: normal;
}
:link, :visited {
text-decoration: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment