single.css 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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. /* 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: -webkit-fit-content;
  165. height: -moz-fit-content;
  166. height: fit-content;
  167. width: -webkit-fit-content;
  168. width: -moz-fit-content;
  169. width: fit-content;
  170. align-self: center;
  171. margin: auto;
  172. }
  173. img {
  174. max-width: 100%;
  175. }
  176. caption,
  177. figcaption {
  178. caption-side: bottom;
  179. text-align: center;
  180. color: #8392a5;
  181. }
  182. pre {
  183. margin: 5px;
  184. }
  185. pre > code {
  186. padding: 10px !important;
  187. }
  188. a.header-anchor {
  189. text-decoration: none;
  190. color: #1c2d41;
  191. }
  192. a.header-anchor i {
  193. font-size: 10pt;
  194. color: #3c4858;
  195. display: none;
  196. margin-left: 0.5rem;
  197. }
  198. a.header-anchor:hover i {
  199. display: inline-block;
  200. }
  201. a.header-anchor code {
  202. color: #e83e8c;
  203. }
  204. .navbar-toggler {
  205. display: none;
  206. }
  207. .content ul > ol,
  208. .content ol > ul,
  209. .content ul > ul,
  210. .content ol > ol,
  211. .content li > ol,
  212. .content li > ul {
  213. -webkit-padding-start: 1rem;
  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. }
  231. .next-prev-navigator a:hover {
  232. color: #3c4858;
  233. transition: all 0.3 ease-out;
  234. }
  235. .next-prev-navigator .next-article {
  236. text-align: right;
  237. }
  238. .next-prev-navigator .next-article a {
  239. transition: all 0.3s ease-out;
  240. }
  241. .next-prev-navigator .previous-article a {
  242. transition: all 0.3s ease-out;
  243. }
  244. .next-prev-navigator .btn-outline-info {
  245. color: #f9fafc !important;
  246. border-color: #e5e9f2 !important;
  247. background-color: #248aaa !important;
  248. transition: all 0.3s ease-out;
  249. }
  250. .next-prev-navigator .btn-outline-info:hover {
  251. color: #3c4858 !important;
  252. background-color: #e5e9f2 !important;
  253. transition: all 0.3s ease-out;
  254. }
  255. .disquss {
  256. padding: 10px;
  257. }
  258. .btn-improve-page {
  259. text-align: right;
  260. }
  261. /* ============= Device specific fixes ======= */
  262. /* Large screens such as TV */
  263. @media only screen and (min-width: 1824px) {
  264. .content-section {
  265. flex: 65%;
  266. max-width: 65%;
  267. }
  268. .content-section .container {
  269. max-width: 100%;
  270. }
  271. }
  272. /* Extra large devices (large desktops, 1200px and up) */
  273. @media (max-width: 1400px) {
  274. }
  275. @media (max-width: 1200px) {
  276. }
  277. /* IPad Pro */
  278. @media (max-width: 1024px) {
  279. .wrapper {
  280. padding-left: 0px;
  281. padding-right: 0px;
  282. }
  283. .content-section {
  284. padding: 0;
  285. flex: 60%;
  286. max-width: 100%;
  287. order: 2;
  288. overflow: hidden;
  289. }
  290. .content {
  291. overflow: hidden;
  292. }
  293. .container {
  294. max-width: 100%;
  295. }
  296. .toc-section {
  297. order: 3;
  298. flex: 0%;
  299. max-width: 0%;
  300. transition: all ease-out 0.3s;
  301. }
  302. .toc-section.hide {
  303. flex: 40%;
  304. max-width: 40%;
  305. margin-left: 0.5rem;
  306. transition: all ease-out 0.3s;
  307. }
  308. .toc-holder {
  309. top: 3rem;
  310. max-height: calc(100vh - 3rem);
  311. }
  312. .navbar-toggler {
  313. display: block;
  314. }
  315. .navbar-collapse.lang-selector {
  316. display: none;
  317. }
  318. .hero-area {
  319. height: 300px;
  320. margin-top: 1rem;
  321. }
  322. .page-content {
  323. padding: 0px;
  324. }
  325. pre {
  326. margin: 0px;
  327. }
  328. code {
  329. padding: 0px;
  330. }
  331. .btn-improve-page {
  332. margin-right: 1rem;
  333. }
  334. #disqus_thread,
  335. .dsq-brlink {
  336. padding: 5px;
  337. }
  338. }
  339. /* Large devices (desktops, 992px and up) */
  340. @media (max-width: 992px) {
  341. }
  342. /* Medium devices (tablets, 768px and up) */
  343. @media only screen and (max-width: 768px) {
  344. }
  345. /* Small devices (landscape phones, 576px and up) */
  346. @media only screen and (max-width: 576px) {
  347. .wrapper {
  348. padding: 0px;
  349. display: flex;
  350. flex-direction: column;
  351. }
  352. .content-section {
  353. padding: 0;
  354. flex: 100%;
  355. max-width: 100%;
  356. order: 3;
  357. }
  358. .toc-section {
  359. order: 2;
  360. width: 100%;
  361. height: -webkit-fit-content;
  362. height: -moz-fit-content;
  363. height: fit-content;
  364. max-height: 0;
  365. max-width: 100%;
  366. transition: all ease-out 0.5s;
  367. }
  368. .toc-section.hide {
  369. margin-top: 2.5rem;
  370. position: relative;
  371. /* height: fit-content; */
  372. flex: 100%;
  373. height: -webkit-fit-content;
  374. height: -moz-fit-content;
  375. height: fit-content;
  376. max-height: 200vh;
  377. max-width: 100%;
  378. margin-left: 0;
  379. padding-right: 0;
  380. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  381. transition: all ease-out 0.5s;
  382. }
  383. .toc-holder {
  384. max-height: 0;
  385. margin-right: 0;
  386. overflow: hidden;
  387. transition: all ease-out 0.5s;
  388. }
  389. .toc-section.hide .toc-holder {
  390. max-height: 200vh;
  391. transition: all ease-out 0.5s;
  392. }
  393. .navbar-toggler {
  394. display: block;
  395. }
  396. .hero-area {
  397. height: 200px;
  398. margin-top: 1rem;
  399. }
  400. .page-content {
  401. padding: 0px;
  402. }
  403. pre {
  404. margin: 0px;
  405. }
  406. code {
  407. padding: 0px;
  408. }
  409. .next-prev-navigator .previous-article {
  410. text-align: center;
  411. margin: 5px;
  412. }
  413. .next-prev-navigator .next-article {
  414. text-align: center;
  415. margin: 5px;
  416. }
  417. .previous-article a,
  418. .next-article a {
  419. width: 100%;
  420. }
  421. #disqus_thread,
  422. .dsq-brlink {
  423. padding: 5px;
  424. }
  425. }
  426. /* iPhoneX, iPhone 6,7,8 */
  427. @media only screen and (max-width: 375px) {
  428. }
  429. /* Galaxy S5, Moto G4 */
  430. @media only screen and (max-width: 360px) {
  431. }
  432. /* iPhone 5 or before */
  433. @media only screen and (max-width: 320px) {
  434. }