hugo-academic.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. /*************************************************
  2. * Hugo Academic: an academic theme for Hugo.
  3. * https://github.com/gcushen/hugo-academic
  4. **************************************************/
  5. /*************************************************
  6. * Core
  7. **************************************************/
  8. html {
  9. box-sizing: border-box;
  10. }
  11. *,
  12. *::after,
  13. *::before {
  14. box-sizing: inherit;
  15. }
  16. .row:after,
  17. .row:before {
  18. content: " ";
  19. display: table;
  20. }
  21. html,
  22. body,
  23. p {
  24. font-family: 'Merriweather', serif;
  25. font-size: 16px;
  26. line-height: 1.65;
  27. min-height: 100%;
  28. }
  29. body {
  30. /* Offset body content by navbar height. */
  31. margin-top: 71px;
  32. padding-top: 0;
  33. }
  34. @media screen and (max-width: 768px) {
  35. body {
  36. /* Offset body content by navbar height. */
  37. margin-top: 51px;
  38. padding-top: 0;
  39. }
  40. }
  41. h1,
  42. h2,
  43. h3,
  44. h4,
  45. h5,
  46. h6,
  47. .navbar-default {
  48. font-family: 'Lato', sans-serif;
  49. font-weight: 400;
  50. line-height: 1.25;
  51. text-rendering: optimizeLegibility;
  52. }
  53. h1 {
  54. margin-bottom: 21px;
  55. font-size: 48px;
  56. }
  57. h3 {
  58. margin-bottom: 11px;
  59. font-weight: 700;
  60. }
  61. h4 {
  62. font-weight: 700;
  63. }
  64. a,
  65. a:visited,
  66. h3.article-title a:hover {
  67. color: #0095eb;
  68. text-decoration: none;
  69. transition: color 0.6s ease;
  70. }
  71. a:hover {
  72. color: #005181;
  73. }
  74. img,
  75. video {
  76. height: auto;
  77. max-width: 100%;
  78. display: block;
  79. }
  80. body {
  81. counter-reset: captions;
  82. }
  83. figcaption:before {
  84. font-weight: 700;
  85. text-transform: uppercase;
  86. content: "Figure " counter(captions) ": ";
  87. }
  88. figcaption {
  89. display: block;
  90. margin-top: 0.75em;
  91. line-height: 1.25;
  92. font-size: 1rem;
  93. margin-bottom: 1.65rem;
  94. font-family: 'Lato', sans-serif;
  95. counter-increment: captions;
  96. }
  97. figcaption h4 {
  98. display: inline-block;
  99. font-size: 1rem;
  100. font-weight: 400;
  101. margin: 0;
  102. }
  103. pre,
  104. code {
  105. font-family: 'Roboto Mono', 'Courier New', 'Courier', monospace;
  106. }
  107. pre {
  108. margin: 0 0 1.5rem;
  109. overflow: auto;
  110. }
  111. .space-below {
  112. margin-bottom: 50px;
  113. }
  114. @media screen and (max-width: 768px) {
  115. .space-below {
  116. margin-bottom: 10px;
  117. }
  118. }
  119. /*************************************************
  120. * Home Sections
  121. **************************************************/
  122. .home-section {
  123. background-color: rgb(255, 255, 255);
  124. padding: 110px 0 110px 0;
  125. }
  126. @media screen and (max-width: 768px) {
  127. .home-section {
  128. padding: 60px 0 60px 0;
  129. }
  130. }
  131. .home-section:first-of-type {
  132. padding-top: 0;
  133. }
  134. .home-section:nth-of-type(even) {
  135. background-color: rgb(247, 247, 247);
  136. }
  137. .section-heading h1 {
  138. margin: 0 0 10px 0;
  139. }
  140. .section-heading p {
  141. font-family: 'Lato', sans-serif;
  142. font-weight: 400;
  143. font-size: 1.1rem;
  144. color: #b2b2b2;
  145. }
  146. /*************************************************
  147. * Biography
  148. **************************************************/
  149. #profile {
  150. text-align: center;
  151. padding: 30px 10px;
  152. position: relative;
  153. }
  154. #profile .portrait {
  155. background-image: url('../img/portrait.jpg');
  156. width: 200px;
  157. height: 200px;
  158. margin: 0 auto;
  159. border-radius: 50%;
  160. background-size: cover;
  161. -webkit-background-size: cover;
  162. -moz-background-size: cover;
  163. }
  164. #profile .portrait-title h2 {
  165. font-size: 1.75em;
  166. font-weight: 300;
  167. color: #000000;
  168. margin: 20px 0 10px 0;
  169. }
  170. #profile .portrait-title h3 {
  171. font-size: 1.13em;
  172. font-weight: 300;
  173. color: #AAAAAA;
  174. margin: 0px 0 10px 0;
  175. }
  176. #profile ul.social-icon {
  177. display: inline-flex;
  178. flex-direction: row;
  179. flex-wrap: wrap;
  180. list-style: none;
  181. padding: 0;
  182. margin-top: 30px;
  183. }
  184. #profile .social-icon li {
  185. margin-right: 10px;
  186. }
  187. #profile .social-icon li:last-of-type {
  188. margin-right: 0;
  189. }
  190. #profile .social-icon li:hover {
  191. transform: scale(1.2)
  192. }
  193. .big-icon {
  194. font-size: 40px;
  195. }
  196. ul.ul-edu {
  197. list-style: none;
  198. }
  199. ul.ul-edu li {
  200. position: relative;
  201. padding: 0px 15px 4px 3px;
  202. color: #333333;
  203. }
  204. ul.ul-edu li .description p {
  205. margin: 0;
  206. }
  207. ul.ul-edu li .description p.course {
  208. font-size: 1em;
  209. }
  210. ul.ul-edu li .description p.institution {
  211. font-size: 0.88em;
  212. }
  213. /*************************************************
  214. * Sharing
  215. **************************************************/
  216. .share-box {
  217. float: right;
  218. }
  219. ul.share {
  220. display: flex;
  221. flex-direction: row;
  222. flex-wrap: wrap;
  223. list-style: none;
  224. margin: 0;
  225. padding: 0;
  226. }
  227. ul.share li {
  228. display: inline-flex;
  229. margin-right: 5px;
  230. }
  231. ul.share li:last-of-type {
  232. margin-right: 0;
  233. }
  234. ul.share li .fa {
  235. display: block;
  236. width: 30px;
  237. height: 30px;
  238. line-height: 30px;
  239. font-size: 16px;
  240. text-align: center;
  241. transition: all 150ms ease-in-out;
  242. color: #fff;
  243. }
  244. ul.share li a {
  245. background-color: #b5c6ce;
  246. display: block;
  247. border-radius: 50%;
  248. text-decoration: none !important;
  249. margin: 0;
  250. }
  251. ul.share li:hover .fa {
  252. transform: scale(1.4)
  253. }
  254. /*************************************************
  255. * Blog Articles
  256. **************************************************/
  257. .article-title {
  258. font-size: 1.75rem;
  259. }
  260. .article-title a {
  261. color: #151515;
  262. transition: color 0.6s ease;
  263. }
  264. .article-metadata {
  265. margin-bottom: 20px;
  266. line-height: 30px; /* Match share bar line height. */
  267. font-size: 14px;
  268. letter-spacing: 0.03em;
  269. color: #888;
  270. }
  271. .article-metadata a {
  272. color: #888;
  273. }
  274. .article-metadata a:hover {
  275. color: #0095eb;
  276. }
  277. .article-list-item {
  278. margin-bottom: 40px;
  279. }
  280. .article-list-item:last-child {
  281. margin-bottom: 0 !important;
  282. }
  283. .article-list-item .article-metadata {
  284. margin-bottom: 5px;
  285. }
  286. .article-metadata .article-date,
  287. .article-metadata .article-tags {
  288. margin-right: 10px;
  289. }
  290. .article-banner {
  291. width: 100%;
  292. height: auto;
  293. }
  294. .article-style img,
  295. .article-style video {
  296. box-shadow: 1px 1px 0px #edefed, -1px -1px 0px #edefed, 1px -1px 0px #edefed, -1px 1px 0px #edefed;
  297. margin-left: auto;
  298. margin-right: auto;
  299. margin-top: 60px;
  300. margin-bottom: 60px;
  301. padding-left: 0;
  302. padding-right: 0;
  303. }
  304. .article-style figure {
  305. margin-top: 60px;
  306. margin-bottom: 60px;
  307. }
  308. .article-style figure img {
  309. margin-top: 0;
  310. margin-bottom: 0;
  311. }
  312. .article-style blockquote {
  313. padding: 1.857em;
  314. padding-bottom: 0;
  315. border-left: 3px solid #d9d9d9;
  316. border-bottom: 1px solid transparent;
  317. background: #f2f2f2;
  318. }
  319. #comments {
  320. padding: 20px;
  321. }
  322. /*************************************************
  323. * Publications
  324. **************************************************/
  325. .pub-icon {
  326. color: #03396c;
  327. font-size: 0.81em;
  328. padding-top: 6px;
  329. }
  330. .pub-banner {
  331. max-width: 100%;
  332. height: auto;
  333. margin-left: auto;
  334. margin-right: auto;
  335. }
  336. .pub .pub-title {
  337. margin-bottom: 5px;
  338. }
  339. .pub .pub-authors {
  340. font-style: italic;
  341. line-height: 30px; /* Match share bar line height. */
  342. }
  343. .pub .pub-row-heading {
  344. font-weight: bold;
  345. }
  346. .pub-list-item {
  347. margin-bottom: 40px;
  348. }
  349. .pub-list-item .pub-abstract {
  350. font-size: 1.13em;
  351. }
  352. .pub-list-item .pub-authors {
  353. line-height: normal;
  354. font-style: normal;
  355. font-size: 1.13em;
  356. color: #3170A5;
  357. }
  358. .pub-list-item .pub-publication {
  359. color: #090;
  360. font-size: 1em;
  361. }
  362. .pub-list-item .pub-links {
  363. padding-top: 10px;
  364. }
  365. /*************************************************
  366. * Projects
  367. **************************************************/
  368. section#projects.home-section li {
  369. margin-bottom: 20px;
  370. }
  371. section#projects.home-section li:last-of-type {
  372. margin-bottom: 0;
  373. }
  374. section#projects.home-section .project-title {
  375. display: inline-block;
  376. margin-bottom: 6px;
  377. }
  378. section#projects.home-section .project-summary {
  379. font-size: 16px;
  380. margin-bottom: 6px;
  381. }
  382. section#projects.home-section .project-tags {
  383. font-size: 14px;
  384. color: #9c9c9c;
  385. }
  386. /*************************************************
  387. * Contact
  388. **************************************************/
  389. #contact li span {
  390. padding-left: 10px;
  391. }
  392. /*************************************************
  393. * Footer
  394. **************************************************/
  395. footer {
  396. margin: 4rem 0 0;
  397. padding: 2rem 0;
  398. width: 100%;
  399. }
  400. footer p {
  401. font-size: 0.75rem;
  402. text-align: center;
  403. }
  404. .site-footer,
  405. footer a#back_to_top i {
  406. color: #899596;
  407. }
  408. /*************************************************
  409. * Button Primary: Color Override
  410. **************************************************/
  411. .btn-primary {
  412. border-color: #0095eb;
  413. }
  414. .btn-primary:hover,
  415. .btn-primary:focus,
  416. .btn-primary:active,
  417. .btn-primary.active,
  418. .open > .dropdown-toggle.btn-primary {
  419. background: #0095eb;
  420. }
  421. /*************************************************
  422. * Button Outlines
  423. **************************************************/
  424. .btn-outline {
  425. background-color: transparent;
  426. color: inherit;
  427. transition: all .5s;
  428. }
  429. .btn-primary.btn-outline {
  430. color: #0095eb;
  431. border-color: #0095eb;
  432. }
  433. .btn-success.btn-outline {
  434. color: #5cb85c;
  435. }
  436. .btn-info.btn-outline {
  437. color: #5bc0de;
  438. }
  439. .btn-warning.btn-outline {
  440. color: #f0ad4e;
  441. }
  442. .btn-danger.btn-outline {
  443. color: #d9534f;
  444. }
  445. .btn-primary.btn-outline:hover,
  446. .btn-success.btn-outline:hover,
  447. .btn-info.btn-outline:hover,
  448. .btn-warning.btn-outline:hover,
  449. .btn-danger.btn-outline:hover {
  450. color: #fff;
  451. }
  452. /*************************************************
  453. * Navigation Bar
  454. **************************************************/
  455. .navbar {
  456. min-height: 60px !important;
  457. }
  458. .navbar-default {
  459. background: #fff;
  460. -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  461. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  462. }
  463. nav#navbar-main li {
  464. font-size: 16px;
  465. }
  466. .navbar-default .navbar-nav li a,
  467. .navbar-default .navbar-nav li a:visited {
  468. white-space: nowrap;
  469. -webkit-transition: 0.2s ease;
  470. transition: 0.2s ease;
  471. color: #565a5f;
  472. }
  473. .navbar-default .navbar-nav li a:hover {
  474. color: #0095eb;
  475. }
  476. .navbar-brand,
  477. .navbar-nav li a {
  478. line-height: 60px;
  479. padding-top: 5px;
  480. padding-bottom: 5px;
  481. }
  482. .navbar-brand {
  483. text-transform: uppercase;
  484. font-weight: bold;
  485. font-size: 1.2em;
  486. color: #2b2b2b;
  487. }
  488. @media screen and (max-width: 768px) {
  489. .navbar {
  490. min-height: 50px !important;
  491. }
  492. .navbar-header {
  493. float: none;
  494. min-height: inherit;
  495. }
  496. .navbar-left,
  497. .navbar-right {
  498. float: none !important;
  499. }
  500. .navbar-toggle {
  501. display: block;
  502. }
  503. .navbar-collapse {
  504. border-top: 1px solid transparent;
  505. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  506. }
  507. .navbar-fixed-top {
  508. top: 0;
  509. border-width: 0 0 1px;
  510. }
  511. .navbar-collapse.collapse {
  512. display: none !important;
  513. }
  514. .navbar-nav {
  515. float: none !important;
  516. margin-top: 7.5px;
  517. }
  518. .navbar-nav > li {
  519. float: none;
  520. }
  521. .navbar-nav > li > a {
  522. padding-top: 10px;
  523. padding-bottom: 10px;
  524. line-height: normal;
  525. }
  526. .collapse.in {
  527. display: block !important;
  528. }
  529. }
  530. /*************************************************
  531. * Tables
  532. **************************************************/
  533. table {
  534. width: 100%;
  535. max-width: 100%;
  536. margin-bottom: 1rem;
  537. font-size: 0.93rem;
  538. }
  539. table > thead > tr > th,
  540. table > tbody > tr > th,
  541. table > tfoot > tr > th,
  542. table > thead > tr > td,
  543. table > tbody > tr > td,
  544. table > tfoot > tr > td {
  545. padding: 8px;
  546. line-height: 1.43;
  547. vertical-align: top;
  548. border-top: 1px solid #ddd;
  549. }
  550. table > thead > tr > th {
  551. vertical-align: bottom;
  552. border-bottom: 2px solid #ddd;
  553. }
  554. table > caption + thead > tr:first-child > th,
  555. table > colgroup + thead > tr:first-child > th,
  556. table > thead:first-child > tr:first-child > th,
  557. table > caption + thead > tr:first-child > td,
  558. table > colgroup + thead > tr:first-child > td,
  559. table > thead:first-child > tr:first-child > td {
  560. border-top: 0;
  561. }
  562. table > tbody + tbody {
  563. border-top: 2px solid #ddd;
  564. }
  565. table table {
  566. background-color: #fff;
  567. }
  568. /* Table Striped */
  569. table > tbody > tr:nth-child(odd) > td,
  570. table > tbody > tr:nth-child(odd) > th {
  571. background-color: #f9f9f9;
  572. }
  573. /* Table Hover */
  574. table > tbody > tr:hover > td,
  575. table > tbody > tr:hover > th {
  576. background-color: #e5e5e5;
  577. }