_single.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. .post-meta {
  2. margin-bottom: .5em;
  3. display: flex;
  4. }
  5. #toc-btn {
  6. position: relative;
  7. top: -1em;
  8. color: var(--c-txt-alt);
  9. font-size: .8em;
  10. &:hover {
  11. color: $accent;
  12. }
  13. }
  14. // TOC
  15. //
  16. #toc {
  17. display: none;
  18. color: var(--c-txt-alt);
  19. padding: 1em;
  20. background-color: var(--c-bg-alt);
  21. }
  22. .toc-title {
  23. display: none;
  24. padding-right: 1em;
  25. margin-top: 0;
  26. font-weight: bold;
  27. }
  28. #TableOfContents {
  29. font-size: .9em;
  30. a {
  31. display: block;
  32. border-bottom: none;
  33. color: var(--c-txt-alt);
  34. &:hover {
  35. color: $accent;
  36. }
  37. }
  38. ul {
  39. margin: 0;
  40. }
  41. }
  42. .content {
  43. margin-top: 1.5rem;
  44. text-justify: inter-ideograph; //For IE/Edge
  45. overflow-wrap: break-word;
  46. @include stylized-link;
  47. h1, h2, h3, h4, h5, h6 {
  48. font-weight: bold;
  49. margin-top: 1.5rem;
  50. margin-bottom: 1rem;
  51. }
  52. blockquote {
  53. text-align: left;
  54. }
  55. figure {
  56. height: auto;
  57. margin: 0;
  58. text-align: center;
  59. }
  60. figcaption > p {
  61. margin-top: .1rem;
  62. margin-bottom: 1rem;
  63. font-size: .8em;
  64. font-style: italic;
  65. color: var(--c-txt-alt);
  66. }
  67. figure.left {
  68. float: left;
  69. margin-right: 1em;
  70. max-width: 50%;
  71. }
  72. figure.right {
  73. float: right;
  74. margin-left: 1em;
  75. max-width: 50%;
  76. }
  77. figure.big {
  78. width: calc(var(--vw) * 100);
  79. margin-left: -1em;
  80. }
  81. img {
  82. display: block;
  83. max-width: 100%;
  84. height: auto;
  85. margin: auto;
  86. }
  87. ul,
  88. ol {
  89. padding: 0;
  90. margin-left: 1.8em;
  91. }
  92. a.anchor {
  93. box-shadow: none;
  94. opacity: .7;
  95. font-size: 1em;
  96. &:hover {
  97. color: $accent;
  98. opacity: 1;
  99. }
  100. .anchor-icon {
  101. visibility: hidden;
  102. }
  103. &:focus .anchor-icon {
  104. visibility: visible;
  105. }
  106. }
  107. h1:hover .anchor-icon,
  108. h2:hover .anchor-icon,
  109. h3:hover .anchor-icon,
  110. h4:hover .anchor-icon,
  111. h5:hover .anchor-icon,
  112. h6:hover .anchor-icon {
  113. visibility: visible;
  114. }
  115. }
  116. .footnotes {
  117. font-size: .8em;
  118. p {
  119. margin: 0;
  120. }
  121. hr::after {
  122. content: "# FOOTNOTES #";
  123. font-size: 1rem;
  124. }
  125. a {
  126. box-shadow: none;
  127. text-decoration: underline;
  128. transition-property: color;
  129. &:hover {
  130. box-shadow: none;
  131. color: $accent;
  132. }
  133. &.footnote-backref {
  134. text-decoration: none;
  135. }
  136. }
  137. }
  138. a.footnote-ref {
  139. box-shadow: none;
  140. text-decoration: none;
  141. padding: 1px 2px;
  142. border-radius: 2px;
  143. background-color: var(--c-bg-alt);
  144. transition-property: background-color;
  145. &:hover {
  146. box-shadow: none;
  147. background-color: $accent;
  148. }
  149. }
  150. hr.post-end {
  151. margin: 2rem auto 1rem 0;
  152. width: 33%;
  153. height: 0;
  154. border-top: 3px solid;
  155. &::after {
  156. display: none;
  157. }
  158. }
  159. .post-info {
  160. font-size: .8rem;
  161. line-height: normal;
  162. color: var(--c-txt-alt);
  163. p {
  164. margin: .8em 0;
  165. }
  166. svg {
  167. margin-right: .7em;
  168. }
  169. a {
  170. border-bottom: none;
  171. text-decoration: underline;
  172. color: var(--c-txt-alt);
  173. &:hover {
  174. color: $accent;
  175. }
  176. }
  177. .tag {
  178. margin-right: .5em;
  179. &::before {
  180. content: "#"
  181. }
  182. }
  183. }
  184. // Post Navigation
  185. //
  186. .post-nav {
  187. display: flex;
  188. justify-content: space-between;
  189. gap: 1em;
  190. margin-top: 1.5em;
  191. margin-bottom: 2em;
  192. font-size: 1.2em;
  193. padding: .5em;
  194. border: 1px dashed var(--c-txt-alt);
  195. > a {
  196. flex-basis: 50%;
  197. flex-grow: 1;
  198. border: none;
  199. }
  200. .next-post {text-align: left;}
  201. .prev-post {text-align: right;}
  202. .post-nav-label {
  203. font-size: .8em;
  204. opacity: .8;
  205. text-transform: uppercase;
  206. color: var(--c-txt-alt);
  207. }
  208. }
  209. #scroll-top-btn {
  210. display: none;
  211. position: fixed;
  212. margin: 0;
  213. padding: 0;
  214. bottom: .8rem;
  215. left: calc(var(--offset) - 2.5rem);
  216. line-height: 0;
  217. font-size: 1.5rem;
  218. border: none;
  219. color: var(--c-txt-alt);
  220. background: transparent;
  221. cursor: pointer;
  222. animation: slideIn .2s ease-out;
  223. &:hover {
  224. color: $accent;
  225. }
  226. }
  227. // Gallery Page
  228. //
  229. .album-meta {
  230. color: var(--c-txt-alt);
  231. font-size: .8rem;
  232. > p {
  233. margin: 0;
  234. &.album-desc {
  235. margin-top: 1em;
  236. font-size: .95rem;
  237. }
  238. > .feather {
  239. margin-right: .5em;
  240. }
  241. }
  242. }