main.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  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: "Mulish";
  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. display: flex;
  139. justify-content: center;
  140. align-items: center;
  141. overflow: hidden;
  142. }
  143. .card-img-top {
  144. transition: all 0.3s ease-out !important;
  145. }
  146. .card:hover .card-head .card-img-top,
  147. .card:focus .card-head .card-img-top {
  148. transition: all 0.3s ease-out;
  149. transform: scale(1.2);
  150. }
  151. .card-body {
  152. text-align: justify;
  153. }
  154. .sub-title {
  155. color: #c0ccda;
  156. font-size: 10pt;
  157. }
  158. .flag-icon {
  159. width: 16px !important;
  160. margin-top: 3px;
  161. margin-right: 3px;
  162. }
  163. /* ====== table ====== */
  164. table {
  165. border-radius: 0.1rem;
  166. background: #e5e9f2;
  167. border: 1px solid #c0ccda;
  168. padding: 0.1rem;
  169. }
  170. table tr {
  171. height: 40px !important;
  172. }
  173. table th,
  174. td {
  175. padding: 0.5rem;
  176. border-left: 1px solid #8392a5;
  177. border-bottom: 1px solid #8392a5;
  178. }
  179. table thead tr {
  180. background: #248aaa;
  181. color: #e5e9f2;
  182. }
  183. tbody tr:nth-child(odd) {
  184. background-color: #e5e9f2;
  185. }
  186. tbody tr:hover {
  187. background: #c0ccda;
  188. }
  189. /* ====== don't apply css to tables inside gist ====== */
  190. .gist table {
  191. border-radius: unset;
  192. background: unset;
  193. border: unset;
  194. padding: unset;
  195. }
  196. .gist table tr {
  197. height: unset !important;
  198. }
  199. .gist table th,
  200. td {
  201. padding: unset;
  202. border-left: unset;
  203. border-bottom: unset;
  204. }
  205. .gist table thead tr {
  206. background: unset;
  207. color: unset;
  208. }
  209. .gist tbody tr:nth-child(odd) {
  210. background-color: unset;
  211. }
  212. .gist tbody tr:hover {
  213. background: unset;
  214. }
  215. .gist table td, .gist table tc{
  216. border-right: 1px solid #eee;
  217. }
  218. figure {
  219. border: 1px solid #c0ccda;
  220. height: -moz-fit-content;
  221. height: fit-content;
  222. width: -moz-fit-content;
  223. width: fit-content;
  224. align-self: center;
  225. margin: auto;
  226. }
  227. img {
  228. max-width: 100%;
  229. }
  230. caption,
  231. figcaption {
  232. caption-side: bottom;
  233. text-align: center;
  234. color: #8392a5;
  235. }
  236. pre {
  237. margin: 5px;
  238. }
  239. pre > code {
  240. padding: 10px !important;
  241. }
  242. a.header-anchor {
  243. text-decoration: none;
  244. color: #1c2d41;
  245. }
  246. a.header-anchor i, a.header-anchor svg {
  247. font-size: 10pt;
  248. color: #3c4858;
  249. display: none;
  250. margin-left: 0.5rem;
  251. }
  252. a.header-anchor:hover i, a.header-anchor:hover svg {
  253. display: inline-block;
  254. }
  255. a.header-anchor code {
  256. color: #e83e8c;
  257. }
  258. .content ul > ol,
  259. .content ol > ul,
  260. .content ul > ul,
  261. .content ol > ol,
  262. .content li > ol,
  263. .content li > ul {
  264. -webkit-padding-start: 1rem;
  265. padding-inline-start: 1rem;
  266. }
  267. kbd {
  268. background-color: #248aaa !important;
  269. color: #f9fafc;
  270. }
  271. mark {
  272. background-color: #ffc21280;
  273. }
  274. /* ======= Paginator ========= */
  275. .paginator {
  276. width: -moz-fit-content;
  277. width: fit-content;
  278. margin: auto;
  279. vertical-align: bottom;
  280. }
  281. .paginator .page-item > a {
  282. color: #248aaa;
  283. }
  284. .paginator .page-item.active > a {
  285. background-color: #248aaa;
  286. color: #f9fafc;
  287. }
  288. /* --- FOOTER START --- */
  289. .footer {
  290. color: #8392a5 !important;
  291. background-color: #1c2d41;
  292. position: relative;
  293. z-index: 9999;
  294. }
  295. .footer h5 {
  296. color: #c0ccda;
  297. }
  298. .footer a {
  299. color: #8392a5;
  300. transition: all 0.3s ease-out;
  301. }
  302. .footer a:hover {
  303. margin-left: 5px;
  304. transition: all 0.3s ease-out;
  305. }
  306. .footer ul {
  307. list-style: none;
  308. padding-left: 0;
  309. }
  310. .footer li {
  311. margin-top: 5px;
  312. }
  313. .footer hr {
  314. background-color: #8392a5;
  315. }
  316. .footer p:first-child {
  317. color: #c0ccda;
  318. }
  319. .footer input {
  320. background-color: #c0ccda;
  321. }
  322. .footer input:focus {
  323. background-color: #e5e9f2;
  324. }
  325. .footer #disclaimer{
  326. color: #8392a5 !important;
  327. text-align: justify;
  328. }
  329. .footer #disclaimer>strong{
  330. color: #c0ccda!important;
  331. }
  332. .footer #theme {
  333. color: #c0ccda;
  334. }
  335. .footer #theme img {
  336. width: 32px;
  337. }
  338. .footer #hugo:hover {
  339. margin-right: 5px;
  340. transition: all 0.3s ease-out;
  341. }
  342. /* --- FOOTER END ---- */
  343. /* ============= Device specific fixes ======= */
  344. /* Large screens such as TV */
  345. @media only screen and (min-width: 1824px) {
  346. }
  347. /* Extra large devices (large desktops, 1200px and up) */
  348. @media (max-width: 1400px) {
  349. }
  350. @media (max-width: 1200px) {
  351. }
  352. /* IPad Pro */
  353. @media (max-width: 1024px) {
  354. .content-section .languageSelector {
  355. position: fixed;
  356. right: 0.5rem;
  357. bottom: 1rem;
  358. z-index: 10000000;
  359. background-color: #f9fafc;
  360. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  361. }
  362. pre {
  363. margin: 0px;
  364. }
  365. code {
  366. padding: 0px;
  367. }
  368. }
  369. /* Large devices (desktops, 992px and up) */
  370. @media (max-width: 992px) {
  371. }
  372. /* Medium devices (tablets, 768px and up) */
  373. @media only screen and (max-width: 768px) {
  374. }
  375. /* Small devices (landscape phones, 576px and up) */
  376. @media only screen and (max-width: 576px) {
  377. .skills-section .container,
  378. .projects-section .container,
  379. .publications-section .container {
  380. padding-left: 0.3rem;
  381. padding-right: 0.3rem;
  382. }
  383. .section-holder {
  384. padding-left: 5px;
  385. padding-right: 5px;
  386. }
  387. .skills-section,
  388. .projects-section,
  389. .recent-posts-section,
  390. .achievements-section,
  391. .publications-section {
  392. padding-left: 0;
  393. padding-right: 0;
  394. }
  395. pre {
  396. margin: 0px;
  397. }
  398. code {
  399. padding: 0px;
  400. }
  401. h1 {
  402. font-size: 2.2rem;
  403. }
  404. }
  405. /* iPhoneX, iPhone 6,7,8 */
  406. @media only screen and (max-width: 375px) {
  407. h1 {
  408. font-size: 2rem;
  409. }
  410. }
  411. /* Galaxy S5, Moto G4 */
  412. @media only screen and (max-width: 360px) {
  413. h1 {
  414. font-size: 1.8rem;
  415. }
  416. }
  417. /* iPhone 5 or before */
  418. @media only screen and (max-width: 320px) {
  419. h1 {
  420. font-size: 1.5rem;
  421. }
  422. }