hugo-academic.css 8.9 KB

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