home.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. @import '../app.scss';
  2. // Fonts
  3. @import '../fonts/awesome/awesome-font.css';
  4. @import '../fonts/iransans/iransans-font.css';
  5. body {
  6. font-family: iransans;
  7. }
  8. h1 {
  9. font-size: 1.5rem;
  10. }
  11. h2 {
  12. font-size: 1.4rem;
  13. }
  14. h3 {
  15. font-size: 1.3rem;
  16. }
  17. h4 {
  18. font-size: 1.2rem;
  19. }
  20. h5 {
  21. font-size: 1.1rem;
  22. }
  23. h6 {
  24. font-size: 1rem;
  25. }
  26. a {
  27. transition: all 0.3s ease;
  28. text-decoration: none;
  29. &:hover {
  30. text-decoration: none;
  31. }
  32. }
  33. .article-content-holder {
  34. margin: 3rem 0;
  35. @media screen and (min-width: 1400px){
  36. max-width: 1200px;
  37. }
  38. @media screen and (min-width: 1200px) and (max-width: 1399px){
  39. max-width: 900px;
  40. }
  41. @media screen and (min-width: 992px) and (max-width: 1199px){
  42. max-width: 890px;
  43. }
  44. .title {
  45. margin-bottom: 1.5rem;
  46. line-height: 2;
  47. color: $primary;
  48. }
  49. .author-published-holder {
  50. display: flex;
  51. align-items: center;
  52. margin-bottom: 1.5rem;
  53. .author-avatar {
  54. width: 3rem;
  55. height: 3rem;
  56. border-radius: 50%;
  57. }
  58. .author-published-text {
  59. margin-right: 0.75rem;
  60. .author-name {
  61. margin-bottom: 0.625rem;
  62. }
  63. .published-at {
  64. color: lighten($gray, 20);
  65. font-size: 80%;
  66. }
  67. }
  68. }
  69. .content-text {
  70. h1, h2, h3, h4,h5, h6 {
  71. margin-top: 2em;
  72. margin-bottom: 1em;
  73. &:first-child {
  74. margin-top: 0;
  75. }
  76. }
  77. div {
  78. text-align: justify;
  79. line-height: 2;
  80. margin-bottom: 0.75rem;
  81. }
  82. ul {
  83. list-style-type: none;
  84. padding-right: 1.2rem;
  85. padding-left: 1.2rem;
  86. li {
  87. line-height: 2;
  88. &:before {
  89. content: '✓';
  90. color: $primary;
  91. padding: 2px 0 2px 2px;
  92. font-weight: 600;
  93. }
  94. }
  95. }
  96. ol {
  97. counter-reset: item;
  98. padding-right: 1.2rem;
  99. padding-left: 1.2rem;
  100. li {
  101. display: block;
  102. line-height: 2;
  103. &:before {
  104. content: counter(item) ". ";
  105. counter-increment: item;
  106. color: $primary;
  107. font-weight: 600;
  108. }
  109. }
  110. }
  111. div {
  112. img {
  113. margin: 1rem 0;
  114. @media screen and (max-width: 992px){
  115. max-width: 100%;
  116. }
  117. }
  118. }
  119. video {
  120. margin: 1rem 0;
  121. width: 100%;
  122. }
  123. table {
  124. margin: 1rem 0;
  125. thead {
  126. background-color: $primary;
  127. color: $white;
  128. }
  129. }
  130. blockquote{
  131. background: #f9f9f9;
  132. border-right: 0.625rem solid $info;
  133. margin: 0.5rem 1.2rem;
  134. padding: 10px 20px;
  135. &:before {
  136. content: '\201D';
  137. line-height: 0;
  138. right: -11px;
  139. position: relative;
  140. top: 30px;
  141. color: $info;
  142. font-size: 3em;
  143. }
  144. }
  145. }
  146. }