hugo-academic.css 12 KB

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