_base.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @charset "UTF-8";
  2. html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, menu, nav, section, time, mark, audio, video, details, summary {
  3. margin: 0;
  4. padding: 0;
  5. border: 0;
  6. font-size: 100%;
  7. font-weight: normal;
  8. vertical-align: baseline;
  9. }
  10. blockquote, q {
  11. quotes: none;
  12. }
  13. blockquote:before,
  14. blockquote:after,
  15. q:before,
  16. q:after {
  17. content: '';
  18. content: none;
  19. }
  20. del {text-decoration: line-through;}
  21. img {
  22. height: auto;
  23. vertical-align: middle;
  24. -ms-interpolation-mode: bicubic;/* scale images in IE7 more attractively */
  25. }
  26. i, em {
  27. font-style: normal;
  28. }
  29. ol, ul, menu {
  30. list-style: none outside none;
  31. }
  32. fieldset,iframe,abbr,acronym {
  33. border: 0 none;
  34. }
  35. iframe {
  36. display: block;
  37. }
  38. textarea {
  39. resize: vertical;
  40. }
  41. table {
  42. border-collapse: collapse;
  43. border-spacing: 0;
  44. font-size: inherit;
  45. }
  46. // IE bug fixed: th 不继承 text-align
  47. th {
  48. text-align: inherit;
  49. }
  50. // 修正表单元素并不继承父级 font 的问题
  51. button, input, select, textarea {
  52. font-family: Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
  53. margin: 0;
  54. }
  55. %clearfix{
  56. *zoom: 1;
  57. &:before,
  58. &:after{
  59. content: "";
  60. display: table;
  61. line-height: 0;
  62. }
  63. &:after{
  64. clear: both;
  65. }
  66. }
  67. // 清除浮动
  68. .clearfix {
  69. @extend %clearfix;
  70. }