hugo-academic.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  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.post-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. h3.post-title a {
  74. color: #151515;
  75. transition: color 0.6s ease;
  76. }
  77. img,
  78. video {
  79. height: auto;
  80. max-width: 100%;
  81. display: block;
  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-metadata {
  258. margin-bottom: 20px;
  259. line-height: 30px; /* Match share bar line height. */
  260. font-size: 14px;
  261. letter-spacing: 0.03em;
  262. }
  263. .article-list-item {
  264. margin-bottom: 40px;
  265. }
  266. .article-list-item:last-child {
  267. margin-bottom: 0 !important;
  268. }
  269. .article-list-item .article-metadata {
  270. margin-bottom: 5px;
  271. }
  272. .article-metadata .article-date,
  273. .article-metadata .article-tags {
  274. margin-right: 10px;
  275. color: #888;
  276. }
  277. .article-style img,
  278. .article-style video {
  279. box-shadow: 1px 1px 0px #edefed,-1px -1px 0px #edefed,1px -1px 0px #edefed,-1px 1px 0px #edefed;
  280. margin-left: auto;
  281. margin-right: auto;
  282. margin-top: 60px;
  283. margin-bottom: 60px;
  284. padding-left: 0;
  285. padding-right: 0;
  286. }
  287. .article-style figure {
  288. margin-top: 60px;
  289. margin-bottom: 60px;
  290. }
  291. .article-style figure img {
  292. margin-top: 0;
  293. margin-bottom: 0;
  294. }
  295. #comments {
  296. padding: 20px;
  297. }
  298. /*************************************************
  299. * Publications
  300. **************************************************/
  301. #pub_list h3 {
  302. margin-top: 0;
  303. }
  304. .pub-icon {
  305. color: #03396c;
  306. font-size: 0.81em;
  307. padding-top: 6px;
  308. }
  309. .citation_authors {
  310. font-style: italic;
  311. }
  312. /*************************************************
  313. * Projects
  314. **************************************************/
  315. section#projects.home-section li {
  316. margin-bottom: 20px;
  317. }
  318. section#projects.home-section li:last-of-type {
  319. margin-bottom: 0;
  320. }
  321. section#projects.home-section .project-title {
  322. display: inline-block;
  323. margin-bottom: 6px;
  324. }
  325. section#projects.home-section .project-summary {
  326. font-size: 16px;
  327. margin-bottom: 6px;
  328. }
  329. section#projects.home-section .project-tags {
  330. font-size: 14px;
  331. color: #9c9c9c;
  332. }
  333. /*************************************************
  334. * Contact
  335. **************************************************/
  336. #contact li span {
  337. padding-left: 10px;
  338. }
  339. /*************************************************
  340. * Footer
  341. **************************************************/
  342. footer {
  343. margin: 4rem 0 0;
  344. padding: 2rem 0;
  345. width: 100%;
  346. }
  347. footer p {
  348. font-size: 0.75rem;
  349. text-align: center;
  350. }
  351. .site-footer,
  352. footer a#back_to_top i {
  353. color: #899596;
  354. }
  355. /*************************************************
  356. * Button Primary: Color Override
  357. **************************************************/
  358. .btn-primary {
  359. border-color: #0095eb;
  360. }
  361. .btn-primary:hover,
  362. .btn-primary:focus,
  363. .btn-primary:active,
  364. .btn-primary.active,
  365. .open > .dropdown-toggle.btn-primary {
  366. background: #0095eb;
  367. }
  368. /*************************************************
  369. * Button Outlines
  370. **************************************************/
  371. .btn-outline {
  372. background-color: transparent;
  373. color: inherit;
  374. transition: all .5s;
  375. }
  376. .btn-primary.btn-outline {
  377. /*color: #428bca;*/
  378. color: #0095eb;
  379. }
  380. .btn-success.btn-outline {
  381. color: #5cb85c;
  382. }
  383. .btn-info.btn-outline {
  384. color: #5bc0de;
  385. }
  386. .btn-warning.btn-outline {
  387. color: #f0ad4e;
  388. }
  389. .btn-danger.btn-outline {
  390. color: #d9534f;
  391. }
  392. .btn-primary.btn-outline:hover,
  393. .btn-success.btn-outline:hover,
  394. .btn-info.btn-outline:hover,
  395. .btn-warning.btn-outline:hover,
  396. .btn-danger.btn-outline:hover {
  397. color: #fff;
  398. }
  399. /*************************************************
  400. * Navigation Bar
  401. **************************************************/
  402. .navbar {
  403. min-height:60px !important;
  404. }
  405. .navbar-default {
  406. background: #fff;
  407. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  408. box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  409. }
  410. nav#navbar-main li {
  411. font-size: 16px;
  412. }
  413. .navbar-default .navbar-nav li a,
  414. .navbar-default .navbar-nav li a:visited {
  415. white-space: nowrap;
  416. -webkit-transition: 0.2s ease;
  417. transition: 0.2s ease;
  418. color: #565a5f;
  419. }
  420. .navbar-default .navbar-nav li a:hover {
  421. color: #0095eb;
  422. }
  423. .navbar-brand,
  424. .navbar-nav li a {
  425. line-height: 60px;
  426. padding-top: 5px;
  427. padding-bottom: 5px;
  428. }
  429. .navbar-brand {
  430. text-transform: uppercase;
  431. font-weight: bold;
  432. font-size: 1.2em;
  433. color: #2b2b2b;
  434. }
  435. @media screen and (max-width: 768px) {
  436. .navbar {
  437. min-height: 50px !important;
  438. }
  439. .navbar-header {
  440. float: none;
  441. min-height: inherit;
  442. }
  443. .navbar-left,
  444. .navbar-right {
  445. float: none !important;
  446. }
  447. .navbar-toggle {
  448. display: block;
  449. }
  450. .navbar-collapse {
  451. border-top: 1px solid transparent;
  452. box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  453. }
  454. .navbar-fixed-top {
  455. top: 0;
  456. border-width: 0 0 1px;
  457. }
  458. .navbar-collapse.collapse {
  459. display: none!important;
  460. }
  461. .navbar-nav {
  462. float: none!important;
  463. margin-top: 7.5px;
  464. }
  465. .navbar-nav>li {
  466. float: none;
  467. }
  468. .navbar-nav>li>a {
  469. padding-top: 10px;
  470. padding-bottom: 10px;
  471. line-height: normal;
  472. }
  473. .collapse.in{
  474. display:block !important;
  475. }
  476. }
  477. /*************************************************
  478. * Tables
  479. **************************************************/
  480. table {
  481. width: 100%;
  482. max-width: 100%;
  483. margin-bottom: 1rem;
  484. font-size: 0.93rem;
  485. }
  486. table > thead > tr > th,
  487. table > tbody > tr > th,
  488. table > tfoot > tr > th,
  489. table > thead > tr > td,
  490. table > tbody > tr > td,
  491. table > tfoot > tr > td {
  492. padding: 8px;
  493. line-height: 1.43;
  494. vertical-align: top;
  495. border-top: 1px solid #ddd;
  496. }
  497. table > thead > tr > th {
  498. vertical-align: bottom;
  499. border-bottom: 2px solid #ddd;
  500. }
  501. table > caption + thead > tr:first-child > th,
  502. table > colgroup + thead > tr:first-child > th,
  503. table > thead:first-child > tr:first-child > th,
  504. table > caption + thead > tr:first-child > td,
  505. table > colgroup + thead > tr:first-child > td,
  506. table > thead:first-child > tr:first-child > td {
  507. border-top: 0;
  508. }
  509. table > tbody + tbody {
  510. border-top: 2px solid #ddd;
  511. }
  512. table table {
  513. background-color: #fff;
  514. }
  515. /* Table Striped */
  516. table > tbody > tr:nth-child(odd) > td,
  517. table > tbody > tr:nth-child(odd) > th {
  518. background-color: #f9f9f9;
  519. }
  520. /* Table Hover */
  521. table > tbody > tr:hover > td,
  522. table > tbody > tr:hover > th {
  523. background-color: #e5e5e5;
  524. }