_base.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. /*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
  2. html,
  3. button,
  4. input,
  5. select,
  6. textarea {
  7. color: #222;
  8. }
  9. html {
  10. font-size: 1em;
  11. line-height: 1.4;
  12. }
  13. html,
  14. body {
  15. background: #fff;
  16. }
  17. ::-moz-selection {
  18. background: #b3d4fc;
  19. text-shadow: none;
  20. }
  21. ::selection {
  22. background: #b3d4fc;
  23. text-shadow: none;
  24. }
  25. hr {
  26. display: block;
  27. height: 1px;
  28. border: 0;
  29. border-top: 1px solid #ccc;
  30. margin: 1em 0;
  31. padding: 0;
  32. }
  33. audio,
  34. canvas,
  35. img,
  36. video {
  37. vertical-align: middle;
  38. }
  39. fieldset {
  40. border: 0;
  41. margin: 0;
  42. padding: 0;
  43. }
  44. textarea {
  45. resize: vertical;
  46. }
  47. html {
  48. box-sizing: border-box;
  49. }
  50. *,
  51. *:before,
  52. *:after {
  53. box-sizing: inherit;
  54. }
  55. body,
  56. button,
  57. input,
  58. select,
  59. textarea {
  60. font-family: $font;
  61. font-size: 18px;
  62. font-weight: 300;
  63. }
  64. .wrapper {
  65. max-width: 1200px;
  66. margin: 0 auto;
  67. clear: both;
  68. p:last-child {
  69. margin-bottom: 0;
  70. }
  71. h4 {
  72. font-size: 30px;
  73. }
  74. code.console {
  75. background: $text-color;
  76. color: #fff;
  77. font-size: 16px;
  78. padding: 3px 7px;
  79. }
  80. .note {
  81. color: #888;
  82. padding: 3px 0 3px 15px;
  83. border-left: 3px solid $primary-color-light;
  84. margin-right: 30px;
  85. > :first-child {
  86. margin-top: 0;
  87. }
  88. > :last-child {
  89. margin-bottom: 0;
  90. }
  91. }
  92. }
  93. .section {
  94. a {
  95. text-decoration: none;
  96. color: $primary-color;
  97. &:hover,
  98. &:focus {
  99. text-decoration: underline;
  100. }
  101. }
  102. }
  103. h1,
  104. h2,
  105. h3,
  106. h4,
  107. h5,
  108. h6 {
  109. font-weight: 300;
  110. margin: 0;
  111. padding: 0;
  112. }
  113. hr.clearfix {
  114. display: block;
  115. border: none;
  116. background: none;
  117. margin: 0;
  118. padding: 0;
  119. height: 0;
  120. clear: both;
  121. }
  122. table {
  123. margin: 30px auto;
  124. text-align: left;
  125. thead {
  126. background: #fff;
  127. }
  128. tbody {
  129. tr {
  130. border-bottom: 1px solid #ddd;
  131. &:nth-child(2n){
  132. background: #fcfcfc;
  133. }
  134. }
  135. }
  136. td,
  137. th {
  138. padding: 5px 15px;
  139. }
  140. }
  141. /* ==========================================================================
  142. Print styles
  143. ========================================================================== */
  144. @media print {
  145. * {
  146. background: transparent !important;
  147. color: #000 !important;
  148. box-shadow: none !important;
  149. text-shadow: none !important;
  150. }
  151. a,
  152. a:visited {
  153. text-decoration: underline;
  154. }
  155. a[href]:after {
  156. content: " (" attr(href) ")";
  157. }
  158. abbr[title]:after {
  159. content: " (" attr(title) ")";
  160. }
  161. .ir a:after,
  162. a[href^="javascript:"]:after,
  163. a[href^="#"]:after {
  164. content: "";
  165. }
  166. pre,
  167. blockquote {
  168. border: 1px solid #999;
  169. page-break-inside: avoid;
  170. }
  171. thead {
  172. display: table-header-group;
  173. }
  174. tr,
  175. img {
  176. page-break-inside: avoid;
  177. }
  178. img {
  179. max-width: 100% !important;
  180. }
  181. @page {
  182. margin: 0.5cm;
  183. }
  184. p,
  185. h2,
  186. h3 {
  187. orphans: 3;
  188. widows: 3;
  189. }
  190. h2,
  191. h3 {
  192. page-break-after: avoid;
  193. }
  194. }