single.css 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  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. .share-buttons .btn {
  180. color: #e5e9f2 !important;
  181. transition: all 0.3s ease-out !important;
  182. }
  183. .share-buttons .btn:hover,
  184. .share-buttons .btn:focus {
  185. background-color: #248aaa !important;
  186. border-color: #248aaa !important;
  187. transition: all 0.3s ease-out !important;
  188. }
  189. .share-buttons .facebook-btn {
  190. background-color: #4267b2 !important;
  191. border-color: #4267b2 !important;
  192. }
  193. .share-buttons .twitter-btn {
  194. background-color: #1da1f2 !important;
  195. border-color: #1da1f2 !important;
  196. }
  197. .share-buttons .reddit-btn {
  198. background-color: #ff4500 !important;
  199. border-color: #ff4500 !important;
  200. }
  201. .share-buttons .tumblr-btn {
  202. background-color: #34465d !important;
  203. border-color: #34465d !important;
  204. }
  205. .share-buttons .pocket-btn {
  206. background-color: #ef4056 !important;
  207. border-color: #ef4056 !important;
  208. }
  209. .share-buttons .linkedin-btn {
  210. background-color: #2867b2 !important;
  211. border-color: #2867b2 !important;
  212. }
  213. .share-buttons .diaspora-btn {
  214. background-color: #3c4858 !important;
  215. border-color: #3c4858 !important;
  216. }
  217. .share-buttons .mastodon-btn {
  218. background-color: #2791da !important;
  219. border-color: #2791da !important;
  220. }
  221. .share-buttons .whatsapp-btn {
  222. background-color: #4ac959 !important;
  223. border-color: #4ac959 !important;
  224. }
  225. .share-buttons .email-btn {
  226. background-color: #3c4858 !important;
  227. border-color: #3c4858 !important;
  228. transition: all 0.3s ease-out !important;
  229. }
  230. .btn-improve-page {
  231. text-align: right;
  232. }
  233. .languageSelector {
  234. display: none;
  235. }
  236. #scroll-to-top {
  237. position: fixed;
  238. bottom: 0rem;
  239. right: 1rem;
  240. color: #248aaa;
  241. font-size: 24pt;
  242. z-index: 900000;
  243. visibility: hidden;
  244. }
  245. #scroll-to-top i {
  246. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  247. background-color: #f9f9f9;
  248. border-radius: 50%;
  249. }
  250. #scroll-to-top:hover {
  251. color: #2098d1;
  252. }
  253. #scroll-to-top.show {
  254. visibility: visible;
  255. }
  256. .taxonomy-terms {
  257. text-align: center;
  258. }
  259. .taxonomy-terms li {
  260. font-size: 0.8em;
  261. list-style-type: none;
  262. display: inline-block;
  263. background: #248aaa;
  264. }
  265. .taxonomy-terms a {
  266. color: #f9fafc;
  267. }
  268. /* ============= Device specific fixes ======= */
  269. /* Large screens such as TV */
  270. @media only screen and (min-width: 1824px) {
  271. .content-section {
  272. flex: 65%;
  273. max-width: 65%;
  274. }
  275. .content-section .container {
  276. max-width: 100%;
  277. }
  278. }
  279. /* Extra large devices (large desktops, 1200px and up) */
  280. @media (max-width: 1400px) {
  281. }
  282. @media (max-width: 1200px) {
  283. }
  284. /* IPad Pro */
  285. @media (max-width: 1024px) {
  286. .wrapper {
  287. padding-left: 0px;
  288. padding-right: 0px;
  289. }
  290. .content-section {
  291. padding: 0;
  292. flex: 60%;
  293. max-width: 100%;
  294. order: 2;
  295. overflow: hidden;
  296. }
  297. .content {
  298. overflow: hidden;
  299. }
  300. .container {
  301. max-width: 100%;
  302. }
  303. .toc-section {
  304. order: 3;
  305. flex: 0%;
  306. max-width: 0%;
  307. transition: all ease-out 0.3s;
  308. }
  309. .toc-section.hide {
  310. flex: 40%;
  311. max-width: 40%;
  312. margin-left: 0.5rem;
  313. transition: all ease-out 0.3s;
  314. }
  315. .toc-holder {
  316. top: 3rem;
  317. max-height: calc(100vh - 3rem);
  318. }
  319. .navbar-toggler {
  320. display: block;
  321. }
  322. .navbar-collapse.lang-selector {
  323. display: none;
  324. }
  325. .languageSelector {
  326. display: block;
  327. }
  328. .hero-area {
  329. height: 300px;
  330. margin-top: 1rem;
  331. }
  332. .page-content {
  333. padding: 0px;
  334. }
  335. .btn-improve-page {
  336. margin-right: 1rem;
  337. }
  338. #disqus_thread,
  339. .dsq-brlink {
  340. padding: 5px;
  341. }
  342. }
  343. /* Large devices (desktops, 992px and up) */
  344. @media (max-width: 992px) {
  345. }
  346. /* Medium devices (tablets, 768px and up) */
  347. @media only screen and (max-width: 768px) {
  348. #scroll-to-top {
  349. right: 8rem;
  350. }
  351. }
  352. /* Small devices (landscape phones, 576px and up) */
  353. @media only screen and (max-width: 576px) {
  354. .wrapper {
  355. padding: 0px;
  356. display: flex;
  357. flex-direction: column;
  358. }
  359. .content-section {
  360. padding: 0;
  361. flex: 100%;
  362. max-width: 100%;
  363. order: 3;
  364. }
  365. .toc-section {
  366. order: 2;
  367. width: 100%;
  368. height: -webkit-fit-content;
  369. height: -moz-fit-content;
  370. height: fit-content;
  371. max-height: 0;
  372. max-width: 100%;
  373. transition: all ease-out 0.5s;
  374. }
  375. .toc-section.hide {
  376. margin-top: 2.5rem;
  377. position: relative;
  378. /* height: fit-content; */
  379. flex: 100%;
  380. height: -webkit-fit-content;
  381. height: -moz-fit-content;
  382. height: fit-content;
  383. max-height: 200vh;
  384. max-width: 100%;
  385. margin-left: 0;
  386. padding-right: 0;
  387. box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  388. transition: all ease-out 0.5s;
  389. }
  390. .toc-holder {
  391. max-height: 0;
  392. margin-right: 0;
  393. overflow: hidden;
  394. transition: all ease-out 0.5s;
  395. }
  396. .toc-section.hide .toc-holder {
  397. max-height: 200vh;
  398. transition: all ease-out 0.5s;
  399. }
  400. .navbar-toggler {
  401. display: block;
  402. }
  403. .hero-area {
  404. height: 200px;
  405. margin-top: 1rem;
  406. }
  407. .page-content {
  408. padding: 0px;
  409. }
  410. .next-prev-navigator .previous-article {
  411. text-align: center;
  412. margin: 5px;
  413. }
  414. .next-prev-navigator .next-article {
  415. text-align: center;
  416. margin: 5px;
  417. }
  418. .previous-article a,
  419. .next-article a {
  420. width: 100%;
  421. }
  422. #disqus_thread,
  423. .dsq-brlink {
  424. padding: 5px;
  425. }
  426. }
  427. /* iPhoneX, iPhone 6,7,8 */
  428. @media only screen and (max-width: 375px) {
  429. }
  430. /* Galaxy S5, Moto G4 */
  431. @media only screen and (max-width: 360px) {
  432. }
  433. /* iPhone 5 or before */
  434. @media only screen and (max-width: 320px) {
  435. }