hugo-academic.css 13 KB

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