single.css 9.1 KB

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