single.css 6.9 KB

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