single.css 8.5 KB

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