style.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. ---
  2. ---
  3. //
  4. // IMPORTS
  5. //
  6. @import "reset";
  7. @import "variables";
  8. // Syntax highlighting @import is at the bottom of this file
  9. /**************/
  10. /* BASE RULES */
  11. /**************/
  12. html {
  13. font-size: 100%;
  14. }
  15. body {
  16. background: $white;
  17. font: 18px/1.4 $helvetica;
  18. color: $darkGray;
  19. }
  20. .container {
  21. margin: 0 auto;
  22. max-width: 740px;
  23. padding: 0 10px;
  24. width: 100%;
  25. }
  26. h1, h2, h3, h4, h5, h6 {
  27. font-family: $helveticaNeue;
  28. color: $darkerGray;
  29. font-weight: bold;
  30. line-height: 1.7;
  31. margin: 1em 0 15px;
  32. padding: 0;
  33. @include mobile {
  34. line-height: 1.4;
  35. }
  36. }
  37. h1 {
  38. font-size: 30px;
  39. a {
  40. color: inherit;
  41. }
  42. }
  43. h2 {
  44. font-size: 24px;
  45. }
  46. h3 {
  47. font-size: 20px;
  48. }
  49. h4 {
  50. font-size: 18px;
  51. color: $gray;
  52. }
  53. p {
  54. margin: 15px 0;
  55. }
  56. a {
  57. color: $blue;
  58. text-decoration: none;
  59. cursor: pointer;
  60. &:hover, &:active {
  61. color: $blue;
  62. }
  63. }
  64. ul, ol {
  65. margin: 15px 0;
  66. padding-left: 30px;
  67. }
  68. ul {
  69. list-style-type: disc;
  70. }
  71. ol {
  72. list-style-type: decimal;
  73. }
  74. ol ul, ul ol, ul ul, ol ol {
  75. margin: 0;
  76. }
  77. ul ul, ol ul {
  78. list-style-type: circle;
  79. }
  80. em, i {
  81. font-style: italic;
  82. }
  83. strong, b {
  84. font-weight: bold;
  85. }
  86. img {
  87. max-width: 100%;
  88. }
  89. // Fixes images in popup boxes from Google Translate
  90. .gmnoprint img {
  91. max-width: none;
  92. }
  93. .date {
  94. font-style: italic;
  95. color: $gray;
  96. }
  97. // Specify the color of the selection
  98. ::-moz-selection {
  99. color: $black;
  100. background: $lightGray;
  101. }
  102. ::selection {
  103. color: $black;
  104. background: $lightGray;
  105. }
  106. // Nicolas Gallagher's micro clearfix hack
  107. // http://nicolasgallagher.com/micro-clearfix-hack/
  108. .clearfix:before,
  109. .clearfix:after {
  110. content: " ";
  111. display: table;
  112. }
  113. .clearfix:after {
  114. clear: both;
  115. }
  116. /*********************/
  117. /* LAYOUT / SECTIONS */
  118. /*********************/
  119. //
  120. // .masthead
  121. //
  122. .wrapper-masthead {
  123. margin-bottom: 50px;
  124. }
  125. .masthead {
  126. padding: 20px 0;
  127. border-bottom: 1px solid $lightGray;
  128. @include mobile {
  129. text-align: center;
  130. }
  131. }
  132. .site-avatar {
  133. float: left;
  134. width: 70px;
  135. height: 70px;
  136. margin-right: 15px;
  137. @include mobile {
  138. float: none;
  139. display: block;
  140. margin: 0 auto;
  141. }
  142. img {
  143. border-radius: 5px;
  144. }
  145. }
  146. .site-info {
  147. float: left;
  148. @include mobile {
  149. float: none;
  150. display: block;
  151. margin: 0 auto;
  152. }
  153. }
  154. .site-name {
  155. margin: 0;
  156. color: $darkGray;
  157. cursor: pointer;
  158. font-family: $helveticaNeue;
  159. font-weight: 300;
  160. font-size: 28px;
  161. letter-spacing: 1px;
  162. }
  163. .site-description {
  164. margin: -5px 0 0 0;
  165. color: $gray;
  166. font-size: 16px;
  167. @include mobile {
  168. margin: 3px 0;
  169. }
  170. }
  171. nav {
  172. float: right;
  173. margin-top: 23px; // @TODO: Vertically middle align
  174. font-family: $helveticaNeue;
  175. font-size: 18px;
  176. @include mobile {
  177. float: none;
  178. margin-top: 9px;
  179. display: block;
  180. font-size: 16px;
  181. }
  182. a {
  183. margin-left: 20px;
  184. color: $darkGray;
  185. text-align: right;
  186. font-weight: 300;
  187. letter-spacing: 1px;
  188. @include mobile {
  189. margin: 0 10px;
  190. color: $blue;
  191. }
  192. }
  193. }
  194. //
  195. // .main
  196. //
  197. .posts > .post {
  198. padding-bottom: 2em;
  199. border-bottom: 1px solid $lightGray;
  200. }
  201. .posts > .post:last-child {
  202. padding-bottom: 1em;
  203. border-bottom: none;
  204. }
  205. .post {
  206. blockquote {
  207. margin: 1.8em .8em;
  208. border-left: 2px solid $gray;
  209. padding: 0.1em 1em;
  210. color: $gray;
  211. font-size: 22px;
  212. font-style: italic;
  213. }
  214. .comments {
  215. margin-top: 10px;
  216. }
  217. .read-more {
  218. text-transform: uppercase;
  219. font-size: 15px;
  220. }
  221. }
  222. .wrapper-footer {
  223. margin-top: 50px;
  224. border-top: 1px solid #ddd;
  225. border-bottom: 1px solid #ddd;
  226. background-color: $lightGray;
  227. }
  228. footer {
  229. padding: 20px 0;
  230. text-align: center;
  231. }
  232. // Settled on moving the import of syntax highlighting to the bottom of the CSS
  233. // ... Otherwise it really bloats up the top of the CSS file and makes it difficult to find the start
  234. @import "highlights";
  235. @import "svg-icons";