1
0

_content.scss 4.1 KB

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