single.css 8.3 KB

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