_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. figure {
  53. height: auto;
  54. margin: 0;
  55. text-align: center;
  56. }
  57. figcaption > p {
  58. margin-top: .1rem;
  59. margin-bottom: 1rem;
  60. font-size: .8em;
  61. font-style: italic;
  62. color: var(--c-txt-alt);
  63. }
  64. figure.left {
  65. float: left;
  66. margin-right: 1em;
  67. max-width: 50%;
  68. }
  69. figure.right {
  70. float: right;
  71. margin-left: 1em;
  72. max-width: 50%;
  73. }
  74. figure.big {
  75. width: calc(var(--vw) * 100);
  76. margin-left: -1em;
  77. }
  78. img {
  79. display: block;
  80. max-width: 100%;
  81. height: auto;
  82. margin: auto;
  83. }
  84. ul,
  85. ol {
  86. padding: 0;
  87. margin-left: 1.8em;
  88. }
  89. a.anchor {
  90. box-shadow: none;
  91. opacity: .7;
  92. font-size: 1em;
  93. &:hover {
  94. color: $accent;
  95. opacity: 1;
  96. }
  97. .anchor-icon {
  98. visibility: hidden;
  99. }
  100. &:focus .anchor-icon {
  101. visibility: visible;
  102. }
  103. }
  104. h1:hover .anchor-icon,
  105. h2:hover .anchor-icon,
  106. h3:hover .anchor-icon,
  107. h4:hover .anchor-icon,
  108. h5:hover .anchor-icon,
  109. h6:hover .anchor-icon {
  110. visibility: visible;
  111. }
  112. }
  113. .footnotes {
  114. font-size: .8em;
  115. p {
  116. margin: 0;
  117. }
  118. hr {
  119. width: auto;
  120. height: 2em;
  121. border: none;
  122. text-align: center;
  123. &::after {
  124. content: "* * *";
  125. display: block;
  126. font-size: 2em;
  127. }
  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: 50%;
  157. }
  158. .post-info {
  159. font-size: .8rem;
  160. line-height: normal;
  161. color: var(--c-txt-alt);
  162. p {
  163. margin: .8em 0;
  164. }
  165. svg {
  166. margin-right: .7em;
  167. }
  168. a {
  169. border-bottom: none;
  170. text-decoration: underline;
  171. color: var(--c-txt-alt);
  172. &:hover {
  173. color: $accent;
  174. }
  175. }
  176. .tag {
  177. margin-right: .5em;
  178. &::before {
  179. content: "#"
  180. }
  181. }
  182. }
  183. // Post Navigation
  184. //
  185. .post-nav {
  186. display: flex;
  187. justify-content: space-between;
  188. gap: 1em;
  189. margin-top: 1.5em;
  190. margin-bottom: 2em;
  191. font-size: 1.2em;
  192. padding: .5em;
  193. border: 1px solid var(--c-txt-alt);
  194. > a {
  195. flex-basis: 50%;
  196. flex-grow: 1;
  197. border: none;
  198. }
  199. .next-post {text-align: left;}
  200. .prev-post {text-align: right;}
  201. .post-nav-label {
  202. font-size: .8em;
  203. opacity: .8;
  204. text-transform: uppercase;
  205. color: var(--c-txt-alt);
  206. }
  207. }
  208. #scroll-top-btn {
  209. display: none;
  210. position: fixed;
  211. margin: 0;
  212. padding: 0;
  213. bottom: .8rem;
  214. left: calc(var(--offset) - 2.5rem);
  215. line-height: 0;
  216. font-size: 1.5rem;
  217. border: none;
  218. color: var(--c-txt-alt);
  219. background: transparent;
  220. cursor: pointer;
  221. animation: slideIn .2s ease-out;
  222. &:hover {
  223. color: $accent;
  224. }
  225. }
  226. // Gallery Page
  227. //
  228. .album-meta {
  229. color: var(--c-txt-alt);
  230. font-size: .8rem;
  231. > p {
  232. margin: 0;
  233. &.album-desc {
  234. margin-top: 1em;
  235. font-size: .95rem;
  236. }
  237. > .feather {
  238. margin-right: .5em;
  239. }
  240. }
  241. }