bootstrap的reset.less

來源:互聯網
上載者:User

它基本是來源於 Normalize.css,沒有用到什麼less文法,硬要的是可以看到“//”注釋的使用

/* Reset.less * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc). * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- *//*https://github.com/fankay/bootstrap/blob/master/lib/reset.lesshttp://www.lesscss.net/ ERIC MEYER RESET --------------------------------------------------*/html, body { margin: 0; padding: 0; }h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal;  font-style: normal; font-size: 100%; line-height: 1; font-family: inherit;}table { border-collapse: collapse; border-spacing: 0; }ol, ul { list-style: none; }q:before, q:after, blockquote:before, blockquote:after { content: ""; }// Normalize.css// Pulling in select resets form the normalize.css project// --------------------------------------------------// Display in IE6-9 and FF3// -------------------------// Source: http://github.com/necolas/normalize.csshtml {    overflow-y: scroll;    font-size: 100%;    -webkit-text-size-adjust: 100%;    -ms-text-size-adjust: 100%;}// Focus statesa:focus {    outline: thin dotted;}// Hover & Activea:hover,a:active {    outline: none 0;}// 讓 IE6-9 與 FF3支援HTML5的新標籤// -------------------------// Source: http://github.com/necolas/normalize.cssarticle,aside,details,figcaption,figure,footer,header,hgroup,nav,section {    display: block;}//  讓 IE6-9 與 FF3支援HTML5的新標籤 inline-block// -------------------------// Source: http://github.com/necolas/normalize.cssaudio,canvas,video {    display: inline-block;    *display: inline;    *zoom: 1;}// Prevents modern browsers from displaying 'audio' without controls// -------------------------// Source: http://github.com/necolas/normalize.cssaudio:not([controls]) {    display: none;}// Prevents sub and sup affecting line-height in all browsers// -------------------------// Source: http://github.com/necolas/normalize.csssub,sup {    font-size: 75%;    line-height: 0;    position: relative;    vertical-align: baseline;}sup {    top: -0.5em;}sub {    bottom: -0.25em;}// Img border in a's and image quality// -------------------------// Source: http://github.com/necolas/normalize.cssimg {    border: 0;    -ms-interpolation-mode: bicubic;}// Forms// -------------------------// Source: http://github.com/necolas/normalize.css// Font size in all browsers, margin changes, misc consistencybutton,input,select,textarea {    font-size: 100%;    margin: 0;    vertical-align: baseline;    *vertical-align: middle;}button,input {    line-height: normal; // FF3/4 have !important on line-height in UA stylesheet    *overflow: visible; // Inner spacing ie IE6/7}button::-moz-focus-inner,input::-moz-focus-inner { // Inner padding and border oddities in FF3/4      border: 0;      padding: 0;}button,input[type="button"],input[type="reset"],input[type="submit"] {    cursor: pointer; // Cursors on all buttons applied consistently    -webkit-appearance: button; // Style clicable inputs in iOS}input[type="search"] { // Appearance in Safari/Chrome                       -webkit-appearance: textfield;                       -webkit-box-sizing: content-box;                       -moz-box-sizing: content-box;                       box-sizing: content-box;}input[type="search"]::-webkit-search-decoration {    -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5}textarea {    overflow: auto; // Remove vertical scrollbar in IE6-9    vertical-align: top; // Readability and alignment cross-browser}

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.