single.scss 7.7 KB

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