home.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. .title {
  36. margin-bottom: 1.5rem;
  37. line-height: 2;
  38. color: $primary;
  39. }
  40. .author-published-holder {
  41. display: flex;
  42. align-items: center;
  43. margin-bottom: 1.5rem;
  44. .author-avatar {
  45. width: 3rem;
  46. height: 3rem;
  47. border-radius: 50%;
  48. }
  49. .author-published-text {
  50. margin-right: 0.75rem;
  51. .author-name {
  52. margin-bottom: 0.625rem;
  53. }
  54. .published-at {
  55. color: lighten($gray, 20);
  56. font-size: 80%;
  57. }
  58. }
  59. }
  60. .content-text {
  61. h1, h2, h3, h4,h5, h6 {
  62. margin-top: 2em;
  63. margin-bottom: 1em;
  64. &:first-child {
  65. margin-top: 0;
  66. }
  67. }
  68. div {
  69. text-align: justify;
  70. line-height: 2;
  71. margin-bottom: 0.75rem;
  72. }
  73. ul {
  74. list-style-type: none;
  75. padding-right: 1.2rem;
  76. padding-left: 1.2rem;
  77. li {
  78. line-height: 2;
  79. &:before {
  80. content: '✓';
  81. color: $primary;
  82. padding: 2px 0 2px 2px;
  83. font-weight: 600;
  84. }
  85. }
  86. }
  87. ol {
  88. counter-reset: item;
  89. padding-right: 1.2rem;
  90. padding-left: 1.2rem;
  91. li {
  92. display: block;
  93. line-height: 2;
  94. &:before {
  95. content: counter(item) ". ";
  96. counter-increment: item;
  97. color: $primary;
  98. font-weight: 600;
  99. }
  100. }
  101. }
  102. div {
  103. img {
  104. margin: 1rem 0;
  105. @media screen and (max-width: 768px){
  106. max-width: 100%;
  107. }
  108. }
  109. }
  110. }
  111. }