_content.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. .content {
  2. flex: 1;
  3. margin-top: 1.6rem;
  4. margin-bottom: 3.2rem;
  5. article {
  6. header {
  7. margin-top: 6.4rem;
  8. margin-bottom: 3.2rem;
  9. h1, h2 {
  10. margin: 0;
  11. }
  12. h2 {
  13. font-size: 1.8rem;
  14. line-height: 2.2rem;
  15. color: $fg-color;
  16. margin-top: 1.8rem;
  17. @media only screen and (max-device-width : 768px) {
  18. font-size: 1.6rem;
  19. }
  20. }
  21. }
  22. footer {
  23. margin-top: 4.0rem;
  24. }
  25. }
  26. .post {
  27. .post-title {
  28. margin-bottom: .75em;
  29. }
  30. .post-meta {
  31. .posted-on {
  32. display: inline-block;
  33. margin-left: 0;
  34. margin-right: 1.5rem;
  35. }
  36. .reading-time {
  37. display: inline-block;
  38. }
  39. }
  40. }
  41. }
  42. .avatar img{
  43. width: 20rem;
  44. height: auto;
  45. border-radius: 50%;
  46. @media only screen and (max-device-width : 768px) {
  47. width: 10rem;
  48. }
  49. }
  50. .list {
  51. ul {
  52. margin: 3.2rem 0 3.2rem 0;
  53. list-style: none;
  54. padding: 0;
  55. li {
  56. font-size: 1.8rem;
  57. @media only screen and (max-device-width : 768px) {
  58. margin: 1.6rem 0 1.6rem 0;
  59. }
  60. span {
  61. display: inline-block;
  62. width: 20.0rem;
  63. text-align: right;
  64. margin-right: 3.0rem;
  65. @media only screen and (max-device-width : 768px) {
  66. display: block;
  67. text-align: left;
  68. }
  69. }
  70. a {
  71. font-size: 1.8rem;
  72. color: $fg-color;
  73. font-family: $heading-font-family;
  74. font-weight: 700;
  75. &:hover,
  76. &:focus {
  77. color: $link-color
  78. }
  79. }
  80. }
  81. }
  82. }
  83. .centered {
  84. display: flex;
  85. height: 100%;
  86. align-items: center;
  87. justify-content: center;
  88. .about {
  89. text-align: center;
  90. h1 {
  91. margin-top: 2.0rem;
  92. margin-bottom: 0.5rem;
  93. }
  94. h2 {
  95. margin-top: 1.0rem;
  96. margin-bottom: 0.5rem;
  97. font-size: 2.4rem;
  98. @media only screen and (max-device-width : 768px) {
  99. font-size: 2.0rem;
  100. }
  101. }
  102. ul {
  103. list-style: none;
  104. margin: 3.0rem 0 1.0rem 0;
  105. padding: 0;
  106. li {
  107. display: inline-block;
  108. position: relative;
  109. a {
  110. color: $fg-color;
  111. text-transform: uppercase;
  112. margin-left: 1.0rem;
  113. margin-right: 1.0rem;
  114. font-size: 1.6rem;
  115. &:hover,
  116. &:focus {
  117. color: $link-color;
  118. }
  119. @media only screen and (max-device-width : 768px) {
  120. font-size: 1.4rem;
  121. }
  122. i {
  123. font-size: 3.2rem;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. .error {
  130. text-align: center;
  131. h1 {
  132. margin-top: 2.0rem;
  133. margin-bottom: 0.5rem;
  134. font-size: 4.6rem;
  135. @media only screen and (max-device-width : 768px) {
  136. font-size: 3.2rem;
  137. }
  138. }
  139. h2 {
  140. margin-top: 2.0rem;
  141. margin-bottom: 3.2rem;
  142. font-size: 3.2rem;
  143. @media only screen and (max-device-width : 768px) {
  144. font-size: 2.8rem;
  145. }
  146. }
  147. }
  148. }