main.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. /*
  2. Colors :
  3. - #40403F
  4. - #4D4D4C
  5. - #7F7F7E
  6. - #E5E5E3
  7. - #F0F0F0
  8. */
  9. /* Imports */
  10. @import url("pygment.css");
  11. /* Latout */
  12. article,
  13. figcaption,
  14. figure,
  15. footer,
  16. header,
  17. nav,
  18. section,
  19. time {
  20. display: block;
  21. }
  22. html {
  23. font-size: 100%;
  24. -ms-text-size-adjust: 100%;
  25. -webkit-text-size-adjust: 100%;
  26. }
  27. body {
  28. font-family: 'Source Sans Pro', sans-serif;
  29. font-size: 16px;
  30. line-height: 150%;
  31. text-align: left;
  32. color: #4D4D4C;
  33. padding: 0;
  34. min-width: 740px;
  35. }
  36. header {
  37. background-color: #40403F;
  38. height: 50px;
  39. line-height: 50px;
  40. padding: 0 1em;
  41. }
  42. .wrapper {
  43. display: table;
  44. width: 100%;
  45. }
  46. .content {
  47. display: table-cell;
  48. border-left: 1px solid #d6d6d6;
  49. border-right: 1px dotted #D6D6D6;
  50. padding: 0 20px 1em 20px;
  51. }
  52. .sidebar {
  53. display: table-cell;
  54. width: 25%;
  55. border-right: 1px solid #d6d6d6;
  56. padding: 0 20px 1em 20px;
  57. }
  58. footer {
  59. border-top: 1px dotted #D6D6D6;
  60. line-height: 30px;
  61. padding: 0 1em;
  62. font-size: 0.8em;
  63. }
  64. /* Header */
  65. header a {
  66. color: #E5E5E3;
  67. border-bottom: none;
  68. }
  69. header a.title {
  70. font-size: 1.25em;
  71. }
  72. header .feeds {
  73. float: right;
  74. text-align: right;
  75. width: 25%;
  76. height: 41px;
  77. padding-top: 9px;
  78. }
  79. header .feeds a {
  80. display: block;
  81. float: right;
  82. padding-right: 5px;
  83. width: 40px;
  84. }
  85. header .feeds a:hover,
  86. header .feeds a:active {
  87. border-bottom: none;
  88. }
  89. header .pages {
  90. float: right;
  91. }
  92. header .pages a {
  93. font-size: 1.1em;
  94. }
  95. /* Sidebar */
  96. /* Titles */
  97. h1, h2, h3, h4, h5, h6 {
  98. font-family: "Source Sans Pro",sans-serif;
  99. font-weight: 400;
  100. text-shadow: 0.1em 0.1em 0.1em #EFEFEF;
  101. line-height: 125%;
  102. }
  103. h1 {
  104. font-size: 2em;
  105. margin: 0.67em 0;
  106. padding: 0.7em 0 0.3em;
  107. }
  108. h1 a {
  109. color: inherit;
  110. border-bottom: none;
  111. }
  112. /* Texts */
  113. p {
  114. margin: 0.8em 0 0.5em;
  115. }
  116. a {
  117. text-decoration: none;
  118. border-bottom: 1px dotted #4D4D4C;
  119. color: #4D4D4C;
  120. }
  121. a:hover, a:active {
  122. text-decoration: none;
  123. border-bottom: 1px dotted #4271AE;
  124. color: #4271AE;
  125. }
  126. .literal {
  127. font-size: 0.9em;
  128. border: 1px solid #F0F0F0;
  129. padding: 0px 5px;
  130. }
  131. pre {
  132. font-family: 'Source Code Pro',monospace;
  133. background: none repeat scroll 0 0 #F0F0F0;
  134. border-radius: 2px;
  135. font-size: 0.9em;
  136. font-style: normal;
  137. letter-spacing: 0.015em;
  138. line-height: 130%;
  139. padding: 0.7em;
  140. white-space: pre-wrap;
  141. word-wrap: break-word;
  142. }
  143. hr {
  144. margin: 40px 5% 60px 5%;
  145. color: #d6d6d6;
  146. box-shadow: 0.1em 0.1em 0.1em #EFEFEF;
  147. border-radius: 5px;
  148. }
  149. /* Article */
  150. article.summary {
  151. margin-bottom: 40px;
  152. clear: both;
  153. }
  154. article.summary > div {
  155. margin-left: 28%;
  156. }
  157. article.full .metadata,
  158. article.summary .metadata {
  159. padding: 1%;
  160. border: 1px dotted #EFEFEF;
  161. box-shadow: 0.1em 0.1em 0.1em #EFEFEF;
  162. font-style: italic;
  163. }
  164. article.full .metadata {
  165. width: 25%;
  166. float: right;
  167. margin: 0 0 2% 1%;
  168. }
  169. article.summary .metadata {
  170. width: 23%;
  171. float: left;
  172. margin: 0 1% 2% 0 ;
  173. }
  174. .metadata p {
  175. margin: 0;
  176. }
  177. /* Listings */
  178. ol.archive li {
  179. margin: 8px 0;
  180. }
  181. ol.archive li time,
  182. ol.archive li .tags
  183. {
  184. line-height: 140%;
  185. font-size: 0.8em;
  186. margin: 0;
  187. }
  188. /* Social */
  189. .social {
  190. list-style-type: none;
  191. padding-left: 20px;
  192. }
  193. .social li {
  194. clear: both;
  195. }
  196. .social a {}
  197. .social i {
  198. float: left;
  199. margin-right: 3px;
  200. padding-top: 4px;
  201. }
  202. .social a[href*='twitter.com'] + i:before {content: url('../images/icons/twitter-18px.png'); }
  203. .social a[href*='linkedin.com'] + i:before {content: url('../images/icons/linkedin-18px.png'); }
  204. .social a[href*='github.com'] + i:before {content: url('../images/icons/github-18px.png'); }
  205. .social a[href*='google.com'] + i:before {content: url('../images/icons/google-18px.png'); }
  206. .social a[href*='delicious.com']:before {content: url('../images/icons/delicious-18px.png'); }
  207. .social a[href*='digg.com']:before {content: url('../images/icons/digg-18px.png'); }
  208. .social a[href*='facebook.com']:before {content: url('../images/icons/facebook-18px.png'); }
  209. .social a[href*='stackoverflow.com']:before {content: url('../images/icons/stackoverfow-18px.png'); }
  210. .social a[href*='rss.xml']:before {content: url('../images/icons/feed-18px.png'); }
  211. .social a[href*='atom.xml']:before {content: url('../images/icons/feed-18px.png'); }
  212. /* Tag cloud */
  213. ul.tagcloud {
  214. list-style: none;
  215. padding: 0;
  216. width: 50%;
  217. margin: 0 auto;
  218. line-height: 200%;
  219. }
  220. ul.tagcloud li {
  221. display: inline-block;
  222. }
  223. li.tag-1 { font-size: 175%; margin: 0 1em; }
  224. li.tag-2 { font-size: 150%; margin: 0 1em; }
  225. li.tag-3 { font-size: 125%; margin: 0 1em; }
  226. li.tag-4 { font-size: 110%; margin: 0 1em; }
  227. /* Pagination */
  228. .pagination {
  229. width: 100px;
  230. margin: 1em auto;
  231. }
  232. /* Responsive */
  233. @media (min-width: 1280px) {
  234. body {
  235. margin: 0 16%;
  236. }
  237. }
  238. @media (max-width: 1280px) {
  239. body {
  240. margin: 0 12%;
  241. }
  242. }
  243. @media (max-width: 979px) {
  244. body {
  245. margin: 0 4%;
  246. }
  247. }
  248. img {
  249. width: 90%;
  250. }