Add Reset

Add the file

  1. $ touch _reset.scss

Add to the application.scss

  1. /////// Standard CSS reset stuff here
  2. // *-------------------------------------------------
  3. @import "reset";

Add the following code:

  1. // * Let's default this puppy out
  2. // *-------------------------------------------------
  3. html, 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, hgroup, menu, nav, section, menu, time, mark, audio, video {
  4. margin: 0;
  5. padding: 0;
  6. border: 0;
  7. vertical-align: baseline;
  8. background: transparent;
  9. }
  10. * {
  11. -moz-box-sizing: border-box;
  12. box-sizing: border-box;
  13. }
  14. body {
  15. font-size: 100%;
  16. -webkit-font-smoothing: antialiased;
  17. }
  18. article, aside, figure, footer, header, hgroup, nav, section {
  19. display: block;
  20. }
  21. // * Responsive images and other embedded objects
  22. // * Note: keeping IMG here will cause problems if you're using foreground images as sprites, like, say for Google Maps custom placemarkers.
  23. // * There has been a report of problems with standard Google maps as well, but we haven't been able to duplicate or diagnose the issue.
  24. img, object, embed {
  25. max-width: 100%;
  26. }
  27. img {
  28. border-style: none;
  29. border-color: transparent;
  30. border-width: 0;
  31. }
  32. // * we use a lot of ULs that aren't bulleted.
  33. // * don't forget to restore the bullets within content.
  34. ol,ul {
  35. list-style: none;
  36. }
  37. blockquote, q {
  38. quotes: none;
  39. &:before, &:after {
  40. content: '';
  41. content: none;
  42. }
  43. }
  44. a {
  45. margin: 0;
  46. padding: 0;
  47. font-size: 100%;
  48. vertical-align: baseline;
  49. background: transparent;
  50. &:focus {
  51. text-decoration: underline ;
  52. outline: none;
  53. }
  54. }
  55. del {
  56. text-decoration: line-through;
  57. }
  58. pre {
  59. //white-space: pre
  60. // * CSS2
  61. white-space: pre-wrap;
  62. // * CSS 2.1
  63. //white-space: pre-line
  64. // * CSS 3 (and 2.1 as well, actually)
  65. word-wrap: break-word;
  66. // * IE
  67. }
  68. input {
  69. &[type="radio"] {
  70. vertical-align: text-bottom;
  71. }
  72. }
  73. input, textarea, select, button {
  74. font-family: inherit;
  75. font-weight: inherit;
  76. background-color: #fff;
  77. border: 0;
  78. padding: 0;
  79. margin: 0;
  80. }
  81. table {
  82. font-size: inherit;
  83. }
  84. sub, sup {
  85. font-size: 75%;
  86. line-height: 0;
  87. position: relative;
  88. }
  89. sup {
  90. top: -0.5em;
  91. }
  92. sub {
  93. bottom: -0.25em;
  94. }
  95. // * standardize any monospaced elements
  96. pre, code, kbd, samp {
  97. font-family: monospace, sans-serif;
  98. }
  99. input {
  100. &[type=button], &[type=submit] {
  101. @extend %stipe-cursor-pointer;
  102. }
  103. }
  104. button {
  105. cursor: pointer;
  106. margin: 0;
  107. width: auto;
  108. overflow: visible;
  109. }
  110. a.button {
  111. display: inline-block;
  112. }
  113. // * scale images in IE7 more attractively
  114. .ie7 img {
  115. -ms-interpolation-mode: bicubic;
  116. }
  117. // * Ok, this is where the fun starts.
  118. // *-------------------------------------------------
  119. a:link {
  120. -webkit-tap-highlight-color: $webkit-tap-hightlight;
  121. }
  122. ins {
  123. background-color: $ins-color;
  124. color: black;
  125. text-decoration: none;
  126. }
  127. mark {
  128. background-color: $mark-color;
  129. color: $primary-text;
  130. font-style: italic;
  131. font-weight: bold;
  132. }
  133. ::selection {
  134. background: $selection-color;
  135. color: $selection-text-color;
  136. }
  137. ::-moz-selection {
  138. background: $selection-color;
  139. color: $selection-text-color;
  140. }