_single.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. text-justify: inter-ideograph; //For IE/Edge
  47. overflow-wrap: break-word;
  48. @include stylized-link;
  49. h1, h2, h3, h4, h5, h6 {
  50. font-weight: bold;
  51. }
  52. figure {
  53. height: auto;
  54. margin: 0;
  55. text-align: center;
  56. }
  57. figcaption > p {
  58. margin-top: .5em;
  59. font-size: .8em;
  60. font-style: italic;
  61. color: var(--c-txt-alt);
  62. }
  63. figure.left {
  64. float: left;
  65. margin-right: 1em;
  66. max-width: 50%;
  67. }
  68. figure.right {
  69. float: right;
  70. margin-left: 1em;
  71. max-width: 50%;
  72. }
  73. figure.big {
  74. width: calc(var(--vw) * 100);
  75. margin-left: -1em;
  76. }
  77. img {
  78. display: block;
  79. max-width: 100%;
  80. height: auto;
  81. margin: auto;
  82. }
  83. ul,
  84. ol {
  85. padding: 0;
  86. margin-left: 1.8em;
  87. }
  88. a.anchor {
  89. box-shadow: none;
  90. opacity: .7;
  91. font-size: 1em;
  92. &:hover {
  93. color: $accent;
  94. opacity: 1;
  95. }
  96. .anchor-icon {
  97. visibility: hidden;
  98. }
  99. &:focus .anchor-icon {
  100. visibility: visible;
  101. }
  102. }
  103. h1:hover .anchor-icon,
  104. h2:hover .anchor-icon,
  105. h3:hover .anchor-icon,
  106. h4:hover .anchor-icon,
  107. h5:hover .anchor-icon,
  108. h6:hover .anchor-icon {
  109. visibility: visible;
  110. }
  111. }
  112. .footnotes {
  113. font-size: .8em;
  114. p {
  115. margin: 0;
  116. }
  117. hr {
  118. width: auto;
  119. height: 2em;
  120. border: none;
  121. text-align: center;
  122. &::after {
  123. content: "* * *";
  124. display: block;
  125. font-size: 2em;
  126. }
  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: 50%;
  156. }
  157. .post-info {
  158. font-size: .8rem;
  159. line-height: normal;
  160. color: var(--c-txt-alt);
  161. p {
  162. margin: .8em 0;
  163. }
  164. svg {
  165. margin-right: .7em;
  166. }
  167. a {
  168. border-bottom: none;
  169. text-decoration: underline;
  170. color: var(--c-txt-alt);
  171. &:hover {
  172. color: $accent;
  173. }
  174. }
  175. .tag {
  176. margin-right: .5em;
  177. &::before {
  178. content: "#"
  179. }
  180. }
  181. }
  182. // Post Navigation
  183. //
  184. .post-nav {
  185. display: flex;
  186. justify-content: space-between;
  187. margin-top: 1.5em;
  188. margin-bottom: 2em;
  189. font-size: 1.2em;
  190. a {
  191. flex-basis: 50%;
  192. flex-grow: 1;
  193. border: none;
  194. }
  195. .next-post {text-align: left; padding-right: 5px;}
  196. .prev-post {text-align: right; padding-left: 5px;}
  197. .post-nav-label {
  198. font-size: .8em;
  199. opacity: .8;
  200. text-transform: uppercase;
  201. }
  202. }