single.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  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. .taxonomy-terms {
  205. text-align: center;
  206. }
  207. .taxonomy-terms li {
  208. font-size: .8em;
  209. list-style-type: none;
  210. display: inline-block;
  211. background: #248aaa;
  212. }
  213. .taxonomy-terms a{
  214. color: #f9fafc;
  215. }
  216. /* ============= Device specific fixes ======= */
  217. /* Large screens such as TV */
  218. @media only screen and (min-width: 1824px) {
  219. .content-section {
  220. flex: 65%;
  221. max-width: 65%;
  222. }
  223. .content-section .container {
  224. max-width: 100%;
  225. }
  226. }
  227. /* Extra large devices (large desktops, 1200px and up) */
  228. @media (max-width: 1400px) {
  229. }
  230. @media (max-width: 1200px) {
  231. }
  232. /* IPad Pro */
  233. @media (max-width: 1024px) {
  234. .wrapper {
  235. padding-left: 0px;
  236. padding-right: 0px;
  237. }
  238. .content-section {
  239. padding: 0;
  240. flex: 60%;
  241. max-width: 100%;
  242. order: 2;
  243. overflow: hidden;
  244. }
  245. .content {
  246. overflow: hidden;
  247. }
  248. .container {
  249. max-width: 100%;
  250. }
  251. .toc-section {
  252. order: 3;
  253. flex: 0%;
  254. max-width: 0%;
  255. transition: all ease-out 0.3s;
  256. }
  257. .toc-section.hide {
  258. flex: 40%;
  259. max-width: 40%;
  260. margin-left: 0.5rem;
  261. transition: all ease-out 0.3s;
  262. }
  263. .toc-holder {
  264. top: 3rem;
  265. max-height: calc(100vh - 3rem);
  266. }
  267. .navbar-toggler {
  268. display: block;
  269. }
  270. .navbar-collapse.lang-selector {
  271. display: none;
  272. }
  273. .languageSelector {
  274. display: block;
  275. }
  276. .hero-area {
  277. height: 300px;
  278. margin-top: 1rem;
  279. }
  280. .page-content {
  281. padding: 0px;
  282. }
  283. .btn-improve-page {
  284. margin-right: 1rem;
  285. }
  286. #disqus_thread,
  287. .dsq-brlink {
  288. padding: 5px;
  289. }
  290. }
  291. /* Large devices (desktops, 992px and up) */
  292. @media (max-width: 992px) {
  293. }
  294. /* Medium devices (tablets, 768px and up) */
  295. @media only screen and (max-width: 768px) {
  296. #scroll-to-top {
  297. right: 8rem;
  298. }
  299. }
  300. /* Small devices (landscape phones, 576px and up) */
  301. @media only screen and (max-width: 576px) {
  302. .wrapper {
  303. padding: 0px;
  304. display: flex;
  305. flex-direction: column;
  306. }
  307. .content-section {
  308. padding: 0;
  309. flex: 100%;
  310. max-width: 100%;
  311. order: 3;
  312. }
  313. .toc-section {
  314. order: 2;
  315. width: 100%;
  316. height: -webkit-fit-content;
  317. height: -moz-fit-content;
  318. height: fit-content;
  319. max-height: 0;
  320. max-width: 100%;
  321. transition: all ease-out 0.5s;
  322. }
  323. .toc-section.hide {
  324. margin-top: 2.5rem;
  325. position: relative;
  326. /* height: fit-content; */
  327. flex: 100%;
  328. height: -webkit-fit-content;
  329. height: -moz-fit-content;
  330. height: fit-content;
  331. max-height: 200vh;
  332. max-width: 100%;
  333. margin-left: 0;
  334. padding-right: 0;
  335. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  336. transition: all ease-out 0.5s;
  337. }
  338. .toc-holder {
  339. max-height: 0;
  340. margin-right: 0;
  341. overflow: hidden;
  342. transition: all ease-out 0.5s;
  343. }
  344. .toc-section.hide .toc-holder {
  345. max-height: 200vh;
  346. transition: all ease-out 0.5s;
  347. }
  348. .navbar-toggler {
  349. display: block;
  350. }
  351. .hero-area {
  352. height: 200px;
  353. margin-top: 1rem;
  354. }
  355. .page-content {
  356. padding: 0px;
  357. }
  358. .next-prev-navigator .previous-article {
  359. text-align: center;
  360. margin: 5px;
  361. }
  362. .next-prev-navigator .next-article {
  363. text-align: center;
  364. margin: 5px;
  365. }
  366. .previous-article a,
  367. .next-article a {
  368. width: 100%;
  369. }
  370. #disqus_thread,
  371. .dsq-brlink {
  372. padding: 5px;
  373. }
  374. }
  375. /* iPhoneX, iPhone 6,7,8 */
  376. @media only screen and (max-width: 375px) {
  377. }
  378. /* Galaxy S5, Moto G4 */
  379. @media only screen and (max-width: 360px) {
  380. }
  381. /* iPhone 5 or before */
  382. @media only screen and (max-width: 320px) {
  383. }