single.scss 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. body.kind-page {
  2. background-color: get-light-color('bg-secondary');
  3. position: relative;
  4. .wrapper {
  5. display: flex;
  6. padding: 0;
  7. margin: 0;
  8. width: 100%;
  9. justify-content: space-between;
  10. position: relative;
  11. .content-section {
  12. flex: 60%;
  13. max-width: 60%;
  14. order: 2;
  15. padding: 0;
  16. position: relative;
  17. padding-left: 1rem;
  18. padding-right: 1rem;
  19. .content {
  20. padding-top: 1.5rem;
  21. .read-area {
  22. background-color: get-light-color('bg-primary');
  23. .hero-area {
  24. margin-top: 3rem;
  25. width: 100%;
  26. height: 400px;
  27. background-position: center;
  28. background-repeat: no-repeat;
  29. background-size: cover;
  30. }
  31. .page-content {
  32. width: 100%;
  33. position: relative;
  34. top: -4.5rem;
  35. padding: 15px;
  36. .author-profile {
  37. position: relative;
  38. align-content: center;
  39. text-align: center;
  40. .author-name {
  41. margin-top: 0px;
  42. }
  43. p {
  44. text-align: center;
  45. }
  46. img {
  47. height: 120px;
  48. width: 120px;
  49. margin-left: auto;
  50. margin-right: auto;
  51. -o-object-fit: cover;
  52. object-fit: cover;
  53. background-color: get-light-color('bg-primary');
  54. padding: 5px;
  55. }
  56. }
  57. .title {
  58. text-align: center;
  59. }
  60. .tags {
  61. text-align: center;
  62. }
  63. .post-content {
  64. padding: 15px;
  65. h1,
  66. h2 {
  67. margin-top: 1.4rem;
  68. }
  69. h3,
  70. h4,
  71. h5,
  72. h6 {
  73. margin-top: 1.3rem;
  74. }
  75. }
  76. .next-prev-navigator {
  77. padding-left: 1rem !important;
  78. padding-right: 1rem !important;
  79. .next-article {
  80. text-align: right;
  81. }
  82. .next-prev-text {
  83. white-space: break-spaces;
  84. }
  85. a {
  86. text-decoration: none !important;
  87. }
  88. }
  89. }
  90. }
  91. }
  92. }
  93. .toc-section {
  94. flex: 20%;
  95. order: 3;
  96. max-width: 20%;
  97. @include transition();
  98. .toc-holder {
  99. position: sticky;
  100. top: 4.5rem;
  101. padding-top: 1rem;
  102. overflow-x: hidden;
  103. overflow-y: auto;
  104. background-color: get-light-color('bg-primary');
  105. margin-right: 0.5rem;
  106. @include transition();
  107. .toc {
  108. position: relative;
  109. padding-top: 0px;
  110. @include transition();
  111. nav {
  112. padding-top: 0px;
  113. margin-top: 0px;
  114. display: flex;
  115. flex-direction: column;
  116. align-items: flex-start;
  117. @include transition();
  118. ul {
  119. list-style: none;
  120. padding-left: 0.5rem;
  121. margin-bottom: 0rem;
  122. width: 100%;
  123. }
  124. .nav-link {
  125. padding: 0;
  126. padding-left: 0.5rem;
  127. text-decoration: none !important;
  128. @include transition();
  129. color: get-light-color('text-color');
  130. &:hover,
  131. &:focus,
  132. &.active {
  133. padding-left: 1rem;
  134. padding-right: 0.5rem;
  135. background-color: get-light-color('accent-color');
  136. color: get-light-color('text-over-accent-color');
  137. @include transition();
  138. }
  139. }
  140. }
  141. }
  142. }
  143. }
  144. .disquss {
  145. padding: 10px;
  146. }
  147. .share-buttons {
  148. @include brand-background();
  149. .btn {
  150. border: none !important;
  151. }
  152. }
  153. }
  154. .btn-improve-page {
  155. text-align: right;
  156. }
  157. #scroll-to-top {
  158. position: fixed;
  159. border: none;
  160. bottom: 0rem;
  161. right: 1rem;
  162. color: get-light-color('accent-color');
  163. font-size: 24pt;
  164. z-index: 900000;
  165. visibility: hidden;
  166. &:hover {
  167. color: get-light-color('hover-over-accent-color');
  168. }
  169. &.show {
  170. visibility: visible;
  171. }
  172. i {
  173. box-shadow: $box-shadow;
  174. background-color: get-light-color('bg-primary');
  175. border-radius: 50%;
  176. }
  177. }
  178. @include media('<=ultra-large') {
  179. .content-section {
  180. flex: 65%;
  181. max-width: 65%;
  182. }
  183. .content-section .container {
  184. max-width: 100%;
  185. }
  186. }
  187. @include media('<very-large') {
  188. .container {
  189. max-width: 100%;
  190. }
  191. .wrapper {
  192. padding-left: 0px;
  193. padding-right: 0px;
  194. .content-section {
  195. padding: 0;
  196. flex: 60%;
  197. max-width: 100%;
  198. order: 2;
  199. overflow: hidden;
  200. .content {
  201. overflow: hidden;
  202. .read-area {
  203. .hero-area {
  204. height: 300px;
  205. margin-top: 1rem;
  206. }
  207. .page-content {
  208. padding: 0px;
  209. }
  210. }
  211. }
  212. }
  213. .toc-section {
  214. display: none;
  215. }
  216. .share-buttons {
  217. max-width: 48%;
  218. }
  219. .btn-improve-page {
  220. margin-right: 1rem;
  221. max-width: 48%;
  222. }
  223. #disqus_thread,
  224. .dsq-brlink {
  225. padding: 5px;
  226. }
  227. }
  228. }
  229. @include media('<=small') {
  230. .wrapper {
  231. padding: 0px;
  232. display: flex;
  233. flex-direction: column;
  234. .content-section {
  235. padding: 0;
  236. flex: 100%;
  237. max-width: 100%;
  238. order: 3;
  239. .content {
  240. .read-area {
  241. .hero-area {
  242. height: 200px;
  243. margin-top: 1rem;
  244. }
  245. .page-content {
  246. padding: 0px;
  247. .next-prev-navigator {
  248. .previous-article {
  249. text-align: center;
  250. margin: 5px;
  251. a {
  252. width: 100%;
  253. }
  254. }
  255. .next-article {
  256. text-align: center;
  257. margin: 5px;
  258. a {
  259. width: 100%;
  260. }
  261. }
  262. }
  263. }
  264. }
  265. }
  266. }
  267. .share-buttons {
  268. max-width: 100%;
  269. }
  270. .btn-improve-page {
  271. text-align: start;
  272. max-width: 100%;
  273. }
  274. #scroll-to-top {
  275. right: 0.5rem;
  276. }
  277. #disqus_thread,
  278. .dsq-brlink {
  279. padding: 5px;
  280. }
  281. }
  282. }
  283. }
  284. html[data-theme='dark'] {
  285. body.kind-page {
  286. background-color: get-dark-color('bg-secondary');
  287. .wrapper {
  288. .content-section {
  289. .content {
  290. .read-area {
  291. background-color: get-dark-color('bg-primary');
  292. .page-content {
  293. .author-profile {
  294. img {
  295. background-color: get-dark-color('bg-primary');
  296. }
  297. }
  298. }
  299. }
  300. }
  301. }
  302. .toc-section {
  303. .toc-holder {
  304. background-color: get-dark-color('bg-primary');
  305. hr {
  306. background-color: get-dark-color('muted-text-color');
  307. }
  308. .toc {
  309. nav {
  310. .nav-link {
  311. color: get-dark-color('text-color');
  312. &:hover,
  313. &:focus,
  314. &.active {
  315. background-color: get-dark-color('accent-color');
  316. color: get-dark-color('text-over-accent-color');
  317. }
  318. }
  319. }
  320. }
  321. }
  322. }
  323. #scroll-to-top {
  324. color: get-dark-color('accent-color');
  325. &:hover {
  326. color: get-dark-color('hover-over-accent-color');
  327. }
  328. i {
  329. background-color: get-dark-color('bg-primary');
  330. }
  331. }
  332. }
  333. }
  334. }