_single.scss 4.0 KB

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