1
0

_content.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. .content {
  2. flex: 1;
  3. display: flex;
  4. margin-top: 1.6rem;
  5. margin-bottom: 3.2rem;
  6. header {
  7. margin-top: 6.4rem;
  8. margin-bottom: 3.2rem;
  9. h1 {
  10. font-size: 4.2rem;
  11. line-height: 4.6rem;
  12. margin: 0;
  13. @media only screen and (max-width: 768px) {
  14. font-size: 4rem;
  15. line-height: 4.4rem;
  16. }
  17. }
  18. }
  19. article {
  20. a:where(.external-link)::after {
  21. content: "⬈"
  22. }
  23. details {
  24. summary {
  25. cursor: pointer;
  26. }
  27. }
  28. footer {
  29. margin-top: 4rem;
  30. .see-also {
  31. margin: 3.2rem 0;
  32. h3 {
  33. margin: 3.2rem 0;
  34. }
  35. }
  36. }
  37. p {
  38. text-align: justify;
  39. text-justify: auto;
  40. hyphens: auto;
  41. }
  42. }
  43. .post {
  44. .post-title {
  45. margin-bottom: 0.75em;
  46. }
  47. .post-meta {
  48. i {
  49. text-align: center;
  50. width: 1.6rem;
  51. margin-left: 0;
  52. margin-right: 0.5rem;
  53. }
  54. .date {
  55. .posted-on {
  56. margin-left: 0;
  57. margin-right: 1.5rem;
  58. }
  59. }
  60. .tags {
  61. .tag {
  62. display: inline-block;
  63. padding: 0.3rem 0.6rem;
  64. background-color: $alt-bg-color;
  65. border-radius: 0.6rem;
  66. line-height: 1.4em;
  67. a {
  68. color: $fg-color;
  69. }
  70. a:active {
  71. color: $fg-color;
  72. }
  73. }
  74. }
  75. }
  76. }
  77. figure {
  78. margin: 0;
  79. padding: 0;
  80. }
  81. figcaption p {
  82. text-align: center;
  83. font-style: italic;
  84. font-size: 1.6rem;
  85. margin: 0;
  86. }
  87. }
  88. .avatar img {
  89. width: 20rem;
  90. height: auto;
  91. border-radius: 50%;
  92. @media only screen and (max-width: 768px) {
  93. width: 10rem;
  94. }
  95. }
  96. .list {
  97. ul {
  98. margin: 3.2rem 0 3.2rem 0;
  99. list-style: none;
  100. padding: 0;
  101. li {
  102. font-size: 1.8rem;
  103. @media only screen and (max-width: 768px) {
  104. margin: 1.6rem 0 1.6rem 0;
  105. }
  106. .date {
  107. display: inline-block;
  108. flex: 1;
  109. width: 20rem;
  110. text-align: right;
  111. margin-right: 3rem;
  112. @media only screen and (max-width: 768px) {
  113. display: block;
  114. text-align: left;
  115. }
  116. }
  117. .title {
  118. font-size: 1.8rem;
  119. flex: 2;
  120. color: $fg-color;
  121. font-family: $font-family;
  122. font-weight: 700;
  123. &:hover,
  124. &:focus {
  125. color: $link-color;
  126. }
  127. }
  128. }
  129. }
  130. ul:not(.pagination) {
  131. li {
  132. @media only screen and (min-width: 768.1px) {
  133. display: flex;
  134. }
  135. }
  136. }
  137. }
  138. .centered {
  139. display: flex;
  140. align-items: center;
  141. justify-content: center;
  142. .about {
  143. text-align: center;
  144. h1 {
  145. margin-top: 2rem;
  146. margin-bottom: 0.5rem;
  147. }
  148. h2 {
  149. margin-top: 1rem;
  150. margin-bottom: 0.5rem;
  151. font-size: 2.4rem;
  152. @media only screen and (max-width: 768px) {
  153. font-size: 2rem;
  154. }
  155. }
  156. ul {
  157. list-style: none;
  158. margin: 3rem 0 1rem 0;
  159. padding: 0;
  160. li {
  161. display: inline-block;
  162. position: relative;
  163. a {
  164. color: $fg-color;
  165. text-transform: uppercase;
  166. margin-left: 1rem;
  167. margin-right: 1rem;
  168. font-size: 1.6rem;
  169. &:hover,
  170. &:focus {
  171. color: $link-color;
  172. }
  173. @media only screen and (max-width: 768px) {
  174. font-size: 1.4rem;
  175. }
  176. }
  177. }
  178. }
  179. }
  180. .error {
  181. text-align: center;
  182. h1 {
  183. margin-top: 2rem;
  184. margin-bottom: 0.5rem;
  185. font-size: 4.6rem;
  186. @media only screen and (max-width: 768px) {
  187. font-size: 3.2rem;
  188. }
  189. }
  190. h2 {
  191. margin-top: 2rem;
  192. margin-bottom: 3.2rem;
  193. font-size: 3.2rem;
  194. @media only screen and (max-width: 768px) {
  195. font-size: 2.8rem;
  196. }
  197. }
  198. }
  199. }