Fork of @spf13's port of Mdo's excellent theme to Hugo https://brendan.abolivier.bzh/

hyde.css 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. /*
  2. __ __
  3. /\ \ /\ \
  4. \ \ \___ __ __ \_\ \ __
  5. \ \ _ `\/\ \/\ \ /'_` \ /'__`\
  6. \ \ \ \ \ \ \_\ \/\ \_\ \/\ __/
  7. \ \_\ \_\/`____ \ \___,_\ \____\
  8. \/_/\/_/`/___/> \/__,_ /\/____/
  9. /\___/
  10. \/__/
  11. Hyde is an elegant, open source, mobile first theme for Jekyll. It includes
  12. lightweight styles and placeholder content to get you up and running with a
  13. simple blog in no time.
  14. Designed, built, and released under MIT license by @mdo.
  15. Learn more at http://andhyde.com or https://github.com/mdo/hyde.
  16. */
  17. /*
  18. * Contents
  19. *
  20. * Body resets
  21. * Custom type
  22. * Links
  23. * Masthead
  24. * Container
  25. * Posts
  26. * Error page
  27. * Pagination
  28. * Themes
  29. */
  30. /*
  31. * Body resets
  32. *
  33. * Update the foundational and global aspects of the page.
  34. */
  35. * {
  36. -webkit-box-sizing: border-box;
  37. -moz-box-sizing: border-box;
  38. box-sizing: border-box;
  39. }
  40. html,
  41. body {
  42. margin: 0;
  43. padding: 0;
  44. }
  45. body {
  46. font-family: "Open Sans", Helvetica, Arial, sans-serif;
  47. font-size: 16px;
  48. line-height: 1.5;
  49. color: #454441;
  50. background-color: #fff;
  51. }
  52. @media (min-width: 990px) {
  53. body {
  54. font-size: 18px;
  55. }
  56. }
  57. h1, h2, h3, h4, h5, h6 {
  58. margin: 0 0 10px;
  59. font-weight: 600;
  60. line-height: 1.25;
  61. text-rendering: optimizeLegibility;
  62. }
  63. h1 {
  64. font-size: 40px;
  65. }
  66. h2 {
  67. margin-top: 20px;
  68. font-size: 32px;
  69. }
  70. h3 {
  71. margin-top: 24px;
  72. font-size: 24px;
  73. }
  74. h4, h5, h6 {
  75. margin-top: 16px;
  76. font-size: 16px;
  77. }
  78. p {
  79. margin: 0 0 15px;
  80. }
  81. ul, ol {
  82. margin-bottom: 15px;
  83. }
  84. hr {
  85. position: relative;
  86. margin: 40px 0;
  87. border: 0;
  88. border-top: 1px solid #eee;
  89. border-bottom: 1px solid #fff;
  90. }
  91. strong {
  92. color: #222;
  93. }
  94. abbr {
  95. background-color: #eee;
  96. display: inline-block;
  97. padding: 3px;
  98. font-size: 13px;
  99. font-weight: bold;
  100. color: #555;
  101. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  102. text-transform: uppercase;
  103. border-radius: 3px;
  104. }
  105. code,
  106. pre {
  107. font-family: Menlo, Monaco, "Courier New", monospace;
  108. }
  109. code {
  110. padding: .25em .5em;
  111. font-size: 85%;
  112. color: #bf616a;
  113. background-color: #f9f9f9;
  114. border-radius: 3px;
  115. }
  116. pre {
  117. display: block;
  118. margin: 0 0 14px;
  119. padding: 15px 20px;
  120. font-size: 16px;
  121. line-height: 1.4;
  122. white-space: pre;
  123. white-space: pre-wrap;
  124. word-break: break-all;
  125. word-wrap: break-word;
  126. background-color: #f9f9f9;
  127. }
  128. pre code {
  129. padding: 0;
  130. font-size: 100%;
  131. color: inherit;
  132. background-color: transparent;
  133. }
  134. .highlight {
  135. margin-bottom: 15px;
  136. border-radius: 4px;
  137. }
  138. .highlight pre {
  139. margin-bottom: 0;
  140. }
  141. /* Quotes */
  142. blockquote {
  143. padding: 5px 30px 5px 25px;
  144. margin: 15px 0;
  145. border-left: 5px solid #eee;
  146. }
  147. blockquote p {
  148. margin-bottom: 0;
  149. color: #7a7a7a;
  150. text-indent: -0.4em;
  151. }
  152. blockquote p:before {
  153. content: '\201C';
  154. }
  155. blockquote p:after {
  156. content: '\201D';
  157. }
  158. img {
  159. display: block;
  160. margin: 0 0 15px;
  161. border-radius: 5px;
  162. }
  163. /*
  164. * Custom type
  165. *
  166. * Extend paragraphs with `.lead` for larger introductory text.
  167. */
  168. .lead {
  169. font-size: 20px;
  170. font-weight: 300;
  171. }
  172. @media (min-width: 990px) {
  173. .lead {
  174. font-size: 24px;
  175. }
  176. }
  177. /*
  178. * Links
  179. *
  180. * No `:visited` state is required by default (browsers will use `a`). `:focus`
  181. * is linked to `:hover` for basic accessibility.
  182. */
  183. a {
  184. font-weight: 600;
  185. color: #222;
  186. text-decoration: none;
  187. }
  188. a:hover,
  189. a:focus {
  190. text-decoration: underline;
  191. }
  192. /*
  193. * Masthead
  194. *
  195. * Sidebar banner for housing site name, intro, and colophon (footer).
  196. */
  197. /* Sidebar masthead */
  198. .masthead {
  199. color: #fff;
  200. background-color: #2a2a2a;
  201. }
  202. .masthead-inner {
  203. padding: 20px;
  204. }
  205. /* Masthead content */
  206. .masthead h1 {
  207. margin-top: 0;
  208. font-family: "Abril Fatface";
  209. }
  210. .masthead .lead {
  211. margin-bottom: 0;
  212. }
  213. .masthead a {
  214. color: #fff;
  215. }
  216. /* Footer area of masthead */
  217. .colophon {
  218. margin-top: 20px;
  219. color: rgba(255,255,255,.5);
  220. }
  221. .colophon-links {
  222. padding-left: 0;
  223. list-style: none;
  224. }
  225. .colophon-links li {
  226. color: inherit;
  227. }
  228. /* Responsive masthead */
  229. @media (min-width: 768px) {
  230. .masthead-inner {
  231. padding: 40px;
  232. }
  233. }
  234. @media (min-width: 990px) {
  235. /* Fix the masthead to the side for impact and awesomeness */
  236. .masthead {
  237. position: fixed;
  238. top: 0;
  239. left: 0;
  240. bottom: 0;
  241. width: 25%;
  242. margin-bottom: 0;
  243. }
  244. .masthead-inner {
  245. position: absolute;
  246. bottom: 0;
  247. right: 0;
  248. left: 0;
  249. }
  250. .masthead h1 {
  251. font-size: 64px;
  252. }
  253. .colophon {
  254. margin-top: 40px;
  255. }
  256. }
  257. /* Container
  258. *
  259. * Align the contents of the site above the proper threshold with some margin-fu
  260. * with a 25%-wide `.masthead`.
  261. */
  262. .content {
  263. padding: 40px 20px;
  264. }
  265. /* Center container in available real estate */
  266. @media (min-width: 990px) {
  267. .content {
  268. padding: 60px 0;
  269. }
  270. .container {
  271. width: 55%;
  272. margin-left: 35%;
  273. margin-right: 10%;
  274. }
  275. }
  276. /*
  277. * Posts
  278. *
  279. * Each post is wrapped in `.post`. Used on default and post layouts.
  280. */
  281. /* Single post */
  282. .post {
  283. margin-bottom: 40px;
  284. }
  285. @media (min-width: 990px) {
  286. .post {
  287. margin-bottom: 60px;
  288. }
  289. }
  290. /* Meta data line below post title */
  291. .post-date {
  292. display: block;
  293. margin: -10px 0 10px;
  294. color: #9a9a9a;
  295. }
  296. /* Related posts */
  297. .related {
  298. padding-top: 20px;
  299. padding-bottom: 40px;
  300. border-top: 1px solid #eee;
  301. }
  302. .related-posts {
  303. padding-left: 0;
  304. list-style: none;
  305. }
  306. .related-posts h3 {
  307. margin-top: 0;
  308. }
  309. .related-posts li small {
  310. font-size: 75%;
  311. color: #999;
  312. }
  313. .related-posts li a:hover {
  314. color: #000;
  315. text-decoration: none;
  316. }
  317. .related-posts li a:hover small {
  318. color: inherit;
  319. }
  320. /*
  321. * Pagination
  322. *
  323. * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
  324. * there are no more previous or next posts to show.
  325. */
  326. .pagination {
  327. overflow: hidden; /* clearfix */
  328. margin-top: 40px;
  329. font-weight: bold;
  330. color: #ccc;
  331. text-align: center;
  332. border-top: 1px solid #eee;
  333. }
  334. /* Pagination should float when space is plentiful */
  335. @media (min-width: 990px) {
  336. .pagination {
  337. margin-bottom: 60px;
  338. border: 1px solid #eee;
  339. }
  340. }
  341. .pagination a,
  342. .pagination span {
  343. float: left;
  344. width: 50%;
  345. padding: 20px;
  346. }
  347. .pagination a:first-child,
  348. .pagination span:first-child {
  349. border-right: 1px solid #eee;
  350. }
  351. .pagination a:hover {
  352. text-decoration: none;
  353. background-color: #f5f5f5;
  354. }
  355. /*
  356. * Reverse layout
  357. *
  358. * Flip the orientation of the page by placing the `.masthead` on the right.
  359. */
  360. @media (min-width: 990px) {
  361. .layout-reverse .masthead {
  362. left: auto;
  363. right: 0;
  364. }
  365. .layout-reverse .container {
  366. margin-left: 10%;
  367. margin-right: 35%;
  368. }
  369. }
  370. /*
  371. * Themes
  372. *
  373. * As of v1.1, Hyde includes optional themes to color the sidebar and links
  374. * within blog posts. To use, add the class of your choosing to the `body`.
  375. */
  376. /* Base16 (http://chriskempson.github.io/base16/#default) */
  377. /* Red */
  378. .theme-base-08 .masthead {
  379. background-color: #ac4142;
  380. }
  381. .theme-base-08 .container a,
  382. .theme-base-08 .related-posts li a:hover {
  383. color: #ac4142;
  384. }
  385. /* Orange */
  386. .theme-base-09 .masthead {
  387. background-color: #d28445;
  388. }
  389. .theme-base-09 .container a,
  390. .theme-base-09 .related-posts li a:hover {
  391. color: #d28445;
  392. }
  393. /* Yellow */
  394. .theme-base-0a .masthead {
  395. background-color: #f4bf75;
  396. }
  397. .theme-base-0a .container a,
  398. .theme-base-0a .related-posts li a:hover {
  399. color: #f4bf75;
  400. }
  401. /* Green */
  402. .theme-base-0b .masthead {
  403. background-color: #90a959;
  404. }
  405. .theme-base-0b .container a,
  406. .theme-base-0b .related-posts li a:hover {
  407. color: #90a959;
  408. }
  409. /* Cyan */
  410. .theme-base-0c .masthead {
  411. background-color: #75b5aa;
  412. }
  413. .theme-base-0c .container a,
  414. .theme-base-0c .related-posts li a:hover {
  415. color: #75b5aa;
  416. }
  417. /* Blue */
  418. .theme-base-0d .masthead {
  419. background-color: #6a9fb5;
  420. }
  421. .theme-base-0d .container a,
  422. .theme-base-0d .related-posts li a:hover {
  423. color: #6a9fb5;
  424. }
  425. /* Magenta */
  426. .theme-base-0e .masthead {
  427. background-color: #aa759f;
  428. }
  429. .theme-base-0e .container a,
  430. .theme-base-0e .related-posts li a:hover {
  431. color: #aa759f;
  432. }
  433. /* Brown */
  434. .theme-base-0f .masthead {
  435. background-color: #8f5536;
  436. }
  437. .theme-base-0f .container a,
  438. .theme-base-0f .related-posts li a:hover {
  439. color: #8f5536;
  440. }