single.css 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. body {
  2. background-color: #e5e9f2;
  3. position: relative;
  4. }
  5. .read-area {
  6. background-color: #f9fafc;
  7. }
  8. .wrapper {
  9. display: flex;
  10. padding: 0;
  11. margin: 0;
  12. width: 100%;
  13. justify-content: space-between;
  14. position: relative;
  15. }
  16. .content-section {
  17. flex: 60%;
  18. order: 2;
  19. /* background-color: lightseagreen; */
  20. padding: 0;
  21. position: relative;
  22. padding-left: 1rem;
  23. padding-right: 1rem;
  24. }
  25. .content {
  26. background: #e5e9f2;
  27. }
  28. .toc-section {
  29. flex: 20%;
  30. order: 3;
  31. max-width: 20%;
  32. /* background-color: lightpink; */
  33. transition: all ease-out 0.5s;
  34. -webkit-transition: all ease-out 0.5s;
  35. }
  36. .toc-holder {
  37. position: sticky;
  38. top: 4.5rem;
  39. overflow-x: hidden;
  40. overflow-y: auto;
  41. background-color: #f9fafc;
  42. margin-right: 0.5rem;
  43. max-height: 100vh;
  44. /* box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16); */
  45. transition: all ease-out 0.3s;
  46. -webkit-transition: all ease-out 0.3s;
  47. }
  48. .toc {
  49. position: relative;
  50. padding-top: 0px;
  51. transition: all ease-out 0.3s;
  52. -webkit-transition: all ease-out 0.3s;
  53. }
  54. .toc nav {
  55. padding-top: 0px;
  56. margin-top: 0px;
  57. display: flex;
  58. flex-direction: column;
  59. align-items: flex-start;
  60. transition: all ease-out 0.3s;
  61. -webkit-transition: all ease-out 0.3s;
  62. }
  63. .toc ul {
  64. padding-left: 0.5rem;
  65. width: 100%;
  66. }
  67. .toc .nav-link {
  68. padding: 0;
  69. padding-left: 0.5rem;
  70. transition: all ease-out 0.3s;
  71. -webkit-transition: all ease-out 0.3s;
  72. color: #1c2d41;
  73. }
  74. .toc .nav-link:hover,
  75. .toc .nav-link:focus,
  76. .toc .nav-link.active {
  77. padding-left: 1rem;
  78. padding-right: 0.5rem;
  79. background-color: #248aaa;
  80. color: #f9f9f9;
  81. transition: all ease-out 0.3s;
  82. -webkit-transition: all ease-out 0.3s;
  83. }
  84. .hero-area {
  85. margin-top: 3rem;
  86. width: 100%;
  87. height: 400px;
  88. background-position: center;
  89. background-repeat: no-repeat;
  90. background-size: cover;
  91. }
  92. .page-content {
  93. width: 100%;
  94. position: relative;
  95. top: -4.5rem;
  96. padding: 15px;
  97. }
  98. .author-profile {
  99. position: relative;
  100. align-content: center;
  101. text-align: center;
  102. }
  103. .author-name {
  104. margin-top: 0px;
  105. }
  106. .author-profile img {
  107. height: 120px;
  108. width: 120px;
  109. background-color: #f9fafc;
  110. padding: 5px;
  111. }
  112. .author-profile p {
  113. color: #8392a5;
  114. }
  115. .title {
  116. text-align: center;
  117. }
  118. .post-content {
  119. padding: 15px;
  120. }
  121. .post-content h1,
  122. h2 {
  123. margin-top: 1.4rem;
  124. }
  125. .post-content h3,
  126. h4,
  127. h5,
  128. h6 {
  129. margin-top: 1.3rem;
  130. }
  131. .post-content blockquote {
  132. border-left: 4px solid #248aaa;
  133. background-color: #248baa15;
  134. padding: 0.3rem;
  135. padding-left: 1rem;
  136. }
  137. .post-content blockquote > p {
  138. color: #3c4858;
  139. margin-top: 0.5rem;
  140. margin-bottom: 0.5rem;
  141. }
  142. table {
  143. border-radius: 0.1rem;
  144. background: #e5e9f2;
  145. border: 1px solid #c0ccda;
  146. padding: 0.1rem;
  147. }
  148. table tr {
  149. height: 40px !important;
  150. }
  151. table th,
  152. td {
  153. padding: 0.5rem;
  154. border-left: 1px solid #8392a5;
  155. border-bottom: 1px solid #8392a5;
  156. }
  157. table thead tr {
  158. background: #248aaa;
  159. color: #e5e9f2;
  160. }
  161. tbody tr:nth-child(odd) {
  162. background-color: #e5e9f2;
  163. }
  164. tbody tr:hover {
  165. background: #c0ccda;
  166. }
  167. figure {
  168. border: 1px solid #c0ccda;
  169. height: fit-content;
  170. width: fit-content;
  171. align-self: center;
  172. margin: auto;
  173. }
  174. img {
  175. max-width: 100%;
  176. }
  177. caption,
  178. figcaption {
  179. caption-side: bottom;
  180. text-align: center;
  181. color: #8392a5;
  182. }
  183. pre {
  184. margin: 5px;
  185. }
  186. pre > code {
  187. padding: 10px !important;
  188. }
  189. a.header-anchor {
  190. text-decoration: none;
  191. color: #1c2d41;
  192. }
  193. a.header-anchor i {
  194. font-size: 10pt;
  195. color: #3c4858;
  196. display: none;
  197. margin-left: 0.5rem;
  198. }
  199. a.header-anchor:hover i {
  200. display: inline-block;
  201. }
  202. a.header-anchor code {
  203. color: #e83e8c;
  204. }
  205. .navbar-toggler {
  206. display: none;
  207. }
  208. .content ul > ol,
  209. .content ol > ul,
  210. .content ul > ul,
  211. .content ol > ol,
  212. .content li > ol,
  213. .content li > ul {
  214. padding-inline-start: 1rem;
  215. }
  216. kbd {
  217. background-color: #248aaa !important;
  218. color: #f9fafc;
  219. }
  220. mark {
  221. background-color: #ffc21280;
  222. }
  223. .next-prev-navigator {
  224. padding-left: 10px;
  225. padding-right: 10px;
  226. }
  227. .next-prev-navigator a {
  228. color: #2098d1;
  229. transition: all 0.3s ease-out;
  230. -webkit-transition: all 0.3s ease-out;
  231. }
  232. .next-prev-navigator a:hover {
  233. color: #3c4858;
  234. transition: all 0.3 ease-out;
  235. -webkit-transition: all 0.3 ease-out;
  236. }
  237. .next-prev-navigator .next-article {
  238. text-align: right;
  239. }
  240. .next-prev-navigator .next-article a {
  241. transition: all 0.3s ease-out;
  242. -webkit-transition: all 0.3s ease-out;
  243. }
  244. .next-prev-navigator .previous-article a {
  245. transition: all 0.3s ease-out;
  246. -webkit-transition: all 0.3s ease-out;
  247. }
  248. .next-prev-navigator .btn-outline-info {
  249. color: #f9fafc !important;
  250. border-color: #e5e9f2 !important;
  251. background-color: #248aaa !important;
  252. transition: all 0.3s ease-out;
  253. -webkit-transition: all 0.3s ease-out;
  254. }
  255. .next-prev-navigator .btn-outline-info:hover {
  256. color: #3c4858 !important;
  257. background-color: #e5e9f2 !important;
  258. transition: all 0.3s ease-out;
  259. -webkit-transition: all 0.3s ease-out;
  260. }
  261. .disquss {
  262. padding: 10px;
  263. }
  264. .btn-improve-page {
  265. text-align: right;
  266. }
  267. /* ============= Device specific fixes ======= */
  268. /* Large screens such as TV */
  269. @media only screen and (min-width: 1824px) {
  270. .content-section {
  271. flex: 65%;
  272. }
  273. .content-section .container {
  274. max-width: 100%;
  275. }
  276. }
  277. /* Extra large devices (large desktops, 1200px and up) */
  278. @media (max-width: 1400px) {
  279. }
  280. @media (max-width: 1200px) {
  281. }
  282. /* IPad Pro */
  283. @media (max-width: 1024px) {
  284. .wrapper {
  285. padding-left: 0px;
  286. padding-right: 0px;
  287. }
  288. .content-section {
  289. padding: 0;
  290. flex: 60%;
  291. order: 2;
  292. overflow: hidden;
  293. }
  294. .content {
  295. overflow: hidden;
  296. }
  297. .container {
  298. max-width: 100%;
  299. }
  300. .toc-section {
  301. order: 3;
  302. flex: 0%;
  303. max-width: 0%;
  304. transition: all ease-out 0.3s;
  305. -webkit-transition: all ease-out 0.3s;
  306. }
  307. .toc-section.hide {
  308. flex: 40%;
  309. max-width: 40%;
  310. margin-left: 0.5rem;
  311. transition: all ease-out 0.3s;
  312. -webkit-transition: all ease-out 0.3s;
  313. }
  314. .toc-holder {
  315. top: 3rem;
  316. }
  317. .navbar-toggler {
  318. display: block;
  319. }
  320. .hero-area {
  321. height: 300px;
  322. margin-top: 1rem;
  323. }
  324. .page-content {
  325. padding: 0px;
  326. }
  327. pre {
  328. margin: 0px;
  329. }
  330. code {
  331. padding: 0px;
  332. }
  333. .btn-improve-page {
  334. margin-right: 1rem;
  335. }
  336. #disqus_thread,
  337. .dsq-brlink {
  338. padding: 5px;
  339. }
  340. }
  341. /* Large devices (desktops, 992px and up) */
  342. @media (max-width: 992px) {
  343. }
  344. /* Medium devices (tablets, 768px and up) */
  345. @media only screen and (max-width: 768px) {
  346. .wrapper {
  347. padding-left: 0px;
  348. padding-right: 0px;
  349. }
  350. .content-section {
  351. padding: 0;
  352. flex: 60%;
  353. order: 2;
  354. overflow: hidden;
  355. }
  356. .content {
  357. overflow: hidden;
  358. }
  359. .container {
  360. max-width: 100%;
  361. }
  362. .toc-section {
  363. order: 3;
  364. flex: 0%;
  365. max-width: 0%;
  366. transition: all ease-out 0.3s;
  367. -webkit-transition: all ease-out 0.3s;
  368. }
  369. .toc-section.hide {
  370. flex: 40%;
  371. max-width: 40%;
  372. margin-left: 0.5rem;
  373. transition: all ease-out 0.3s;
  374. -webkit-transition: all ease-out 0.3s;
  375. }
  376. .toc-holder {
  377. top: 3rem;
  378. }
  379. .navbar-toggler {
  380. display: block;
  381. }
  382. .hero-area {
  383. height: 300px;
  384. margin-top: 1rem;
  385. }
  386. .page-content {
  387. padding: 0px;
  388. }
  389. pre {
  390. margin: 0px;
  391. }
  392. code {
  393. padding: 0px;
  394. }
  395. .btn-improve-page {
  396. margin-right: 1rem;
  397. }
  398. #disqus_thread,
  399. .dsq-brlink {
  400. padding: 5px;
  401. }
  402. }
  403. /* Small devices (landscape phones, 576px and up) */
  404. @media only screen and (max-width: 576px) {
  405. .wrapper {
  406. padding: 0px;
  407. display: flex;
  408. flex-direction: column;
  409. }
  410. .content-section {
  411. padding: 0;
  412. flex: 100%;
  413. order: 3;
  414. }
  415. .toc-section {
  416. order: 2;
  417. width: 100%;
  418. height: 0;
  419. max-height: 0;
  420. max-width: 100%;
  421. transition: all ease-out 0.5s;
  422. -webkit-transition: all ease-out 0.5s;
  423. }
  424. .toc-section.hide {
  425. margin-top: 2.5rem;
  426. position: relative;
  427. /* height: fit-content; */
  428. flex: 100%;
  429. height: fit-content;
  430. max-height: 200vh;
  431. max-width: 100%;
  432. margin-left: 0;
  433. padding-right: 0;
  434. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  435. transition: all ease-out 0.5s;
  436. -webkit-transition: all ease-out 0.5s;
  437. }
  438. .toc-holder {
  439. max-height: 0;
  440. margin-right: 0;
  441. overflow: hidden;
  442. transition: all ease-out 0.5s;
  443. -webkit-transition: all ease-out 0.5s;
  444. }
  445. .toc-section.hide .toc-holder {
  446. max-height: 200vh;
  447. transition: all ease-out 0.5s;
  448. -webkit-transition: all ease-out 0.5s;
  449. }
  450. .navbar-toggler {
  451. display: block;
  452. }
  453. .hero-area {
  454. height: 200px;
  455. margin-top: 1rem;
  456. }
  457. .hero-area.hide {
  458. margin-top: 1rem;
  459. }
  460. .page-content {
  461. padding: 0px;
  462. }
  463. pre {
  464. margin: 0px;
  465. }
  466. code {
  467. padding: 0px;
  468. }
  469. .next-prev-navigator .previous-article {
  470. text-align: center;
  471. margin: 5px;
  472. }
  473. .next-prev-navigator .next-article {
  474. text-align: center;
  475. margin: 5px;
  476. }
  477. .previous-article a,
  478. .next-article a {
  479. width: 100%;
  480. }
  481. #disqus_thread,
  482. .dsq-brlink {
  483. padding: 5px;
  484. }
  485. }
  486. /* iPhoneX, iPhone 6,7,8 */
  487. @media only screen and (max-width: 375px) {
  488. }
  489. /* Galaxy S5, Moto G4 */
  490. @media only screen and (max-width: 360px) {
  491. }
  492. /* iPhone 5 or before */
  493. @media only screen and (max-width: 320px) {
  494. }