home.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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. // style for content single article page
  34. .container-article-width {
  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: 750px;
  40. }
  41. @media screen and (min-width: 992px) and (max-width: 1199px){
  42. max-width: 800px;
  43. }
  44. .article-content-holder {
  45. margin: 3rem 0;
  46. .title {
  47. margin-bottom: 1.5rem;
  48. line-height: 2;
  49. color: $primary;
  50. }
  51. .author-published-holder {
  52. display: flex;
  53. align-items: center;
  54. margin-bottom: 1.5rem;
  55. .author-avatar {
  56. width: 3rem;
  57. height: 3rem;
  58. border-radius: 50%;
  59. }
  60. .author-published-text {
  61. margin-right: 0.75rem;
  62. .author-name {
  63. margin-bottom: 0.625rem;
  64. }
  65. .published-at {
  66. color: lighten($gray, 20);
  67. font-size: 80%;
  68. }
  69. }
  70. }
  71. .content-text {
  72. h1, h2, h3, h4,h5, h6 {
  73. margin-top: 2em;
  74. margin-bottom: 1em;
  75. &:first-child {
  76. margin-top: 0;
  77. }
  78. }
  79. div {
  80. text-align: justify;
  81. line-height: 2;
  82. margin-bottom: 0.75rem;
  83. }
  84. ul {
  85. list-style-type: none;
  86. padding-right: 1.2rem;
  87. padding-left: 1.2rem;
  88. li {
  89. line-height: 2;
  90. &:before {
  91. content: '✓';
  92. color: $primary;
  93. padding: 2px 0 2px 2px;
  94. font-weight: 600;
  95. }
  96. }
  97. }
  98. ol {
  99. counter-reset: item;
  100. padding-right: 1.2rem;
  101. padding-left: 1.2rem;
  102. li {
  103. display: block;
  104. line-height: 2;
  105. &:before {
  106. content: counter(item) ". ";
  107. counter-increment: item;
  108. color: $primary;
  109. font-weight: 600;
  110. }
  111. }
  112. }
  113. div {
  114. img {
  115. margin: 1rem 0;
  116. @media screen and (max-width: 992px){
  117. max-width: 100%;
  118. }
  119. }
  120. }
  121. video {
  122. margin: 1rem 0;
  123. width: 100%;
  124. }
  125. table {
  126. margin: 1rem 0;
  127. thead {
  128. background-color: $primary;
  129. color: $white;
  130. }
  131. }
  132. blockquote{
  133. background: #f9f9f9;
  134. border-right: 0.625rem solid $info;
  135. margin: 0.5rem 1.2rem;
  136. padding: 10px 20px;
  137. &:before {
  138. content: '\201D';
  139. line-height: 0;
  140. right: -11px;
  141. position: relative;
  142. top: 30px;
  143. color: $info;
  144. font-size: 3em;
  145. }
  146. }
  147. }
  148. }
  149. .article-button {
  150. display: flex;
  151. justify-content: space-between;
  152. align-items: center;
  153. margin-bottom: 3rem;
  154. }
  155. }
  156. // comments
  157. .comment-customers {
  158. .parent-reply-body {
  159. .reply-post {
  160. border-left: 1px solid;
  161. color: lighten($gray, 20);
  162. height: 22px;
  163. padding-left: 0.625rem;
  164. .reply-post-icon {
  165. transition: all 0.5s ease;
  166. &:hover {
  167. cursor: pointer;
  168. }
  169. }
  170. }
  171. .reply-post-like-button {
  172. padding-right: 0.625rem;
  173. font-size: 15px;
  174. display: inline-block;
  175. color: #afb6bc;
  176. }
  177. .user-description {
  178. display: flex;
  179. justify-content: space-between;
  180. align-items: center;
  181. margin-bottom: 0.5rem;
  182. @media screen and (max-width: 576px){
  183. align-items: baseline;
  184. }
  185. .user-description-holder {
  186. display: flex;
  187. align-items: flex-end;
  188. @media screen and (max-width: 576px){
  189. align-items: flex-start;
  190. flex-direction: column;
  191. }
  192. }
  193. .user-name {
  194. color: $primary;
  195. font-weight: 600;
  196. padding-left: 0.625rem;
  197. @media screen and (max-width: 576px){
  198. margin-bottom: 0.5rem;
  199. }
  200. }
  201. .item-details {
  202. display: flex;
  203. align-items: baseline;
  204. color: lighten($gray, 20);
  205. font-size: 80%;
  206. .item-details-clock {
  207. margin-left: 0.25rem;
  208. }
  209. .item-details-time {
  210. border-right: 1px solid;
  211. padding-right: 0.25rem;
  212. }
  213. .item-details-date {
  214. padding-left: 0.25rem;
  215. }
  216. }
  217. }
  218. .user-comment-text {
  219. margin: 1rem 0;
  220. text-align: justify;
  221. }
  222. }
  223. .form-reply-opinion {
  224. margin: 0.5rem 0 1.5rem;
  225. }
  226. }
  227. // latest article in single bolg page
  228. .latest-article {
  229. .card {
  230. background: transparent;
  231. border: none
  232. }
  233. .card-title {
  234. line-height: 2;
  235. text-align: justify;
  236. color: $primary;
  237. }
  238. .card-text {
  239. text-align: justify;
  240. }
  241. .author-published-holder {
  242. display: flex;
  243. align-items: center;
  244. margin-bottom: 1.5rem;
  245. margin-top: 1rem
  246. }
  247. .author-avatar {
  248. width: 3rem;
  249. height: 3rem;
  250. border-radius: 50%;
  251. }
  252. .author-published-text {
  253. margin-right: 0.75rem;
  254. }
  255. .author-name {
  256. margin-bottom: 0.625rem;
  257. }
  258. .published-at {
  259. color: lighten($gray, 20);
  260. font-size: 80%;
  261. }
  262. }
  263. // pagination
  264. .pagination-holder {
  265. margin-top: 2rem;
  266. .pagination {
  267. padding-right: 0;
  268. }
  269. .page-item:first-child .page-link {
  270. border-top-left-radius: 0;
  271. border-bottom-left-radius: 0;
  272. border-top-right-radius: 0.25rem;
  273. border-bottom-right-radius: 0.25rem;
  274. }
  275. .page-item:last-child .page-link {
  276. border-top-right-radius: 0;
  277. border-bottom-right-radius: 0;
  278. border-top-left-radius: 0.25rem;
  279. border-bottom-left-radius: 0.25rem;
  280. }
  281. }
  282. // style for category blog page
  283. .article-category-title-holder {
  284. color: $primary;
  285. line-height: 2;
  286. }
  287. .article-category-content-holder {
  288. .article-content {
  289. position: relative;
  290. padding: 40px 24px;
  291. transition: all 0.3s ease-in-out;
  292. border-bottom: 1px solid #e8eaf1;
  293. &:hover {
  294. background-color: #e8eaf1;
  295. border-bottom: 1px solid #e8eaf1;
  296. border-radius: 0.25rem;
  297. }
  298. .sub-title {
  299. color: lighten($gray, 20);
  300. font-size: 80%;
  301. display: flex;
  302. justify-content: space-between;
  303. margin-bottom: 0.25rem;
  304. @media screen and (max-width: 576px) {
  305. flex-direction: column;
  306. }
  307. .fa {
  308. color: $info;
  309. }
  310. .published-at {
  311. margin-left: 0.625rem;
  312. }
  313. }
  314. .title {
  315. font-size: 1.1rem;
  316. font-weight: 500;
  317. line-height: 2;
  318. }
  319. .lead-text {
  320. margin-top: 0.625rem;
  321. color: $gray;
  322. line-height: 2;
  323. text-align: justify;
  324. }
  325. .category {
  326. margin-top: 0.75rem;
  327. }
  328. .article-footer {
  329. margin-top: 1.2rem;
  330. display: flex;
  331. align-items: center;
  332. justify-content: space-between;
  333. .author-published-holder {
  334. display: flex;
  335. align-items: center;
  336. .author-avatar {
  337. width: 3rem;
  338. height: 3rem;
  339. border-radius: 50%;
  340. }
  341. .author-name {
  342. margin-right: 0.75rem;
  343. }
  344. }
  345. /*.duration-of-study {
  346. color: lighten($gray, 20);
  347. font-size: 80%;
  348. @media screen and (max-width: 576px) {
  349. margin-top: 0.75rem;
  350. }
  351. }*/
  352. }
  353. }
  354. }