main.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. /* ========= Colors ============
  2. Heading: #1C2D41
  3. Paragraph: #3C4858
  4. Iconography: #8392A5
  5. Secondary: #C0CCDA
  6. Dirty Snow: #E5E9F2
  7. Snow: #F9FAFC
  8. Magenta: #7551E9
  9. Orange: #FF7D51
  10. Pink: #ED63D2
  11. Green: #2DCA73
  12. Yellow: #FFC212
  13. */
  14. /*
  15. Removed smooth scrolling implementation in main.js in favor of
  16. simpler css approach.
  17. See: https://css-tricks.com/snippets/jquery/smooth-scrolling/
  18. */
  19. *, html {
  20. scroll-behavior: smooth !important;
  21. }
  22. /*
  23. Fixes anchor overlapping with header.
  24. See: https://stackoverflow.com/questions/4086107/fixed-page-header-overlaps-in-page-anchors
  25. */
  26. :target::before {
  27. content: "";
  28. display: block;
  29. height: 2em; /* fixed header height*/
  30. margin: -2em 0 0; /* negative fixed header height */
  31. }
  32. body {
  33. background-color: #f9fafc;
  34. font-family: "Muli";
  35. }
  36. h1,
  37. h2,
  38. h3,
  39. h4,
  40. h5 {
  41. color: #1c2d41;
  42. }
  43. strong {
  44. color: #1c2d41 !important;
  45. }
  46. p {
  47. color: #3c4858;
  48. }
  49. a {
  50. color: #248aaa;
  51. }
  52. a:hover {
  53. color: #207089;
  54. }
  55. .nav-button {
  56. background-color: transparent;
  57. border: 1px solid transparent;
  58. border-radius: 0.25rem;
  59. color: #8392a5;
  60. }
  61. .btn-dark {
  62. background-color: #3c4858!important;
  63. border-color: #3c4858!important;
  64. color: #e5e9f2!important;
  65. transition: all 0.3s ease-out!important;
  66. }
  67. .btn-dark:hover,
  68. .btn-dark:focus {
  69. background-color: #248aaa!important;
  70. border-color: #248aaa!important;
  71. transition: all 0.3s ease-out!important;
  72. }
  73. .btn-outline-info {
  74. color: #2098d1 !important;
  75. border-color: #2098d1 !important;
  76. }
  77. .btn-outline-info:hover {
  78. background-color: #2098d1 !important;
  79. color: #e5e9f2 !important;
  80. }
  81. .btn-info {
  82. background-color: #248aaa !important;
  83. color: #e5e9f2 !important;
  84. }
  85. .btn-info:hover {
  86. background-color: #2098d1 !important;
  87. color: #e5e9f2 !important;
  88. }
  89. .btn-link {
  90. color: #248aaa;
  91. }
  92. .btn-link:hover {
  93. color: #207089;
  94. }
  95. .bg-white {
  96. background-color: #f9fafc !important;
  97. }
  98. .bg-dimmed {
  99. background-color: #e5e9f2;
  100. }
  101. .anchor {
  102. padding-top: 3.5rem;
  103. }
  104. img.center {
  105. display: block;
  106. margin-left: auto;
  107. margin-right: auto;
  108. }
  109. img.left {
  110. display: block;
  111. margin-right: auto;
  112. }
  113. img.right {
  114. display: block;
  115. margin-left: auto;
  116. }
  117. .card {
  118. box-shadow: none;
  119. transition: all 0.3s ease-out;
  120. overflow: hidden;
  121. }
  122. .card-img-sm {
  123. width: 32px;
  124. height: 32px;
  125. }
  126. .card-img-xs {
  127. width: 24px;
  128. height: 24px;
  129. }
  130. .card:hover,
  131. .card:focus {
  132. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  133. border: 1px solid #fff;
  134. transition: all 0.3s ease-out;
  135. }
  136. .card .card-head {
  137. height: 172px;
  138. -o-object-fit: cover;
  139. object-fit: cover;
  140. overflow: hidden;
  141. }
  142. .card-img-top {
  143. transition: all 0.3s ease-out !important;
  144. }
  145. .card:hover .card-head .card-img-top,
  146. .card:focus .card-head .card-img-top {
  147. transition: all 0.3s ease-out;
  148. transform: scale(1.2);
  149. }
  150. .card-body {
  151. text-align: justify;
  152. }
  153. .sub-title {
  154. color: #c0ccda;
  155. font-size: 10pt;
  156. }
  157. .flag-icon {
  158. width: 16px !important;
  159. margin-top: 3px;
  160. margin-right: 3px;
  161. }
  162. /* ====== table ====== */
  163. table {
  164. border-radius: 0.1rem;
  165. background: #e5e9f2;
  166. border: 1px solid #c0ccda;
  167. padding: 0.1rem;
  168. }
  169. table tr {
  170. height: 40px !important;
  171. }
  172. table th,
  173. td {
  174. padding: 0.5rem;
  175. border-left: 1px solid #8392a5;
  176. border-bottom: 1px solid #8392a5;
  177. }
  178. table thead tr {
  179. background: #248aaa;
  180. color: #e5e9f2;
  181. }
  182. tbody tr:nth-child(odd) {
  183. background-color: #e5e9f2;
  184. }
  185. tbody tr:hover {
  186. background: #c0ccda;
  187. }
  188. /* ====== don't apply css to tables inside gist ====== */
  189. .gist table {
  190. border-radius: unset;
  191. background: unset;
  192. border: unset;
  193. padding: unset;
  194. }
  195. .gist table tr {
  196. height: unset !important;
  197. }
  198. .gist table th,
  199. td {
  200. padding: unset;
  201. border-left: unset;
  202. border-bottom: unset;
  203. }
  204. .gist table thead tr {
  205. background: unset;
  206. color: unset;
  207. }
  208. .gist tbody tr:nth-child(odd) {
  209. background-color: unset;
  210. }
  211. .gist tbody tr:hover {
  212. background: unset;
  213. }
  214. .gist table td, .gist table tc{
  215. border-right: 1px solid #eee;
  216. }
  217. figure {
  218. border: 1px solid #c0ccda;
  219. height: -moz-fit-content;
  220. height: fit-content;
  221. width: -moz-fit-content;
  222. width: fit-content;
  223. align-self: center;
  224. margin: auto;
  225. }
  226. img {
  227. max-width: 100%;
  228. }
  229. caption,
  230. figcaption {
  231. caption-side: bottom;
  232. text-align: center;
  233. color: #8392a5;
  234. }
  235. pre {
  236. margin: 5px;
  237. }
  238. pre > code {
  239. padding: 10px !important;
  240. }
  241. a.header-anchor {
  242. text-decoration: none;
  243. color: #1c2d41;
  244. }
  245. a.header-anchor i, a.header-anchor svg {
  246. font-size: 10pt;
  247. color: #3c4858;
  248. display: none;
  249. margin-left: 0.5rem;
  250. }
  251. a.header-anchor:hover i, a.header-anchor:hover svg {
  252. display: inline-block;
  253. }
  254. a.header-anchor code {
  255. color: #e83e8c;
  256. }
  257. .content ul > ol,
  258. .content ol > ul,
  259. .content ul > ul,
  260. .content ol > ol,
  261. .content li > ol,
  262. .content li > ul {
  263. -webkit-padding-start: 1rem;
  264. padding-inline-start: 1rem;
  265. }
  266. kbd {
  267. background-color: #248aaa !important;
  268. color: #f9fafc;
  269. }
  270. mark {
  271. background-color: #ffc21280;
  272. }
  273. /* ======= Paginator ========= */
  274. .paginator {
  275. width: -moz-fit-content;
  276. width: fit-content;
  277. margin: auto;
  278. vertical-align: bottom;
  279. }
  280. .paginator .page-item > a {
  281. color: #248aaa;
  282. }
  283. .paginator .page-item.active > a {
  284. background-color: #248aaa;
  285. color: #f9fafc;
  286. }
  287. /* --- FOOTER START --- */
  288. .footer {
  289. color: #8392a5 !important;
  290. background-color: #1c2d41;
  291. position: relative;
  292. z-index: 9999;
  293. }
  294. .footer h5 {
  295. color: #c0ccda;
  296. }
  297. .footer a {
  298. color: #8392a5;
  299. transition: all 0.3s ease-out;
  300. }
  301. .footer a:hover {
  302. margin-left: 5px;
  303. transition: all 0.3s ease-out;
  304. }
  305. .footer ul {
  306. list-style: none;
  307. padding-left: 0;
  308. }
  309. .footer li {
  310. margin-top: 5px;
  311. }
  312. .footer hr {
  313. background-color: #8392a5;
  314. }
  315. .footer p:first-child {
  316. color: #c0ccda;
  317. }
  318. .footer input {
  319. background-color: #c0ccda;
  320. }
  321. .footer input:focus {
  322. background-color: #e5e9f2;
  323. }
  324. .footer #disclaimer{
  325. color: #8392a5 !important;
  326. text-align: justify;
  327. }
  328. .footer #disclaimer>strong{
  329. color: #c0ccda!important;
  330. }
  331. .footer #theme {
  332. color: #c0ccda;
  333. }
  334. .footer #theme img {
  335. width: 32px;
  336. }
  337. .footer #hugo:hover {
  338. margin-right: 5px;
  339. transition: all 0.3s ease-out;
  340. }
  341. /* --- FOOTER END ---- */
  342. /* ============= Device specific fixes ======= */
  343. /* Large screens such as TV */
  344. @media only screen and (min-width: 1824px) {
  345. }
  346. /* Extra large devices (large desktops, 1200px and up) */
  347. @media (max-width: 1400px) {
  348. }
  349. @media (max-width: 1200px) {
  350. }
  351. /* IPad Pro */
  352. @media (max-width: 1024px) {
  353. .content-section .languageSelector {
  354. position: fixed;
  355. right: 0.5rem;
  356. bottom: 1rem;
  357. z-index: 10000000;
  358. background-color: #f9fafc;
  359. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  360. }
  361. pre {
  362. margin: 0px;
  363. }
  364. code {
  365. padding: 0px;
  366. }
  367. }
  368. /* Large devices (desktops, 992px and up) */
  369. @media (max-width: 992px) {
  370. }
  371. /* Medium devices (tablets, 768px and up) */
  372. @media only screen and (max-width: 768px) {
  373. }
  374. /* Small devices (landscape phones, 576px and up) */
  375. @media only screen and (max-width: 576px) {
  376. .skills-section .container,
  377. .projects-section .container,
  378. .publications-section .container {
  379. padding-left: 0.3rem;
  380. padding-right: 0.3rem;
  381. }
  382. .section-holder {
  383. padding-left: 5px;
  384. padding-right: 5px;
  385. }
  386. .skills-section,
  387. .projects-section,
  388. .recent-posts-section,
  389. .achievements-section,
  390. .publications-section {
  391. padding-left: 0;
  392. padding-right: 0;
  393. }
  394. pre {
  395. margin: 0px;
  396. }
  397. code {
  398. padding: 0px;
  399. }
  400. h1 {
  401. font-size: 2.2rem;
  402. }
  403. }
  404. /* iPhoneX, iPhone 6,7,8 */
  405. @media only screen and (max-width: 375px) {
  406. h1 {
  407. font-size: 2rem;
  408. }
  409. }
  410. /* Galaxy S5, Moto G4 */
  411. @media only screen and (max-width: 360px) {
  412. h1 {
  413. font-size: 1.8rem;
  414. }
  415. }
  416. /* iPhone 5 or before */
  417. @media only screen and (max-width: 320px) {
  418. h1 {
  419. font-size: 1.5rem;
  420. }
  421. }