single.css 7.8 KB

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