hugo-academic.css 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. /*************************************************
  2. * Hugo Academic: an academic theme for Hugo.
  3. * https://github.com/gcushen/hugo-academic
  4. **************************************************/
  5. /*************************************************
  6. * Fonts
  7. **************************************************/
  8. @import url(//fonts.googleapis.com/css?family=Lato:400,700);
  9. @import url(//fonts.googleapis.com/css?family=Roboto+Mono);
  10. @import url(//fonts.googleapis.com/css?family=Merriweather);
  11. /*************************************************
  12. * Core
  13. **************************************************/
  14. html {
  15. box-sizing: border-box;
  16. }
  17. *, *::after, *::before {
  18. box-sizing: inherit;
  19. }
  20. .row:after, .row:before {
  21. content: " ";
  22. display: table;
  23. }
  24. html, body, p {
  25. font-family: 'Merriweather', serif;
  26. font-size: 16px;
  27. line-height: 1.65;
  28. min-height: 100%;
  29. }
  30. body {
  31. /* Offset body content by navbar height. */
  32. margin-top: 71px;
  33. padding-top: 0;
  34. }
  35. @media screen and (max-width: 768px) {
  36. body {
  37. /* Offset body content by navbar height. */
  38. margin-top: 51px;
  39. padding-top: 0;
  40. }
  41. }
  42. h1, h2, h3, h4, h5, h6, .navbar-default {
  43. font-family: 'Lato', sans-serif;
  44. font-weight: 400;
  45. line-height: 1.25;
  46. text-rendering: optimizeLegibility;
  47. }
  48. h1 {
  49. margin-bottom: 21px;
  50. font-size: 48px;
  51. }
  52. h3 {
  53. margin-bottom: 11px;
  54. font-weight: 700;
  55. }
  56. a, a:visited, h3.post-title a:hover {
  57. color: #0095eb;
  58. text-decoration:none;
  59. transition:color 0.6s ease;
  60. -webkit-transition:color 0.6s ease;
  61. }
  62. a:hover {
  63. color: #005181;
  64. }
  65. h3.post-title a {
  66. color: #151515;
  67. transition: color 0.6s ease;
  68. -webkit-transition: color 0.6s ease;
  69. }
  70. pre, code {
  71. font-family: 'Roboto Mono', 'Courier New', 'Courier', monospace;
  72. }
  73. .space-below {
  74. margin-bottom: 50px;
  75. }
  76. @media screen and (max-width: 768px) {
  77. .space-below {
  78. margin-bottom: 10px;
  79. }
  80. }
  81. /*************************************************
  82. * Footer
  83. **************************************************/
  84. footer {
  85. margin: 4rem 0 0;
  86. padding: 2rem 0;
  87. width: 100%;
  88. }
  89. footer p {
  90. font-size: 0.75rem;
  91. text-align: center;
  92. }
  93. .site-footer, footer a#back_to_top i {
  94. color: #899596;
  95. }
  96. /*************************************************
  97. * Home Sections
  98. **************************************************/
  99. .home-section {
  100. background-color: rgb(255, 255, 255);
  101. padding: 110px 0 110px 0;
  102. }
  103. @media screen and (max-width: 768px) {
  104. .home-section {
  105. padding: 60px 0 60px 0;
  106. }
  107. }
  108. .home-section:first-of-type {
  109. padding-top: 0;
  110. }
  111. .home-section:nth-of-type(even) {
  112. background-color: rgb(247, 247, 247);
  113. }
  114. /*************************************************
  115. * Blog Articles
  116. **************************************************/
  117. .article-metadata {
  118. margin-bottom: 20px;
  119. }
  120. .article-list-item {
  121. margin-bottom: 40px;
  122. }
  123. .article-list-item:last-child {
  124. margin-bottom: 0 !important;
  125. }
  126. .article-list-item .article-metadata {
  127. margin-bottom: 5px;
  128. }
  129. .article-metadata .article-date, .article-metadata .article-tags {
  130. margin-right: 10px;
  131. color: #888;
  132. }
  133. ul.share {
  134. list-style: none;
  135. float: right;
  136. }
  137. ul.share li {
  138. margin-right: 3px;
  139. margin-left: 3px;
  140. display: inline-block;
  141. }
  142. ul.share li:last-child {
  143. margin-right: 0px;
  144. }
  145. ul.share li i {
  146. font-size: 1.75rem;
  147. }
  148. #comments {
  149. padding: 20px;
  150. }
  151. /*************************************************
  152. * Publications
  153. **************************************************/
  154. #pub_list h3 {
  155. margin-top: 0;
  156. }
  157. .pub-icon {
  158. color: #03396c;
  159. font-size: 0.81em;
  160. padding-top: 6px;
  161. }
  162. .citation_authors {
  163. font-style: italic;
  164. }
  165. /*************************************************
  166. * Projects
  167. **************************************************/
  168. section#projects.home-section li {
  169. margin-bottom: 20px;
  170. }
  171. section#projects.home-section li:last-of-type {
  172. margin-bottom: 0;
  173. }
  174. section#projects.home-section .project-title {
  175. display: inline-block;
  176. margin-bottom: 6px;
  177. }
  178. section#projects.home-section .project-summary {
  179. font-size: 16px;
  180. margin-bottom: 6px;
  181. }
  182. section#projects.home-section .project-tags {
  183. font-size: 14px;
  184. color: #9c9c9c;
  185. }
  186. /*************************************************
  187. * Contact
  188. **************************************************/
  189. #contact li span {
  190. padding-left: 10px;
  191. }
  192. /*************************************************
  193. * Profile
  194. **************************************************/
  195. #profile {
  196. text-align: center;
  197. padding: 30px 10px;
  198. position: relative;
  199. }
  200. #profile .portrait {
  201. background-image: url('../img/portrait.jpg');
  202. width: 200px;
  203. height: 200px;
  204. margin: 0 auto;
  205. border-radius: 50%;
  206. background-size: cover;
  207. -webkit-background-size: cover;
  208. -moz-background-size: cover;
  209. }
  210. #profile .portrait-title h2 {
  211. font-size: 1.75em;
  212. font-weight: 300;
  213. color: #000000;
  214. margin: 20px 0 10px 0;
  215. }
  216. #profile .portrait-title h3 {
  217. font-size: 1.13em;
  218. font-weight: 300;
  219. color: #AAAAAA;
  220. margin: 0px 0 10px 0;
  221. }
  222. #profile .social-icon li {
  223. margin: 30px 5px 5px 5px;
  224. }
  225. .big-icon {
  226. font-size: 40px;
  227. }
  228. /*************************************************
  229. * Education
  230. **************************************************/
  231. ul.ul-edu {
  232. list-style: none;
  233. }
  234. ul.ul-edu li {
  235. position: relative;
  236. padding: 0px 15px 4px 3px;
  237. color: #333333;
  238. }
  239. ul.ul-edu li .description p {
  240. margin: 0;
  241. }
  242. ul.ul-edu li .description p.course {
  243. font-size: 1em;
  244. }
  245. ul.ul-edu li .description p.institution {
  246. font-size: 0.88em;
  247. }
  248. /*************************************************
  249. * Button Primary: Color Override
  250. **************************************************/
  251. .btn-primary {
  252. border-color: #0095eb;
  253. }
  254. .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
  255. background: #0095eb;
  256. }
  257. /*************************************************
  258. * Button Outlines
  259. **************************************************/
  260. .btn-outline {
  261. background-color: transparent;
  262. color: inherit;
  263. transition: all .5s;
  264. }
  265. .btn-primary.btn-outline {
  266. /*color: #428bca;*/
  267. color: #0095eb;
  268. }
  269. .btn-success.btn-outline {
  270. color: #5cb85c;
  271. }
  272. .btn-info.btn-outline {
  273. color: #5bc0de;
  274. }
  275. .btn-warning.btn-outline {
  276. color: #f0ad4e;
  277. }
  278. .btn-danger.btn-outline {
  279. color: #d9534f;
  280. }
  281. .btn-primary.btn-outline:hover,
  282. .btn-success.btn-outline:hover,
  283. .btn-info.btn-outline:hover,
  284. .btn-warning.btn-outline:hover,
  285. .btn-danger.btn-outline:hover {
  286. color: #fff;
  287. }
  288. /*************************************************
  289. * Navigation Bar
  290. **************************************************/
  291. .navbar {
  292. min-height:60px !important;
  293. }
  294. .navbar-default {
  295. background: #fff;
  296. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  297. box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  298. }
  299. nav#navbar-main li {
  300. font-size: 16px;
  301. }
  302. .navbar-default .navbar-nav li a, .navbar-default .navbar-nav li a:visited {
  303. white-space: nowrap;
  304. -webkit-transition: 0.2s ease;
  305. transition: 0.2s ease;
  306. color: #565a5f;
  307. }
  308. .navbar-default .navbar-nav li a:hover {
  309. color: #0095eb;
  310. }
  311. .navbar-brand, .navbar-nav li a {
  312. line-height: 60px;
  313. padding-top: 5px;
  314. padding-bottom: 5px;
  315. }
  316. .navbar-brand {
  317. text-transform: uppercase;
  318. font-weight: bold;
  319. font-size: 1.2em;
  320. color: #2b2b2b;
  321. }
  322. @media screen and (max-width: 768px) {
  323. .navbar {
  324. min-height: 50px !important;
  325. }
  326. .navbar-header {
  327. float: none;
  328. min-height: inherit;
  329. }
  330. .navbar-left,.navbar-right {
  331. float: none !important;
  332. }
  333. .navbar-toggle {
  334. display: block;
  335. }
  336. .navbar-collapse {
  337. border-top: 1px solid transparent;
  338. box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  339. }
  340. .navbar-fixed-top {
  341. top: 0;
  342. border-width: 0 0 1px;
  343. }
  344. .navbar-collapse.collapse {
  345. display: none!important;
  346. }
  347. .navbar-nav {
  348. float: none!important;
  349. margin-top: 7.5px;
  350. }
  351. .navbar-nav>li {
  352. float: none;
  353. }
  354. .navbar-nav>li>a {
  355. padding-top: 10px;
  356. padding-bottom: 10px;
  357. line-height: normal;
  358. }
  359. .collapse.in{
  360. display:block !important;
  361. }
  362. }
  363. /*************************************************
  364. * Tables
  365. **************************************************/
  366. table {
  367. width: 100%;
  368. max-width: 100%;
  369. margin-bottom: 1rem;
  370. font-size: 0.93rem;
  371. }
  372. table > thead > tr > th,
  373. table > tbody > tr > th,
  374. table > tfoot > tr > th,
  375. table > thead > tr > td,
  376. table > tbody > tr > td,
  377. table > tfoot > tr > td {
  378. padding: 8px;
  379. line-height: 1.43;
  380. vertical-align: top;
  381. border-top: 1px solid #ddd;
  382. }
  383. table > thead > tr > th {
  384. vertical-align: bottom;
  385. border-bottom: 2px solid #ddd;
  386. }
  387. table > caption + thead > tr:first-child > th,
  388. table > colgroup + thead > tr:first-child > th,
  389. table > thead:first-child > tr:first-child > th,
  390. table > caption + thead > tr:first-child > td,
  391. table > colgroup + thead > tr:first-child > td,
  392. table > thead:first-child > tr:first-child > td {
  393. border-top: 0;
  394. }
  395. table > tbody + tbody {
  396. border-top: 2px solid #ddd;
  397. }
  398. table table {
  399. background-color: #fff;
  400. }
  401. /* Table Striped */
  402. table > tbody > tr:nth-child(odd) > td,
  403. table > tbody > tr:nth-child(odd) > th {
  404. background-color: #f9f9f9;
  405. }
  406. /* Table Hover */
  407. table > tbody > tr:hover > td,
  408. table > tbody > tr:hover > th {
  409. background-color: #e5e5e5;
  410. }