_single.scss 4.0 KB

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