_single.scss 3.2 KB

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