single.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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. list-style: none;
  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. -o-object-fit: cover;
  106. object-fit: cover;
  107. background-color: #f9fafc;
  108. padding: 5px;
  109. }
  110. .author-profile p {
  111. color: #8392a5;
  112. }
  113. .title {
  114. text-align: center;
  115. }
  116. .post-content {
  117. padding: 15px;
  118. }
  119. .post-content h1,
  120. h2 {
  121. margin-top: 1.4rem;
  122. }
  123. .post-content h3,
  124. h4,
  125. h5,
  126. h6 {
  127. margin-top: 1.3rem;
  128. }
  129. .post-content blockquote {
  130. border-left: 4px solid #248aaa;
  131. background-color: #248baa15;
  132. padding: 0.3rem;
  133. padding-left: 1rem;
  134. }
  135. .post-content blockquote > p {
  136. color: #3c4858;
  137. margin-top: 0.5rem;
  138. margin-bottom: 0.5rem;
  139. }
  140. table {
  141. border-radius: 0.1rem;
  142. background: #e5e9f2;
  143. border: 1px solid #c0ccda;
  144. padding: 0.1rem;
  145. }
  146. table tr {
  147. height: 40px !important;
  148. }
  149. table th,
  150. td {
  151. padding: 0.5rem;
  152. border-left: 1px solid #8392a5;
  153. border-bottom: 1px solid #8392a5;
  154. }
  155. table thead tr {
  156. background: #248aaa;
  157. color: #e5e9f2;
  158. }
  159. tbody tr:nth-child(odd) {
  160. background-color: #e5e9f2;
  161. }
  162. tbody tr:hover {
  163. background: #c0ccda;
  164. }
  165. figure {
  166. border: 1px solid #c0ccda;
  167. height: -webkit-fit-content;
  168. height: -moz-fit-content;
  169. height: fit-content;
  170. width: -webkit-fit-content;
  171. width: -moz-fit-content;
  172. width: fit-content;
  173. align-self: center;
  174. margin: auto;
  175. }
  176. img {
  177. max-width: 100%;
  178. }
  179. caption,
  180. figcaption {
  181. caption-side: bottom;
  182. text-align: center;
  183. color: #8392a5;
  184. }
  185. pre {
  186. margin: 5px;
  187. }
  188. pre > code {
  189. padding: 10px !important;
  190. }
  191. a.header-anchor {
  192. text-decoration: none;
  193. color: #1c2d41;
  194. }
  195. a.header-anchor i {
  196. font-size: 10pt;
  197. color: #3c4858;
  198. display: none;
  199. margin-left: 0.5rem;
  200. }
  201. a.header-anchor:hover i {
  202. display: inline-block;
  203. }
  204. a.header-anchor code {
  205. color: #e83e8c;
  206. }
  207. .navbar-toggler {
  208. display: none;
  209. }
  210. .content ul > ol,
  211. .content ol > ul,
  212. .content ul > ul,
  213. .content ol > ol,
  214. .content li > ol,
  215. .content li > ul {
  216. -webkit-padding-start: 1rem;
  217. padding-inline-start: 1rem;
  218. }
  219. kbd {
  220. background-color: #248aaa !important;
  221. color: #f9fafc;
  222. }
  223. mark {
  224. background-color: #ffc21280;
  225. }
  226. .next-prev-navigator {
  227. padding-left: 10px;
  228. padding-right: 10px;
  229. }
  230. .next-prev-navigator a {
  231. color: #2098d1;
  232. transition: all 0.3s ease-out;
  233. }
  234. .next-prev-navigator a:hover {
  235. color: #3c4858;
  236. 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. }
  244. .next-prev-navigator .previous-article a {
  245. transition: all 0.3s ease-out;
  246. }
  247. .next-prev-navigator .btn-outline-info {
  248. color: #f9fafc !important;
  249. border-color: #e5e9f2 !important;
  250. background-color: #248aaa !important;
  251. transition: all 0.3s ease-out;
  252. }
  253. .next-prev-navigator .btn-outline-info:hover {
  254. color: #3c4858 !important;
  255. background-color: #e5e9f2 !important;
  256. transition: all 0.3s ease-out;
  257. }
  258. .disquss {
  259. padding: 10px;
  260. }
  261. .btn-improve-page {
  262. text-align: right;
  263. }
  264. /* ============= Device specific fixes ======= */
  265. /* Large screens such as TV */
  266. @media only screen and (min-width: 1824px) {
  267. .content-section {
  268. flex: 65%;
  269. max-width: 65%;
  270. }
  271. .content-section .container {
  272. max-width: 100%;
  273. }
  274. }
  275. /* Extra large devices (large desktops, 1200px and up) */
  276. @media (max-width: 1400px) {
  277. }
  278. @media (max-width: 1200px) {
  279. }
  280. /* IPad Pro */
  281. @media (max-width: 1024px) {
  282. .wrapper {
  283. padding-left: 0px;
  284. padding-right: 0px;
  285. }
  286. .content-section {
  287. padding: 0;
  288. flex: 60%;
  289. max-width: 100%;
  290. order: 2;
  291. overflow: hidden;
  292. }
  293. .content {
  294. overflow: hidden;
  295. }
  296. .container {
  297. max-width: 100%;
  298. }
  299. .toc-section {
  300. order: 3;
  301. flex: 0%;
  302. max-width: 0%;
  303. transition: all ease-out 0.3s;
  304. }
  305. .toc-section.hide {
  306. flex: 40%;
  307. max-width: 40%;
  308. margin-left: 0.5rem;
  309. transition: all ease-out 0.3s;
  310. }
  311. .toc-holder {
  312. top: 3rem;
  313. max-height: calc(100vh - 3rem);
  314. }
  315. .navbar-toggler {
  316. display: block;
  317. }
  318. .navbar-collapse.lang-selector {
  319. display: none;
  320. }
  321. .hero-area {
  322. height: 300px;
  323. margin-top: 1rem;
  324. }
  325. .page-content {
  326. padding: 0px;
  327. }
  328. pre {
  329. margin: 0px;
  330. }
  331. code {
  332. padding: 0px;
  333. }
  334. .btn-improve-page {
  335. margin-right: 1rem;
  336. }
  337. #disqus_thread,
  338. .dsq-brlink {
  339. padding: 5px;
  340. }
  341. }
  342. /* Large devices (desktops, 992px and up) */
  343. @media (max-width: 992px) {
  344. }
  345. /* Medium devices (tablets, 768px and up) */
  346. @media only screen and (max-width: 768px) {
  347. }
  348. /* Small devices (landscape phones, 576px and up) */
  349. @media only screen and (max-width: 576px) {
  350. .wrapper {
  351. padding: 0px;
  352. display: flex;
  353. flex-direction: column;
  354. }
  355. .content-section {
  356. padding: 0;
  357. flex: 100%;
  358. max-width: 100%;
  359. order: 3;
  360. }
  361. .toc-section {
  362. order: 2;
  363. width: 100%;
  364. height: -webkit-fit-content;
  365. height: -moz-fit-content;
  366. height: fit-content;
  367. max-height: 0;
  368. max-width: 100%;
  369. transition: all ease-out 0.5s;
  370. }
  371. .toc-section.hide {
  372. margin-top: 2.5rem;
  373. position: relative;
  374. /* height: fit-content; */
  375. flex: 100%;
  376. height: -webkit-fit-content;
  377. height: -moz-fit-content;
  378. height: fit-content;
  379. max-height: 200vh;
  380. max-width: 100%;
  381. margin-left: 0;
  382. padding-right: 0;
  383. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  384. transition: all ease-out 0.5s;
  385. }
  386. .toc-holder {
  387. max-height: 0;
  388. margin-right: 0;
  389. overflow: hidden;
  390. transition: all ease-out 0.5s;
  391. }
  392. .toc-section.hide .toc-holder {
  393. max-height: 200vh;
  394. transition: all ease-out 0.5s;
  395. }
  396. .navbar-toggler {
  397. display: block;
  398. }
  399. .hero-area {
  400. height: 200px;
  401. margin-top: 1rem;
  402. }
  403. .page-content {
  404. padding: 0px;
  405. }
  406. pre {
  407. margin: 0px;
  408. }
  409. code {
  410. padding: 0px;
  411. }
  412. .next-prev-navigator .previous-article {
  413. text-align: center;
  414. margin: 5px;
  415. }
  416. .next-prev-navigator .next-article {
  417. text-align: center;
  418. margin: 5px;
  419. }
  420. .previous-article a,
  421. .next-article a {
  422. width: 100%;
  423. }
  424. #disqus_thread,
  425. .dsq-brlink {
  426. padding: 5px;
  427. }
  428. }
  429. /* iPhoneX, iPhone 6,7,8 */
  430. @media only screen and (max-width: 375px) {
  431. }
  432. /* Galaxy S5, Moto G4 */
  433. @media only screen and (max-width: 360px) {
  434. }
  435. /* iPhone 5 or before */
  436. @media only screen and (max-width: 320px) {
  437. }