hugo-academic.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  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: 40px;
  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. section#projects.home-section li {
  401. margin-bottom: 1rem;
  402. }
  403. section#projects.home-section li:last-of-type {
  404. margin-bottom: 0;
  405. }
  406. section#projects.home-section .project-title {
  407. display: inline-block;
  408. margin-bottom: 6px;
  409. }
  410. section#projects.home-section .project-summary {
  411. font-size: 0.9rem;
  412. }
  413. section#projects.home-section .project-tags {
  414. font-size: 0.75rem;
  415. color: #9c9c9c;
  416. }
  417. /*************************************************
  418. * Contact
  419. **************************************************/
  420. #contact li span {
  421. padding-left: 10px;
  422. }
  423. /*************************************************
  424. * Footer
  425. **************************************************/
  426. footer {
  427. margin: 4rem 0 0;
  428. padding: 2rem 0;
  429. width: 100%;
  430. }
  431. footer p {
  432. font-size: 0.75rem;
  433. text-align: center;
  434. }
  435. .site-footer,
  436. footer a#back_to_top i {
  437. color: #899596;
  438. }
  439. /*************************************************
  440. * Button Primary: Color Override
  441. **************************************************/
  442. .btn-primary {
  443. border-color: #0095eb;
  444. }
  445. .btn-primary:hover,
  446. .btn-primary:focus,
  447. .btn-primary:active,
  448. .btn-primary.active,
  449. .open > .dropdown-toggle.btn-primary {
  450. background: #0095eb;
  451. }
  452. /*************************************************
  453. * Button Outlines
  454. **************************************************/
  455. .btn-outline {
  456. background-color: transparent;
  457. color: inherit;
  458. transition: all .5s;
  459. }
  460. .btn-primary.btn-outline {
  461. color: #0095eb;
  462. border-color: #0095eb;
  463. }
  464. .btn-success.btn-outline {
  465. color: #5cb85c;
  466. }
  467. .btn-info.btn-outline {
  468. color: #5bc0de;
  469. }
  470. .btn-warning.btn-outline {
  471. color: #f0ad4e;
  472. }
  473. .btn-danger.btn-outline {
  474. color: #d9534f;
  475. }
  476. .btn-primary.btn-outline:hover,
  477. .btn-success.btn-outline:hover,
  478. .btn-info.btn-outline:hover,
  479. .btn-warning.btn-outline:hover,
  480. .btn-danger.btn-outline:hover {
  481. color: #fff;
  482. }
  483. /*************************************************
  484. * Navigation Bar
  485. **************************************************/
  486. .navbar {
  487. min-height: 70px !important;
  488. }
  489. .navbar-default {
  490. background: #fff;
  491. -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  492. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  493. }
  494. nav#navbar-main li {
  495. font-size: 16px;
  496. }
  497. .navbar-default .navbar-nav li a,
  498. .navbar-default .navbar-nav li a:visited {
  499. white-space: nowrap;
  500. -webkit-transition: 0.2s ease;
  501. transition: 0.2s ease;
  502. color: #565a5f;
  503. }
  504. .navbar-default .navbar-nav li a:hover {
  505. color: #0095eb;
  506. }
  507. .navbar-brand,
  508. .navbar-nav li a {
  509. height: inherit;
  510. line-height: 50px;
  511. padding-top: 10px;
  512. padding-bottom: 10px;
  513. }
  514. .navbar-default .navbar-brand {
  515. text-transform: uppercase;
  516. font-weight: bold;
  517. font-size: 1.2em;
  518. color: #2b2b2b;
  519. }
  520. @media screen and (max-width: 1200px) {
  521. .navbar {
  522. min-height: 50px !important;
  523. }
  524. .navbar-brand,
  525. .navbar-nav li a {
  526. height: inherit;
  527. line-height: 40px;
  528. padding-top: 5px;
  529. padding-bottom: 5px;
  530. }
  531. .navbar-header {
  532. float: none;
  533. min-height: inherit;
  534. }
  535. .navbar-left,
  536. .navbar-right {
  537. float: none !important;
  538. }
  539. .navbar-toggle {
  540. display: block;
  541. }
  542. .navbar-collapse {
  543. background-color: rgba(0,0,0,0.1);
  544. border-radius: 5px;
  545. margin-bottom: 5px;
  546. }
  547. .navbar-fixed-top {
  548. top: 0;
  549. border-width: 0 0 1px;
  550. }
  551. .navbar-collapse.collapse {
  552. display: none !important;
  553. }
  554. .navbar-nav {
  555. float: none !important;
  556. margin-top: 7.5px;
  557. }
  558. .navbar-nav > li {
  559. float: none;
  560. }
  561. .navbar-nav > li > a {
  562. padding-top: 10px;
  563. padding-bottom: 10px;
  564. line-height: normal;
  565. }
  566. .collapse.in {
  567. display: block !important;
  568. }
  569. }
  570. /*************************************************
  571. * Tables
  572. **************************************************/
  573. table {
  574. width: 100%;
  575. max-width: 100%;
  576. margin-bottom: 1rem;
  577. font-size: 0.93rem;
  578. }
  579. table > thead > tr > th,
  580. table > tbody > tr > th,
  581. table > tfoot > tr > th,
  582. table > thead > tr > td,
  583. table > tbody > tr > td,
  584. table > tfoot > tr > td {
  585. padding: 8px;
  586. line-height: 1.43;
  587. vertical-align: top;
  588. border-top: 1px solid #ddd;
  589. }
  590. table > thead > tr > th {
  591. vertical-align: bottom;
  592. border-bottom: 2px solid #ddd;
  593. }
  594. table > caption + thead > tr:first-child > th,
  595. table > colgroup + thead > tr:first-child > th,
  596. table > thead:first-child > tr:first-child > th,
  597. table > caption + thead > tr:first-child > td,
  598. table > colgroup + thead > tr:first-child > td,
  599. table > thead:first-child > tr:first-child > td {
  600. border-top: 0;
  601. }
  602. table > tbody + tbody {
  603. border-top: 2px solid #ddd;
  604. }
  605. table table {
  606. background-color: #fff;
  607. }
  608. /* Table Striped */
  609. table > tbody > tr:nth-child(odd) > td,
  610. table > tbody > tr:nth-child(odd) > th {
  611. background-color: #f9f9f9;
  612. }
  613. /* Table Hover */
  614. table > tbody > tr:hover > td,
  615. table > tbody > tr:hover > th {
  616. background-color: #e5e5e5;
  617. }