_single.scss 3.2 KB

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