home.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. .container-article-width {
  34. @media screen and (min-width: 1400px){
  35. max-width: 1200px;
  36. }
  37. @media screen and (min-width: 1200px) and (max-width: 1399px){
  38. max-width: 750px;
  39. }
  40. @media screen and (min-width: 992px) and (max-width: 1199px){
  41. max-width: 800px;
  42. }
  43. .article-content-holder {
  44. margin: 3rem 0;
  45. .title {
  46. margin-bottom: 1.5rem;
  47. line-height: 2;
  48. color: $primary;
  49. }
  50. .author-published-holder {
  51. display: flex;
  52. align-items: center;
  53. margin-bottom: 1.5rem;
  54. .author-avatar {
  55. width: 3rem;
  56. height: 3rem;
  57. border-radius: 50%;
  58. }
  59. .author-published-text {
  60. margin-right: 0.75rem;
  61. .author-name {
  62. margin-bottom: 0.625rem;
  63. }
  64. .published-at {
  65. color: lighten($gray, 20);
  66. font-size: 80%;
  67. }
  68. }
  69. }
  70. .content-text {
  71. h1, h2, h3, h4,h5, h6 {
  72. margin-top: 2em;
  73. margin-bottom: 1em;
  74. &:first-child {
  75. margin-top: 0;
  76. }
  77. }
  78. div {
  79. text-align: justify;
  80. line-height: 2;
  81. margin-bottom: 0.75rem;
  82. }
  83. ul {
  84. list-style-type: none;
  85. padding-right: 1.2rem;
  86. padding-left: 1.2rem;
  87. li {
  88. line-height: 2;
  89. &:before {
  90. content: '✓';
  91. color: $primary;
  92. padding: 2px 0 2px 2px;
  93. font-weight: 600;
  94. }
  95. }
  96. }
  97. ol {
  98. counter-reset: item;
  99. padding-right: 1.2rem;
  100. padding-left: 1.2rem;
  101. li {
  102. display: block;
  103. line-height: 2;
  104. &:before {
  105. content: counter(item) ". ";
  106. counter-increment: item;
  107. color: $primary;
  108. font-weight: 600;
  109. }
  110. }
  111. }
  112. div {
  113. img {
  114. margin: 1rem 0;
  115. @media screen and (max-width: 992px){
  116. max-width: 100%;
  117. }
  118. }
  119. }
  120. video {
  121. margin: 1rem 0;
  122. width: 100%;
  123. }
  124. table {
  125. margin: 1rem 0;
  126. thead {
  127. background-color: $primary;
  128. color: $white;
  129. }
  130. }
  131. blockquote{
  132. background: #f9f9f9;
  133. border-right: 0.625rem solid $info;
  134. margin: 0.5rem 1.2rem;
  135. padding: 10px 20px;
  136. &:before {
  137. content: '\201D';
  138. line-height: 0;
  139. right: -11px;
  140. position: relative;
  141. top: 30px;
  142. color: $info;
  143. font-size: 3em;
  144. }
  145. }
  146. }
  147. }
  148. .article-button {
  149. display: flex;
  150. justify-content: space-between;
  151. align-items: center;
  152. margin-bottom: 3rem;
  153. }
  154. }
  155. .comment-customers {
  156. .parent-reply-body {
  157. .reply-post {
  158. border-left: 1px solid;
  159. color: lighten($gray, 20);
  160. height: 22px;
  161. padding-left: 0.625rem;
  162. .reply-post-icon {
  163. &:hover {
  164. cursor: pointer;
  165. }
  166. }
  167. }
  168. .reply-post-like-button {
  169. padding-right: 0.625rem;
  170. font-size: 15px;
  171. display: inline-block;
  172. color: #afb6bc;
  173. }
  174. .user-description {
  175. display: flex;
  176. justify-content: space-between;
  177. align-items: center;
  178. margin-bottom: 0.5rem;
  179. @media screen and (max-width: 576px){
  180. align-items: baseline;
  181. }
  182. .user-description-holder {
  183. display: flex;
  184. align-items: flex-end;
  185. @media screen and (max-width: 576px){
  186. align-items: flex-start;
  187. flex-direction: column;
  188. }
  189. }
  190. .user-name {
  191. color: $primary;
  192. font-weight: 600;
  193. padding-left: 0.625rem;
  194. }
  195. .item-details {
  196. display: flex;
  197. align-items: baseline;
  198. color: lighten($gray, 20);
  199. font-size: 80%;
  200. .item-details-clock {
  201. margin-left: 0.25rem;
  202. }
  203. .item-details-time {
  204. border-right: 1px solid;
  205. padding-right: 0.25rem;
  206. }
  207. .item-details-date {
  208. padding-left: 0.25rem;
  209. }
  210. }
  211. }
  212. }
  213. }