_reset.scss.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js">@if $scope-reset-css {
  19. .#{$prefix}border-box .#{$prefix}reset,
  20. .#{$prefix}border-box .#{$prefix}reset * {
  21. box-sizing:border-box;
  22. -moz-box-sizing:border-box;
  23. -ms-box-sizing:border-box;
  24. -webkit-box-sizing:border-box;
  25. }
  26. .#{$prefix}reset {
  27. html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3,
  28. h4, h5, h6, pre, code, form, fieldset, legend,
  29. input, textarea, p, blockquote, th, td {
  30. margin:0;
  31. padding:0;
  32. }
  33. table {
  34. border-collapse:collapse;
  35. border-spacing:0;
  36. }
  37. fieldset, img {
  38. border:0;
  39. }
  40. address, caption, cite, code,
  41. dfn, em, strong, th, var {
  42. font-style:normal;
  43. font-weight:normal;
  44. }
  45. li {
  46. list-style:none;
  47. }
  48. caption, th {
  49. text-align:left;
  50. }
  51. h1, h2, h3, h4, h5, h6 {
  52. font-size: 100%;
  53. }
  54. q:before,
  55. q:after {
  56. content:&quot;&quot;;
  57. }
  58. abbr, acronym {
  59. border:0;
  60. font-variant:normal;
  61. }
  62. sup {
  63. vertical-align:text-top;
  64. }
  65. sub {
  66. vertical-align:text-bottom;
  67. }
  68. input, textarea, select {
  69. font-family:inherit;
  70. font-size:inherit;
  71. font-weight:inherit;
  72. }
  73. *:focus {
  74. outline:none;
  75. }
  76. }
  77. }
  78. @else {
  79. html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3,
  80. h4, h5, h6, pre, code, form, fieldset, legend,
  81. input, textarea, p, blockquote, th, td {
  82. margin:0;
  83. padding:0;
  84. }
  85. table {
  86. border-collapse:collapse;
  87. border-spacing:0;
  88. }
  89. fieldset, img {
  90. border:0;
  91. }
  92. address, caption, cite, code,
  93. dfn, em, strong, th, var {
  94. font-style:normal;
  95. font-weight:normal;
  96. }
  97. li {
  98. list-style:none;
  99. }
  100. caption, th {
  101. text-align:left;
  102. }
  103. h1, h2, h3, h4, h5, h6 {
  104. font-size: 100%;
  105. }
  106. q:before,
  107. q:after {
  108. content:&quot;&quot;;
  109. }
  110. abbr, acronym {
  111. border:0;
  112. font-variant:normal;
  113. }
  114. sup {
  115. vertical-align:text-top;
  116. }
  117. sub {
  118. vertical-align:text-bottom;
  119. }
  120. input, textarea, select {
  121. font-family:inherit;
  122. font-size:inherit;
  123. font-weight:inherit;
  124. }
  125. *:focus {
  126. outline:none;
  127. }
  128. .#{$prefix}border-box,
  129. .#{$prefix}border-box * {
  130. box-sizing:border-box;
  131. -moz-box-sizing:border-box;
  132. -ms-box-sizing:border-box;
  133. -webkit-box-sizing:border-box;
  134. }
  135. }
  136. </pre>
  137. </body>
  138. </html>