hugo-academic.css 11 KB

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