_content.scss 3.9 KB

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