hugo-academic.css 12 KB

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