_single.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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. border-radius: 4px;
  10. background: transparent;
  11. color: var(--c-txt-alt);
  12. font-size: .8em;
  13. &:hover {
  14. color: $accent;
  15. }
  16. }
  17. // TOC
  18. //
  19. #toc {
  20. display: none;
  21. color: var(--c-txt-alt);
  22. padding: 1em;
  23. border-radius: 4px;
  24. background-color: var(--c-bg-alt);
  25. }
  26. .toc-title {
  27. display: none;
  28. }
  29. #TableOfContents {
  30. font-size: .9em;
  31. line-height: 1.3;
  32. a {
  33. display: block;
  34. padding-bottom: .3em;
  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. margin-top: 1.5em;
  191. margin-bottom: 2em;
  192. font-size: 1.2em;
  193. a {
  194. flex-basis: 50%;
  195. flex-grow: 1;
  196. border: none;
  197. }
  198. .next-post {text-align: left; padding-right: 5px;}
  199. .prev-post {text-align: right; padding-left: 5px;}
  200. .post-nav-label {
  201. font-size: .8em;
  202. opacity: .8;
  203. text-transform: uppercase;
  204. }
  205. }
  206. #scroll-top-btn {
  207. display: none;
  208. position: fixed;
  209. margin: 0;
  210. padding: 0;
  211. bottom: .8rem;
  212. left: calc(var(--offset) - 2.5rem);
  213. line-height: 0;
  214. font-size: 1.5rem;
  215. border: none;
  216. color: var(--c-txt-alt);
  217. background: transparent;
  218. cursor: pointer;
  219. animation: slideIn .2s ease-out;
  220. }
  221. // Gallery Page
  222. //
  223. .album-meta {
  224. color: var(--c-txt-alt);
  225. font-size: .8em;
  226. > p {
  227. margin: 0;
  228. &.album-desc {
  229. margin-top: 1em;
  230. line-height: normal;
  231. }
  232. > .feather {
  233. margin-right: 1em;
  234. }
  235. }
  236. }