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