single.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  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. .next-prev-navigator {
  142. padding-left: 10px;
  143. padding-right: 10px;
  144. }
  145. .next-prev-navigator a {
  146. color: #2098d1;
  147. transition: all 0.3s ease-out;
  148. }
  149. .next-prev-navigator a:hover {
  150. color: #3c4858;
  151. transition: all 0.3 ease-out;
  152. }
  153. .next-prev-navigator .next-article {
  154. text-align: right;
  155. }
  156. .next-prev-navigator .next-article a {
  157. transition: all 0.3s ease-out;
  158. }
  159. .next-prev-navigator .previous-article a {
  160. transition: all 0.3s ease-out;
  161. }
  162. .next-prev-navigator .btn-outline-info {
  163. color: #f9fafc !important;
  164. border-color: #e5e9f2 !important;
  165. background-color: #248aaa !important;
  166. transition: all 0.3s ease-out;
  167. }
  168. .next-prev-navigator .next-prev-text {
  169. white-space: break-spaces;
  170. }
  171. .next-prev-navigator .btn-outline-info:hover {
  172. color: #3c4858 !important;
  173. background-color: #e5e9f2 !important;
  174. transition: all 0.3s ease-out;
  175. }
  176. .disquss {
  177. padding: 10px;
  178. }
  179. .btn-improve-page {
  180. text-align: right;
  181. }
  182. .languageSelector {
  183. display: none;
  184. }
  185. #scroll-to-top {
  186. position: fixed;
  187. bottom: 0rem;
  188. right: 1rem;
  189. color: #248aaa;
  190. font-size: 24pt;
  191. z-index: 900000;
  192. visibility: hidden;
  193. }
  194. #scroll-to-top i {
  195. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  196. background-color: #f9f9f9;
  197. border-radius: 50%;
  198. }
  199. #scroll-to-top:hover {
  200. color: #2098d1;
  201. }
  202. #scroll-to-top.show {
  203. visibility: visible;
  204. }
  205. /* ============= Device specific fixes ======= */
  206. /* Large screens such as TV */
  207. @media only screen and (min-width: 1824px) {
  208. .content-section {
  209. flex: 65%;
  210. max-width: 65%;
  211. }
  212. .content-section .container {
  213. max-width: 100%;
  214. }
  215. }
  216. /* Extra large devices (large desktops, 1200px and up) */
  217. @media (max-width: 1400px) {
  218. }
  219. @media (max-width: 1200px) {
  220. }
  221. /* IPad Pro */
  222. @media (max-width: 1024px) {
  223. .wrapper {
  224. padding-left: 0px;
  225. padding-right: 0px;
  226. }
  227. .content-section {
  228. padding: 0;
  229. flex: 60%;
  230. max-width: 100%;
  231. order: 2;
  232. overflow: hidden;
  233. }
  234. .content {
  235. overflow: hidden;
  236. }
  237. .container {
  238. max-width: 100%;
  239. }
  240. .toc-section {
  241. order: 3;
  242. flex: 0%;
  243. max-width: 0%;
  244. transition: all ease-out 0.3s;
  245. }
  246. .toc-section.hide {
  247. flex: 40%;
  248. max-width: 40%;
  249. margin-left: 0.5rem;
  250. transition: all ease-out 0.3s;
  251. }
  252. .toc-holder {
  253. top: 3rem;
  254. max-height: calc(100vh - 3rem);
  255. }
  256. .navbar-toggler {
  257. display: block;
  258. }
  259. .navbar-collapse.lang-selector {
  260. display: none;
  261. }
  262. .languageSelector {
  263. display: block;
  264. }
  265. .hero-area {
  266. height: 300px;
  267. margin-top: 1rem;
  268. }
  269. .page-content {
  270. padding: 0px;
  271. }
  272. .btn-improve-page {
  273. margin-right: 1rem;
  274. }
  275. #disqus_thread,
  276. .dsq-brlink {
  277. padding: 5px;
  278. }
  279. }
  280. /* Large devices (desktops, 992px and up) */
  281. @media (max-width: 992px) {
  282. }
  283. /* Medium devices (tablets, 768px and up) */
  284. @media only screen and (max-width: 768px) {
  285. #scroll-to-top {
  286. right: 8rem;
  287. }
  288. }
  289. /* Small devices (landscape phones, 576px and up) */
  290. @media only screen and (max-width: 576px) {
  291. .wrapper {
  292. padding: 0px;
  293. display: flex;
  294. flex-direction: column;
  295. }
  296. .content-section {
  297. padding: 0;
  298. flex: 100%;
  299. max-width: 100%;
  300. order: 3;
  301. }
  302. .toc-section {
  303. order: 2;
  304. width: 100%;
  305. height: -webkit-fit-content;
  306. height: -moz-fit-content;
  307. height: fit-content;
  308. max-height: 0;
  309. max-width: 100%;
  310. transition: all ease-out 0.5s;
  311. }
  312. .toc-section.hide {
  313. margin-top: 2.5rem;
  314. position: relative;
  315. /* height: fit-content; */
  316. flex: 100%;
  317. height: -webkit-fit-content;
  318. height: -moz-fit-content;
  319. height: fit-content;
  320. max-height: 200vh;
  321. max-width: 100%;
  322. margin-left: 0;
  323. padding-right: 0;
  324. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  325. transition: all ease-out 0.5s;
  326. }
  327. .toc-holder {
  328. max-height: 0;
  329. margin-right: 0;
  330. overflow: hidden;
  331. transition: all ease-out 0.5s;
  332. }
  333. .toc-section.hide .toc-holder {
  334. max-height: 200vh;
  335. transition: all ease-out 0.5s;
  336. }
  337. .navbar-toggler {
  338. display: block;
  339. }
  340. .hero-area {
  341. height: 200px;
  342. margin-top: 1rem;
  343. }
  344. .page-content {
  345. padding: 0px;
  346. }
  347. .next-prev-navigator .previous-article {
  348. text-align: center;
  349. margin: 5px;
  350. }
  351. .next-prev-navigator .next-article {
  352. text-align: center;
  353. margin: 5px;
  354. }
  355. .previous-article a,
  356. .next-article a {
  357. width: 100%;
  358. }
  359. #disqus_thread,
  360. .dsq-brlink {
  361. padding: 5px;
  362. }
  363. }
  364. /* iPhoneX, iPhone 6,7,8 */
  365. @media only screen and (max-width: 375px) {
  366. }
  367. /* Galaxy S5, Moto G4 */
  368. @media only screen and (max-width: 360px) {
  369. }
  370. /* iPhone 5 or before */
  371. @media only screen and (max-width: 320px) {
  372. }