PageRenderTime 35ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/css/style.css

https://gitlab.com/zoglesby/blog
CSS | 585 lines | 465 code | 74 blank | 46 comment | 0 complexity | d5725dbe089bb794f73a7f4b9779ca26 MD5 | raw file
  1. /* ==========================================================================
  2. 0. Includes - Ground zero
  3. ========================================================================== */
  4. /* Import purecss-0.3 */
  5. @import url(pure-min-0.3.css);
  6. /* Dark Theme: dark.css; Light Theme: light.css; */
  7. @import url(dark.css);
  8. /* Import the font file with the icons in it */
  9. @font-face {
  10. font-family: 'icons';
  11. src:url('../fonts/pureBuster.eot');
  12. src:url('../fonts/pureBuster.eot?#iefix') format('embedded-opentype'),
  13. url('../fonts/pureBuster.woff') format('woff'),
  14. url('../fonts/pureBuster.ttf') format('truetype'),
  15. url('../fonts/pureBuster.svg#icons') format('svg');
  16. font-weight: normal;
  17. font-style: normal;
  18. }
  19. /* ==========================================================================
  20. 1. Icons
  21. ========================================================================== */
  22. /* Apply these base styles to all icons */
  23. .icon-ghost,
  24. .icon-feed,
  25. .icon-feed-1,
  26. .icon-feed-inv,
  27. .icon-twitter,
  28. .icon-twitter-1,
  29. .icon-twitter-inv,
  30. .icon-google-plus,
  31. .icon-google-plus-1,
  32. .icon-google-plus-inv,
  33. .icon-facebook,
  34. .icon-facebook-1,
  35. .icon-facebook-inv,
  36. .icon-leaf,
  37. .icon-linkedin,
  38. .icon-linkedin-inv,
  39. .icon-github,
  40. .icon-github-1,
  41. .icon-github-inv,
  42. .icon-bitbucket,
  43. .icon-bitbucket-inv,
  44. .icon-cloud,
  45. .icon-lamp,
  46. .icon-youtube,
  47. .icon-youtube-inv,
  48. .icon-flickr,
  49. .icon-dropbox,
  50. .icon-tumblr,
  51. .icon-tumblr-inv,
  52. .icon-skype,
  53. .icon-apple,
  54. .icon-windows,
  55. .icon-android,
  56. .icon-linux {
  57. font-family: 'icons';
  58. speak: none;
  59. font-style: normal;
  60. font-weight: normal;
  61. font-variant: normal;
  62. text-transform: none;
  63. line-height: 1;
  64. -webkit-font-smoothing: antialiased;
  65. text-decoration: none;
  66. font-size: 75%;
  67. }
  68. /* Each icon is created by inserting the corret character into the
  69. content of the :before pseudo element. Like a boss. */
  70. .icon-ghost:before {content: "\e000";}
  71. .icon-feed:before {content: "\f09e";}
  72. .icon-feed-1:before {content: "\e001";}
  73. .icon-feed-inv:before {content: "\e004";}
  74. .icon-twitter:before {content: "\f099";}
  75. .icon-twitter-1:before {content: "\e002";}
  76. .icon-twitter-inv:before {content: "\f081";}
  77. .icon-google-plus:before {content: "\f0d4";}
  78. .icon-google-plus-1:before {content: "\e006";}
  79. .icon-google-plus-inv:before {content: "\f0d5";}
  80. .icon-facebook:before {content: "\e007";}
  81. .icon-facebook-1:before {content: "\f082";}
  82. .icon-facebook-inv:before {content: "\f09a";}
  83. .icon-leaf:before {content: "\f06c";}
  84. .icon-linkedin:before {content: "\f08c";}
  85. .icon-linkedin-inv:before {content: "\f0e1";}
  86. .icon-github:before {content: "\f092";}
  87. .icon-github-1:before {content: "\f09b";}
  88. .icon-github-inv:before {content: "\f113";}
  89. .icon-bitbucket:before {content: "\f171";}
  90. .icon-bitbucket-inv:before {content: "\f172";}
  91. .icon-cloud:before {content: "\f0c2";}
  92. .icon-lamp:before {content: "\f0eb";}
  93. .icon-youtube:before {content: "\f167";}
  94. .icon-youtube-inv:before {content: "\f166";}
  95. .icon-flickr:before {content: "\f16e";}
  96. .icon-dropbox:before {content: "\f16b";}
  97. .icon-tumblr:before {content: "\f173";}
  98. .icon-tumblr-inv:before {content: "\f174";}
  99. .icon-skype:before {content: "\f17e";}
  100. .icon-apple:before {content: "\f179";}
  101. .icon-windows:before {content: "\f17a";}
  102. .icon-android:before {content: "\f17b";}
  103. .icon-linux:before {content: "\f17c";}
  104. /* ==========================================================================
  105. 2. General setup
  106. ========================================================================== */
  107. * {
  108. -webkit-box-sizing: border-box;
  109. -moz-box-sizing: border-box;
  110. box-sizing: border-box;
  111. }
  112. h1, h2, h3,
  113. h4, h5, h6 {
  114. text-rendering: optimizeLegibility;
  115. line-height: 1;
  116. margin-top: 0;
  117. }
  118. a {
  119. text-decoration: none;
  120. }
  121. a:hover,
  122. a:focus {
  123. text-decoration: underline;
  124. }
  125. /* Hides shit */
  126. .hidden {
  127. text-indent: -9999px;
  128. visibility: hidden;
  129. display: none;
  130. }
  131. /* ==========================================================================
  132. 2.1 Colours - All the colors set up is here to provide an easy way
  133. to change the theme colorscheme
  134. ========================================================================== */
  135. /* Moved in the import section at the top of the document */
  136. /* ==========================================================================
  137. 2.2 Fonts - All the fonts are configured here
  138. ========================================================================== */
  139. /*
  140. When setting the primary font stack, apply it to the Pure grid units along with
  141. the `body`. Pure Grids use specific font stacks to ensure the greatest
  142. OS/browser compatibility.
  143. */
  144. body,
  145. .pure-g [class *= "pure-u"],
  146. .pure-g-r [class *= "pure-u"] {
  147. /* Set you're content font stack here: */
  148. font-family: 'Open Sans', Helvetica , sans-serif;
  149. }
  150. .post-description,.post-content {
  151. font-family: 'Droid Serif', Georgia, serif;
  152. }
  153. /* ==========================================================================
  154. 3. Layout CSS
  155. ========================================================================== */
  156. #layout {
  157. padding-left: 25%; /* "left col (nav + list)" width */
  158. position: relative;
  159. }
  160. .sidebar {
  161. position: fixed;
  162. top: 0;
  163. bottom: 0;
  164. width: 25%;
  165. margin-left: -25%;
  166. }
  167. .header {
  168. margin: 1.5em 2em 0;
  169. text-align: right;
  170. }
  171. .blog-title,
  172. .blog-description {
  173. margin: 0;
  174. }
  175. .blog-title {
  176. text-transform: uppercase;
  177. }
  178. .blog-description {
  179. font-weight: 300;
  180. }
  181. .blog-title a:hover {
  182. text-decoration: none;
  183. }
  184. #blog-logo img {
  185. margin-bottom: 1em;
  186. }
  187. .nav-list {
  188. margin: 0;
  189. padding: 0;
  190. list-style: none;
  191. }
  192. .nav-item {
  193. display: inline-block;
  194. *display: inline;
  195. zoom: 1;
  196. }
  197. .nav-item a {
  198. margin-top: 1em;
  199. }
  200. .nav-item a:hover,
  201. .nav-item a:focus {
  202. text-decoration: none;
  203. }
  204. .social-list {
  205. margin: 0;
  206. margin-top: 1.5em;
  207. padding: 0;
  208. list-style: none;
  209. }
  210. .social-item {
  211. display: inline-block;
  212. *display: inline;
  213. zoom: 1;
  214. }
  215. .social-item a {
  216. margin-top: 1em;
  217. }
  218. .social-item a:hover {
  219. text-decoration: none;
  220. }
  221. .content-subhead {
  222. text-transform: uppercase;
  223. padding: 0.4em 0;
  224. font-size: 80%;
  225. font-weight: 500;
  226. letter-spacing: 0.1em;
  227. }
  228. .content {
  229. margin-top: 1.5em;
  230. padding: 2em 3em 0;
  231. max-width: 820px;
  232. }
  233. .post {
  234. padding-bottom: 2em;
  235. }
  236. .back{
  237. margin-top: -2%;
  238. padding-bottom: 2em;
  239. font-size: 0.8em;
  240. }
  241. .post-title {
  242. font-size: 2em;
  243. margin-bottom: 0.2em;
  244. }
  245. .big {
  246. font-size: 2.5em;
  247. }
  248. .post-avatar {
  249. border-radius: 50px;
  250. float: right;
  251. margin-left: 1em;
  252. }
  253. .post-description {
  254. line-height: 1.2em;
  255. }
  256. .post-content {
  257. font-size: 1.1em;
  258. line-height: 1.3em;
  259. }
  260. .post-content p {
  261. margin: 1.2em 0;
  262. }
  263. .post-meta {
  264. font-size: 90%;
  265. margin: 0;
  266. }
  267. .post-images {
  268. margin: 1em 0;
  269. }
  270. .post-image-meta {
  271. margin-top: -3.5em;
  272. margin-left: 1em;
  273. }
  274. .post-comments {
  275. margin-top: 2em;
  276. padding-top: 1.2em;
  277. }
  278. .post-share-box {
  279. display: block;
  280. float: right;
  281. text-align: center;
  282. margin: 0;
  283. margin-left: 1em;
  284. margin-right: 0.5em;
  285. margin-bottom: 1em;
  286. padding: 1em;
  287. padding-top:0.5em;
  288. padding-bottom:0.5em;
  289. border-radius: 3px;
  290. }
  291. .share h3 {
  292. margin: 0;
  293. margin-bottom: 0.8em;
  294. font-size: 80%;
  295. }
  296. .share {
  297. /*font-size: 120%;*/
  298. }
  299. .share a {
  300. margin-left: 2px;
  301. margin-right: 2px;
  302. }
  303. .share a:hover {
  304. text-decoration: none;
  305. }
  306. .pagination {
  307. margin-bottom: 10px;
  308. font-size: 80%;
  309. white-space:nowrap;
  310. }
  311. .page-number {
  312. width:40%;
  313. display: inline-block;
  314. text-align: center;
  315. }
  316. .older-posts {
  317. display: inline-block;
  318. width:30%;
  319. padding-left:5px;
  320. text-align: right;
  321. padding-right: 5px;
  322. }
  323. .newer-posts {
  324. display: inline-block;
  325. width: 30%;
  326. padding-right: 5px;
  327. text-align: left;
  328. }
  329. .footer {
  330. text-align: right;
  331. width: 25%;
  332. padding: 0 2em 1em 0;
  333. display: block;
  334. position: fixed;
  335. bottom: 0;
  336. }
  337. .footer section {
  338. font-size: 70%;
  339. }
  340. /* ==========================================================================
  341. 3.1 Additional Elements
  342. ========================================================================== */
  343. hr {
  344. display: block;
  345. height: 1px;
  346. border: 0;
  347. border-top: 1px solid rgba(142, 142, 214, 0.2);
  348. margin: 3.2em 0;
  349. padding: 0;
  350. }
  351. blockquote {
  352. margin: 1.6em 0 1.6em 0em;
  353. padding: 0 2em 0 2em;
  354. border-left: rgba(142, 142, 214, 0.5) 0.4em solid;
  355. }
  356. blockquote p {
  357. margin: 0.8em 0;
  358. font-style: italic;
  359. }
  360. blockquote small {
  361. display: inline-block;
  362. margin: 0.8em 0 0.8em 1.5em;;
  363. font-size:0.9em;
  364. color: rgba(142, 142, 214, 0.5);
  365. }
  366. blockquote small:before { content: '\2014 \00A0'; }
  367. blockquote cite {
  368. font-weight:bold;
  369. }
  370. blockquote cite a { font-weight: normal; }
  371. code {
  372. padding: 1px 3px;
  373. font-family: Menlo, Inconsolata, monospace, sans-serif;
  374. font-size: 0.85em;
  375. white-space: pre;
  376. border: 1px solid rgba(142, 142, 214, 0.5);
  377. background: rgba(142, 142, 214, 0.2);
  378. border-radius: 2px;
  379. }
  380. pre {
  381. margin: 1.6em 0;
  382. border: 1px solid rgba(142, 142, 214, 0.5);
  383. width: 100%;
  384. padding: 10px;
  385. font-family: Inconsolata, monospace, sans-serif;
  386. font-size: 0.9em;
  387. white-space: pre;
  388. overflow: auto;
  389. background: rgba(142, 142, 214, 0.2);
  390. border-radius: 3px;
  391. }
  392. pre code {
  393. font-size: inherit;
  394. white-space: -moz-pre-wrap;
  395. white-space: pre-wrap;
  396. background: transparent;
  397. border: none;
  398. padding: 0;
  399. }
  400. /* ==========================================================================
  401. 3.1 Additional Elements
  402. ========================================================================== */
  403. hr {
  404. display: block;
  405. height: 1px;
  406. border: 0;
  407. border-top: 1px solid rgba(142, 142, 214, 0.2);
  408. margin: 3.2em 0;
  409. padding: 0;
  410. }
  411. blockquote {
  412. margin: 1.6em 0 1.6em 0em;
  413. padding: 0 2em 0 2em;
  414. border-left: rgba(142, 142, 214, 0.5) 0.4em solid;
  415. }
  416. blockquote p {
  417. margin: 0.8em 0;
  418. font-style: italic;
  419. }
  420. blockquote small {
  421. display: inline-block;
  422. margin: 0.8em 0 0.8em 1.5em;;
  423. font-size:0.9em;
  424. color: rgba(142, 142, 214, 0.5);
  425. }
  426. blockquote small:before { content: '\2014 \00A0'; }
  427. blockquote cite {
  428. font-weight:bold;
  429. }
  430. blockquote cite a { font-weight: normal; }
  431. code {
  432. padding: 1px 3px;
  433. font-family: Menlo, Inconsolata, monospace, sans-serif;
  434. font-size: 0.85em;
  435. white-space: pre;
  436. border: 1px solid rgba(142, 142, 214, 0.5);
  437. background: rgba(142, 142, 214, 0.2);
  438. border-radius: 2px;
  439. }
  440. pre {
  441. margin: 1.6em 0;
  442. border: 1px solid rgba(142, 142, 214, 0.5);
  443. width: 100%;
  444. padding: 10px;
  445. font-family: Inconsolata, monospace, sans-serif;
  446. font-size: 0.9em;
  447. white-space: pre;
  448. overflow: auto;
  449. background: rgba(142, 142, 214, 0.2);
  450. border-radius: 3px;
  451. }
  452. pre code {
  453. font-size: inherit;
  454. white-space: -moz-pre-wrap;
  455. white-space: pre-wrap;
  456. background: transparent;
  457. border: none;
  458. padding: 0;
  459. }
  460. /* ==========================================================================
  461. 4. Tablets
  462. ========================================================================== */
  463. @media (max-width: 970px) {
  464. #layout {
  465. padding: 0;
  466. }
  467. .sidebar {
  468. width: 100%;
  469. position: relative;
  470. margin: 0;
  471. }
  472. .header {
  473. text-align: center;
  474. top: auto;
  475. margin: 3em auto;
  476. position: static;
  477. }
  478. .footer {
  479. position: relative;
  480. bottom: 0;
  481. padding: 1em 0;
  482. width: 100%;
  483. margin: auto;
  484. text-align: center;
  485. }
  486. .post-share-box {
  487. width:100%;
  488. text-align: center;
  489. margin:0.7em;
  490. margin-top:-5px;
  491. padding: 6px 2px 2px;
  492. }
  493. .share h3 {
  494. display: inline;
  495. vertical-align: top;
  496. font-size: 90%;
  497. }
  498. }
  499. div.info {
  500. color: #555;
  501. font-size: 14px;
  502. font-style: italic;
  503. }
  504. /* ==========================================================================
  505. 5. Phones
  506. ========================================================================== */
  507. @media (max-width: 480px) {
  508. .content {
  509. padding: 2em 1em 0;
  510. }
  511. }