main.css 7.0 KB

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