_single.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. video, iframe {
  88. max-width: 100%;
  89. height: auto;
  90. }
  91. ul,
  92. ol {
  93. padding: 0;
  94. margin-left: 1.8em;
  95. }
  96. a.anchor {
  97. box-shadow: none;
  98. opacity: .7;
  99. font-size: 1em;
  100. &:hover {
  101. color: $accent;
  102. opacity: 1;
  103. }
  104. .anchor-icon {
  105. visibility: hidden;
  106. }
  107. &:focus .anchor-icon {
  108. visibility: visible;
  109. }
  110. }
  111. h1:hover .anchor-icon,
  112. h2:hover .anchor-icon,
  113. h3:hover .anchor-icon,
  114. h4:hover .anchor-icon,
  115. h5:hover .anchor-icon,
  116. h6:hover .anchor-icon {
  117. visibility: visible;
  118. }
  119. }
  120. .footnotes {
  121. font-size: .8em;
  122. p {
  123. margin: 0;
  124. }
  125. hr::after {
  126. content: "# FOOTNOTES #";
  127. font-size: 1rem;
  128. }
  129. a {
  130. box-shadow: none;
  131. text-decoration: underline;
  132. transition-property: color;
  133. &:hover {
  134. box-shadow: none;
  135. color: $accent;
  136. }
  137. &.footnote-backref {
  138. text-decoration: none;
  139. }
  140. }
  141. }
  142. a.footnote-ref {
  143. box-shadow: none;
  144. text-decoration: none;
  145. padding: 1px 2px;
  146. border-radius: 2px;
  147. background-color: var(--c-bg-alt);
  148. transition-property: background-color;
  149. &:hover {
  150. box-shadow: none;
  151. background-color: $accent;
  152. }
  153. }
  154. hr.post-end {
  155. margin: 2rem auto 1rem 0;
  156. width: 33%;
  157. height: 0;
  158. border-top: 3px solid;
  159. &::after {
  160. display: none;
  161. }
  162. }
  163. .post-info {
  164. font-size: .8rem;
  165. line-height: normal;
  166. color: var(--c-txt-alt);
  167. p {
  168. margin: .8em 0;
  169. }
  170. svg {
  171. margin-right: .7em;
  172. }
  173. a {
  174. border-bottom: none;
  175. text-decoration: underline;
  176. color: var(--c-txt-alt);
  177. &:hover {
  178. color: $accent;
  179. }
  180. }
  181. .tag {
  182. margin-right: .5em;
  183. &::before {
  184. content: "#"
  185. }
  186. }
  187. }
  188. // Post Navigation
  189. //
  190. .post-nav {
  191. display: flex;
  192. justify-content: space-between;
  193. gap: 1em;
  194. margin-top: 1.5em;
  195. margin-bottom: 2em;
  196. font-size: 1.2em;
  197. padding: .5em;
  198. border: 1px dashed var(--c-txt-alt);
  199. > a {
  200. flex-basis: 50%;
  201. flex-grow: 1;
  202. border: none;
  203. }
  204. .next-post {text-align: left;}
  205. .prev-post {text-align: right;}
  206. .post-nav-label {
  207. font-size: .8em;
  208. opacity: .8;
  209. text-transform: uppercase;
  210. color: var(--c-txt-alt);
  211. }
  212. }
  213. #scroll-top-btn {
  214. display: none;
  215. position: fixed;
  216. margin: 0;
  217. padding: 0;
  218. bottom: .8rem;
  219. left: calc(var(--offset) - 2.5rem);
  220. line-height: 0;
  221. font-size: 1.5rem;
  222. border: none;
  223. color: var(--c-txt-alt);
  224. background: transparent;
  225. cursor: pointer;
  226. animation: slideIn .2s ease-out;
  227. &:hover {
  228. color: $accent;
  229. }
  230. }
  231. // Gallery Page
  232. //
  233. .album-meta {
  234. color: var(--c-txt-alt);
  235. font-size: .8rem;
  236. > p {
  237. margin: 0;
  238. &.album-desc {
  239. margin-top: 1em;
  240. font-size: .95rem;
  241. }
  242. > .feather {
  243. margin-right: .5em;
  244. }
  245. }
  246. }