single.css 8.4 KB

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