_theme.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. /*******************************************************************************
  2. Slate Theme for GitHub Pages
  3. by Jason Costello, @jsncostello
  4. *******************************************************************************/
  5. /*******************************************************************************
  6. Theme Styles
  7. *******************************************************************************/
  8. body {
  9. box-sizing: border-box;
  10. color: #373737;
  11. background: #212121;
  12. font-size: 14px;
  13. font-family: 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
  14. line-height: 1.42857143;
  15. -webkit-font-smoothing: antialiased;
  16. }
  17. h1,
  18. h2,
  19. h3,
  20. h4,
  21. h5,
  22. h6 {
  23. margin: 10px 0;
  24. font-weight: 700;
  25. color: #222222;
  26. font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif;
  27. letter-spacing: -1px;
  28. }
  29. h1 {
  30. font-size: 36px;
  31. font-weight: 700;
  32. }
  33. h2 {
  34. padding-bottom: 10px;
  35. font-size: 32px;
  36. background: url("images/bg_hr.png") repeat-x bottom;
  37. }
  38. h3 {
  39. font-size: 24px;
  40. }
  41. h4 {
  42. font-size: 21px;
  43. }
  44. h5 {
  45. font-size: 18px;
  46. }
  47. h6 {
  48. font-size: 16px;
  49. }
  50. p {
  51. margin: 10px 0 15px 0;
  52. }
  53. footer p {
  54. color: #f2f2f2;
  55. }
  56. a {
  57. text-decoration: none;
  58. color: $highlight-color;
  59. text-shadow: none;
  60. transition: color 0.5s ease;
  61. transition: text-shadow 0.5s ease;
  62. }
  63. a:hover,
  64. a:focus {
  65. text-decoration: underline;
  66. }
  67. em {
  68. font-style: italic;
  69. }
  70. strong {
  71. font-weight: bold;
  72. }
  73. p img {
  74. display: inline;
  75. margin: 0;
  76. padding: 0;
  77. vertical-align: middle;
  78. text-align: center;
  79. border: none;
  80. }
  81. pre,
  82. code {
  83. width: 100%;
  84. color: #222;
  85. background-color: $white;
  86. font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
  87. font-size: 14px;
  88. border-radius: 2px;
  89. }
  90. pre {
  91. width: 98%;
  92. padding: 1%;
  93. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  94. overflow: auto;
  95. white-space: pre-wrap;
  96. }
  97. code {
  98. padding: 1%;
  99. width: 98%;
  100. margin: 0 3px;
  101. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  102. }
  103. pre code {
  104. display: block;
  105. box-shadow: none;
  106. }
  107. blockquote {
  108. color: #666;
  109. margin-bottom: 20px;
  110. padding: 0 0 0 20px;
  111. border-left: 3px solid #bbb;
  112. }
  113. ul,
  114. ol,
  115. dl {
  116. margin-bottom: 15px;
  117. }
  118. ul {
  119. list-style-position: inside;
  120. list-style: disc;
  121. padding-left: 20px;
  122. }
  123. ol {
  124. list-style-position: inside;
  125. list-style: decimal;
  126. padding-left: 20px;
  127. }
  128. dl dt {
  129. font-weight: bold;
  130. }
  131. dl dd {
  132. padding-left: 20px;
  133. font-style: italic;
  134. }
  135. dl p {
  136. padding-left: 20px;
  137. font-style: italic;
  138. }
  139. hr {
  140. height: 1px;
  141. margin-bottom: 5px;
  142. border: none;
  143. background: url("images/bg_hr.png") repeat-x center;
  144. }
  145. table {
  146. border: 1px solid #373737;
  147. margin-bottom: 20px;
  148. text-align: left;
  149. }
  150. th {
  151. font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  152. padding: 10px;
  153. background: #373737;
  154. color: $white;
  155. }
  156. td {
  157. padding: 10px;
  158. border: 1px solid #373737;
  159. }
  160. form {}
  161. /*******************************************************************************
  162. Full-Width Styles
  163. *******************************************************************************/
  164. .outer {
  165. width: 100%;
  166. }
  167. .inner {
  168. position: relative;
  169. max-width: 1080px;
  170. padding: 20px 10px;
  171. margin: 0 auto;
  172. }
  173. #forkme_banner {
  174. display: block;
  175. position: absolute;
  176. top: 0;
  177. right: 10px;
  178. z-index: 10;
  179. padding: 10px 50px 10px 10px;
  180. color: #fff;
  181. background: url("images/blacktocat.png") $highlight-color no-repeat 95% 50%;
  182. font-weight: 700;
  183. box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  184. border-bottom-left-radius: 2px;
  185. border-bottom-right-radius: 2px;
  186. }
  187. #header_wrap {
  188. background: linear-gradient(to bottom, #373737, #212121);
  189. }
  190. #header_wrap .inner {
  191. padding: 50px 10px 30px 10px;
  192. }
  193. #project_title {
  194. margin: 0;
  195. color: #fff;
  196. font-size: 42px;
  197. font-weight: 700;
  198. text-shadow: #111 0px 0px 10px;
  199. }
  200. #project_tagline {
  201. color: #fff;
  202. font-size: 24px;
  203. font-weight: 300;
  204. background: none;
  205. text-shadow: #111 0px 0px 10px;
  206. }
  207. #downloads {
  208. position: absolute;
  209. width: 210px;
  210. z-index: 10;
  211. bottom: -40px;
  212. right: 0;
  213. height: 70px;
  214. background: url("images/icon_download.png") no-repeat 0% 90%;
  215. }
  216. .zip_download_link {
  217. display: block;
  218. float: right;
  219. width: 90px;
  220. height: 70px;
  221. text-indent: -5000px;
  222. overflow: hidden;
  223. background: url(images/sprite_download.png) no-repeat bottom left;
  224. }
  225. .tar_download_link {
  226. display: block;
  227. float: right;
  228. width: 90px;
  229. height: 70px;
  230. text-indent: -5000px;
  231. overflow: hidden;
  232. background: url(images/sprite_download.png) no-repeat bottom right;
  233. margin-left: 10px;
  234. }
  235. .zip_download_link:hover {
  236. background: url(images/sprite_download.png) no-repeat top left;
  237. }
  238. .tar_download_link:hover {
  239. background: url(images/sprite_download.png) no-repeat top right;
  240. }
  241. #main_content_wrap {
  242. background: #f2f2f2;
  243. border-top: 1px solid #111;
  244. border-bottom: 1px solid #111;
  245. }
  246. #footer_wrap {
  247. background: #212121;
  248. }
  249. /*******************************************************************************
  250. Small Device Styles
  251. *******************************************************************************/
  252. @media screen and (max-width: 480px) {
  253. body {
  254. font-size: 14px;
  255. }
  256. #downloads {
  257. display: none;
  258. }
  259. .inner {
  260. min-width: 320px;
  261. max-width: 480px;
  262. }
  263. #project_title {
  264. font-size: 32px;
  265. }
  266. h1 {
  267. font-size: 28px;
  268. }
  269. h2 {
  270. font-size: 24px;
  271. }
  272. h3 {
  273. font-size: 21px;
  274. }
  275. h4 {
  276. font-size: 18px;
  277. }
  278. h5 {
  279. font-size: 14px;
  280. }
  281. h6 {
  282. font-size: 12px;
  283. }
  284. code,
  285. pre {
  286. min-width: 320px;
  287. max-width: 480px;
  288. font-size: 11px;
  289. width: 98%;
  290. padding: 1%;
  291. }
  292. }