single.scss 7.8 KB

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