_content.scss 3.9 KB

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