home.scss 9.3 KB

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