hugo-academic.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. /*************************************************
  2. * Hugo Academic: an academic theme for Hugo.
  3. * https://github.com/gcushen/hugo-academic
  4. **************************************************/
  5. /*************************************************
  6. * Fonts
  7. **************************************************/
  8. @import url(//fonts.googleapis.com/css?family=Lato:400,700|Merriweather|Roboto+Mono);
  9. /*************************************************
  10. * Core
  11. **************************************************/
  12. html {
  13. box-sizing: border-box;
  14. }
  15. *, *::after, *::before {
  16. box-sizing: inherit;
  17. }
  18. .row:after, .row:before {
  19. content: " ";
  20. display: table;
  21. }
  22. html, body, p {
  23. font-family: 'Merriweather', serif;
  24. font-size: 16px;
  25. line-height: 1.65;
  26. min-height: 100%;
  27. }
  28. body {
  29. /* Offset body content by navbar height. */
  30. margin-top: 71px;
  31. padding-top: 0;
  32. }
  33. @media screen and (max-width: 768px) {
  34. body {
  35. /* Offset body content by navbar height. */
  36. margin-top: 51px;
  37. padding-top: 0;
  38. }
  39. }
  40. h1, h2, h3, h4, h5, h6, .navbar-default {
  41. font-family: 'Lato', sans-serif;
  42. font-weight: 400;
  43. line-height: 1.25;
  44. text-rendering: optimizeLegibility;
  45. }
  46. h1 {
  47. margin-bottom: 21px;
  48. font-size: 48px;
  49. }
  50. h3 {
  51. margin-bottom: 11px;
  52. font-weight: 700;
  53. }
  54. a, a:visited, h3.post-title a:hover {
  55. color: #0095eb;
  56. text-decoration:none;
  57. transition:color 0.6s ease;
  58. -webkit-transition:color 0.6s ease;
  59. }
  60. a:hover {
  61. color: #005181;
  62. }
  63. h3.post-title a {
  64. color: #151515;
  65. transition: color 0.6s ease;
  66. -webkit-transition: color 0.6s ease;
  67. }
  68. img, video {
  69. height: auto;
  70. max-width: 100%;
  71. display: block;
  72. }
  73. pre, code {
  74. font-family: 'Roboto Mono', 'Courier New', 'Courier', monospace;
  75. }
  76. pre {
  77. margin: 0 0 1.5rem;
  78. overflow: auto;
  79. }
  80. .space-below {
  81. margin-bottom: 50px;
  82. }
  83. @media screen and (max-width: 768px) {
  84. .space-below {
  85. margin-bottom: 10px;
  86. }
  87. }
  88. /*************************************************
  89. * Footer
  90. **************************************************/
  91. footer {
  92. margin: 4rem 0 0;
  93. padding: 2rem 0;
  94. width: 100%;
  95. }
  96. footer p {
  97. font-size: 0.75rem;
  98. text-align: center;
  99. }
  100. .site-footer, footer a#back_to_top i {
  101. color: #899596;
  102. }
  103. /*************************************************
  104. * Home Sections
  105. **************************************************/
  106. .home-section {
  107. background-color: rgb(255, 255, 255);
  108. padding: 110px 0 110px 0;
  109. }
  110. @media screen and (max-width: 768px) {
  111. .home-section {
  112. padding: 60px 0 60px 0;
  113. }
  114. }
  115. .home-section:first-of-type {
  116. padding-top: 0;
  117. }
  118. .home-section:nth-of-type(even) {
  119. background-color: rgb(247, 247, 247);
  120. }
  121. /*************************************************
  122. * Sharing
  123. **************************************************/
  124. .share-box {
  125. float: right;
  126. }
  127. ul.share {
  128. list-style: none;
  129. text-align: right;
  130. margin: 0;
  131. padding: 0;
  132. }
  133. ul.share li {
  134. display: inline-block;
  135. }
  136. ul.share li .fa {
  137. display: inline-block;
  138. width: 35px;
  139. height: 35px;
  140. line-height: 37px;
  141. font-size: 18px;
  142. text-align: center;
  143. transition: all 150ms ease-in-out;
  144. color: #fff;
  145. }
  146. ul.share li a {
  147. background-color: #b5c6ce;
  148. display: inline-block;
  149. border-radius: 50%;
  150. text-decoration: none !important;
  151. }
  152. ul.share li:hover .fa {
  153. -moz-transform: scale(1.4);
  154. -webkit-transform: scale(1.4);
  155. transform: scale(1.4)
  156. }
  157. /*************************************************
  158. * Blog Articles
  159. **************************************************/
  160. .article-metadata {
  161. margin-bottom: 20px;
  162. line-height: 37px; /* Match share bar line height. */
  163. font-size: 14px;
  164. }
  165. .article-list-item {
  166. margin-bottom: 40px;
  167. }
  168. .article-list-item:last-child {
  169. margin-bottom: 0 !important;
  170. }
  171. .article-list-item .article-metadata {
  172. margin-bottom: 5px;
  173. }
  174. .article-metadata .article-date, .article-metadata .article-tags {
  175. margin-right: 10px;
  176. color: #888;
  177. }
  178. .article-style img, .article-style video {
  179. box-shadow: 0 0 1px #edefed;
  180. -moz-box-shadow: 0 0 1px #edefed;
  181. -webkit-box-shadow: 0 0 1px #edefed;
  182. box-shadow: 1px 1px 0px #edefed,-1px -1px 0px #edefed,1px -1px 0px #edefed,-1px 1px 0px #edefed; */
  183. -moz-box-shadow: 1px 1px 0px #edefed,-1px -1px 0px #edefed,1px -1px 0px #edefed,-1px 1px 0px #edefed;
  184. -webkit-box-shadow: 1px 1px 0px #edefed,-1px -1px 0px #edefed,1px -1px 0px #edefed,-1px 1px 0px #edefed;
  185. margin-left: auto;
  186. margin-right: auto;
  187. margin-top: 60px;
  188. margin-bottom: 60px;
  189. padding-left: 0;
  190. padding-right: 0;
  191. }
  192. .article-style figure {
  193. margin-top: 60px;
  194. margin-bottom: 60px;
  195. }
  196. .article-style figure img {
  197. margin-top: 0;
  198. margin-bottom: 0;
  199. }
  200. #comments {
  201. padding: 20px;
  202. }
  203. /*************************************************
  204. * Publications
  205. **************************************************/
  206. #pub_list h3 {
  207. margin-top: 0;
  208. }
  209. .pub-icon {
  210. color: #03396c;
  211. font-size: 0.81em;
  212. padding-top: 6px;
  213. }
  214. .citation_authors {
  215. font-style: italic;
  216. }
  217. /*************************************************
  218. * Projects
  219. **************************************************/
  220. section#projects.home-section li {
  221. margin-bottom: 20px;
  222. }
  223. section#projects.home-section li:last-of-type {
  224. margin-bottom: 0;
  225. }
  226. section#projects.home-section .project-title {
  227. display: inline-block;
  228. margin-bottom: 6px;
  229. }
  230. section#projects.home-section .project-summary {
  231. font-size: 16px;
  232. margin-bottom: 6px;
  233. }
  234. section#projects.home-section .project-tags {
  235. font-size: 14px;
  236. color: #9c9c9c;
  237. }
  238. /*************************************************
  239. * Contact
  240. **************************************************/
  241. #contact li span {
  242. padding-left: 10px;
  243. }
  244. /*************************************************
  245. * Profile
  246. **************************************************/
  247. #profile {
  248. text-align: center;
  249. padding: 30px 10px;
  250. position: relative;
  251. }
  252. #profile .portrait {
  253. background-image: url('../img/portrait.jpg');
  254. width: 200px;
  255. height: 200px;
  256. margin: 0 auto;
  257. border-radius: 50%;
  258. background-size: cover;
  259. -webkit-background-size: cover;
  260. -moz-background-size: cover;
  261. }
  262. #profile .portrait-title h2 {
  263. font-size: 1.75em;
  264. font-weight: 300;
  265. color: #000000;
  266. margin: 20px 0 10px 0;
  267. }
  268. #profile .portrait-title h3 {
  269. font-size: 1.13em;
  270. font-weight: 300;
  271. color: #AAAAAA;
  272. margin: 0px 0 10px 0;
  273. }
  274. #profile .social-icon li {
  275. margin: 30px 5px 5px 5px;
  276. }
  277. .big-icon {
  278. font-size: 40px;
  279. }
  280. /*************************************************
  281. * Education
  282. **************************************************/
  283. ul.ul-edu {
  284. list-style: none;
  285. }
  286. ul.ul-edu li {
  287. position: relative;
  288. padding: 0px 15px 4px 3px;
  289. color: #333333;
  290. }
  291. ul.ul-edu li .description p {
  292. margin: 0;
  293. }
  294. ul.ul-edu li .description p.course {
  295. font-size: 1em;
  296. }
  297. ul.ul-edu li .description p.institution {
  298. font-size: 0.88em;
  299. }
  300. /*************************************************
  301. * Button Primary: Color Override
  302. **************************************************/
  303. .btn-primary {
  304. border-color: #0095eb;
  305. }
  306. .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
  307. background: #0095eb;
  308. }
  309. /*************************************************
  310. * Button Outlines
  311. **************************************************/
  312. .btn-outline {
  313. background-color: transparent;
  314. color: inherit;
  315. transition: all .5s;
  316. }
  317. .btn-primary.btn-outline {
  318. /*color: #428bca;*/
  319. color: #0095eb;
  320. }
  321. .btn-success.btn-outline {
  322. color: #5cb85c;
  323. }
  324. .btn-info.btn-outline {
  325. color: #5bc0de;
  326. }
  327. .btn-warning.btn-outline {
  328. color: #f0ad4e;
  329. }
  330. .btn-danger.btn-outline {
  331. color: #d9534f;
  332. }
  333. .btn-primary.btn-outline:hover,
  334. .btn-success.btn-outline:hover,
  335. .btn-info.btn-outline:hover,
  336. .btn-warning.btn-outline:hover,
  337. .btn-danger.btn-outline:hover {
  338. color: #fff;
  339. }
  340. /*************************************************
  341. * Navigation Bar
  342. **************************************************/
  343. .navbar {
  344. min-height:60px !important;
  345. }
  346. .navbar-default {
  347. background: #fff;
  348. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  349. box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  350. }
  351. nav#navbar-main li {
  352. font-size: 16px;
  353. }
  354. .navbar-default .navbar-nav li a, .navbar-default .navbar-nav li a:visited {
  355. white-space: nowrap;
  356. -webkit-transition: 0.2s ease;
  357. transition: 0.2s ease;
  358. color: #565a5f;
  359. }
  360. .navbar-default .navbar-nav li a:hover {
  361. color: #0095eb;
  362. }
  363. .navbar-brand, .navbar-nav li a {
  364. line-height: 60px;
  365. padding-top: 5px;
  366. padding-bottom: 5px;
  367. }
  368. .navbar-brand {
  369. text-transform: uppercase;
  370. font-weight: bold;
  371. font-size: 1.2em;
  372. color: #2b2b2b;
  373. }
  374. @media screen and (max-width: 768px) {
  375. .navbar {
  376. min-height: 50px !important;
  377. }
  378. .navbar-header {
  379. float: none;
  380. min-height: inherit;
  381. }
  382. .navbar-left,.navbar-right {
  383. float: none !important;
  384. }
  385. .navbar-toggle {
  386. display: block;
  387. }
  388. .navbar-collapse {
  389. border-top: 1px solid transparent;
  390. box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  391. }
  392. .navbar-fixed-top {
  393. top: 0;
  394. border-width: 0 0 1px;
  395. }
  396. .navbar-collapse.collapse {
  397. display: none!important;
  398. }
  399. .navbar-nav {
  400. float: none!important;
  401. margin-top: 7.5px;
  402. }
  403. .navbar-nav>li {
  404. float: none;
  405. }
  406. .navbar-nav>li>a {
  407. padding-top: 10px;
  408. padding-bottom: 10px;
  409. line-height: normal;
  410. }
  411. .collapse.in{
  412. display:block !important;
  413. }
  414. }
  415. /*************************************************
  416. * Tables
  417. **************************************************/
  418. table {
  419. width: 100%;
  420. max-width: 100%;
  421. margin-bottom: 1rem;
  422. font-size: 0.93rem;
  423. }
  424. table > thead > tr > th,
  425. table > tbody > tr > th,
  426. table > tfoot > tr > th,
  427. table > thead > tr > td,
  428. table > tbody > tr > td,
  429. table > tfoot > tr > td {
  430. padding: 8px;
  431. line-height: 1.43;
  432. vertical-align: top;
  433. border-top: 1px solid #ddd;
  434. }
  435. table > thead > tr > th {
  436. vertical-align: bottom;
  437. border-bottom: 2px solid #ddd;
  438. }
  439. table > caption + thead > tr:first-child > th,
  440. table > colgroup + thead > tr:first-child > th,
  441. table > thead:first-child > tr:first-child > th,
  442. table > caption + thead > tr:first-child > td,
  443. table > colgroup + thead > tr:first-child > td,
  444. table > thead:first-child > tr:first-child > td {
  445. border-top: 0;
  446. }
  447. table > tbody + tbody {
  448. border-top: 2px solid #ddd;
  449. }
  450. table table {
  451. background-color: #fff;
  452. }
  453. /* Table Striped */
  454. table > tbody > tr:nth-child(odd) > td,
  455. table > tbody > tr:nth-child(odd) > th {
  456. background-color: #f9f9f9;
  457. }
  458. /* Table Hover */
  459. table > tbody > tr:hover > td,
  460. table > tbody > tr:hover > th {
  461. background-color: #e5e5e5;
  462. }