single.scss 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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. bottom: 0rem;
  160. right: 1rem;
  161. color: get-light-color('accent-color');
  162. font-size: 24pt;
  163. z-index: 900000;
  164. visibility: hidden;
  165. &:hover {
  166. color: get-light-color('hover-over-accent-color');
  167. }
  168. &.show {
  169. visibility: visible;
  170. }
  171. i {
  172. box-shadow: $box-shadow;
  173. background-color: get-light-color('bg-primary');
  174. border-radius: 50%;
  175. }
  176. }
  177. @include media('<=ultra-large') {
  178. .content-section {
  179. flex: 65%;
  180. max-width: 65%;
  181. }
  182. .content-section .container {
  183. max-width: 100%;
  184. }
  185. }
  186. @include media('<very-large') {
  187. .container {
  188. max-width: 100%;
  189. }
  190. .wrapper {
  191. padding-left: 0px;
  192. padding-right: 0px;
  193. .content-section {
  194. padding: 0;
  195. flex: 60%;
  196. max-width: 100%;
  197. order: 2;
  198. overflow: hidden;
  199. .content {
  200. overflow: hidden;
  201. .read-area {
  202. .hero-area {
  203. height: 300px;
  204. margin-top: 1rem;
  205. }
  206. .page-content {
  207. padding: 0px;
  208. }
  209. }
  210. }
  211. }
  212. .toc-section {
  213. display: none;
  214. }
  215. .share-buttons {
  216. max-width: 48%;
  217. }
  218. .btn-improve-page {
  219. margin-right: 1rem;
  220. max-width: 48%;
  221. }
  222. #disqus_thread,
  223. .dsq-brlink {
  224. padding: 5px;
  225. }
  226. }
  227. }
  228. @include media('<=small') {
  229. .wrapper {
  230. padding: 0px;
  231. display: flex;
  232. flex-direction: column;
  233. .content-section {
  234. padding: 0;
  235. flex: 100%;
  236. max-width: 100%;
  237. order: 3;
  238. .content {
  239. .read-area {
  240. .hero-area {
  241. height: 200px;
  242. margin-top: 1rem;
  243. }
  244. .page-content {
  245. padding: 0px;
  246. .next-prev-navigator {
  247. .previous-article {
  248. text-align: center;
  249. margin: 5px;
  250. a {
  251. width: 100%;
  252. }
  253. }
  254. .next-article {
  255. text-align: center;
  256. margin: 5px;
  257. a {
  258. width: 100%;
  259. }
  260. }
  261. }
  262. }
  263. }
  264. }
  265. }
  266. .share-buttons {
  267. max-width: 100%;
  268. }
  269. .btn-improve-page {
  270. text-align: start;
  271. max-width: 100%;
  272. }
  273. #scroll-to-top {
  274. right: 0.5rem;
  275. }
  276. #disqus_thread,
  277. .dsq-brlink {
  278. padding: 5px;
  279. }
  280. }
  281. }
  282. }
  283. html[data-theme='dark'] {
  284. body.kind-page {
  285. background-color: get-dark-color('bg-secondary');
  286. .wrapper {
  287. .content-section {
  288. .content {
  289. .read-area {
  290. background-color: get-dark-color('bg-primary');
  291. .page-content {
  292. .author-profile {
  293. img {
  294. background-color: get-dark-color('bg-primary');
  295. }
  296. }
  297. }
  298. }
  299. }
  300. }
  301. .toc-section {
  302. .toc-holder {
  303. background-color: get-dark-color('bg-primary');
  304. hr {
  305. background-color: get-dark-color('muted-text-color');
  306. }
  307. .toc {
  308. nav {
  309. .nav-link {
  310. color: get-dark-color('text-color');
  311. &:hover,
  312. &:focus,
  313. &.active {
  314. background-color: get-dark-color('accent-color');
  315. color: get-dark-color('text-over-accent-color');
  316. }
  317. }
  318. }
  319. }
  320. }
  321. }
  322. #scroll-to-top {
  323. color: get-dark-color('accent-color');
  324. &:hover {
  325. color: get-dark-color('hover-over-accent-color');
  326. }
  327. i {
  328. background-color: get-dark-color('bg-primary');
  329. }
  330. }
  331. }
  332. }
  333. }