home.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  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-in-out;
  31. text-decoration: none;
  32. &:hover {
  33. text-decoration: none;
  34. }
  35. }
  36. // navbar
  37. .navbar {
  38. min-height: 80px;
  39. .nav-link {
  40. transition: all 0.3s ease-in-out;
  41. font-weight: 600;
  42. padding: 0 0.875rem;
  43. @media screen and (max-width: 991px){
  44. padding: 0.375rem 0;
  45. font-weight: 500;
  46. //border-top: 1px solid #eee;
  47. border-top: 1px dashed #eee;
  48. }
  49. }
  50. .navbar-toggler{
  51. height: 64px;
  52. border: none;
  53. padding: 0;
  54. outline: none;
  55. &:focus{
  56. box-shadow: none;
  57. }
  58. .hamburger-toggle{
  59. position: relative;
  60. display: inline-block;
  61. width: 50px;
  62. height: 50px;
  63. z-index: 11;
  64. float: right;
  65. .hamburger {
  66. position: absolute;
  67. transform: translate(-50%, -50%) rotate(0deg);
  68. //left: 50%;
  69. left: 25px;
  70. top: 50%;
  71. width: 50%;
  72. height: 50%;
  73. pointer-events: none;
  74. span {
  75. width: 100%;
  76. height: 4px;
  77. position: absolute;
  78. background: $secondary;
  79. border-radius: 2px;
  80. z-index: 1;
  81. transition: transform 0.2s cubic-bezier(0.77,0.2,0.05,1.0), background 0.2s cubic-bezier(0.77,0.2,0.05,1.0), all 0.2s ease-in-out;
  82. left: 0px;
  83. &:first-child{
  84. top: 10%;
  85. transform-origin: 50% 50%;
  86. transform: translate(0% -50%) !important;
  87. }
  88. &:nth-child(2){
  89. top: 50%;
  90. transform: translate(0,-50%);
  91. }
  92. &:last-child{
  93. left: 0px;
  94. top: auto;
  95. bottom: 10%;
  96. transform-origin: 50% 50%;
  97. }
  98. }
  99. &.active{
  100. span {
  101. position: absolute;
  102. margin: 0;
  103. &:first-child{
  104. top: 45%;
  105. transform: rotate(45deg);
  106. }
  107. &:nth-child(2){
  108. left: 50%;
  109. width: 0px;
  110. }
  111. &:last-child{
  112. top: 45%;
  113. transform: rotate(-45deg);
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. .navbar-nav {
  121. //padding-right: 1.25rem;
  122. padding: 0 1rem;
  123. }
  124. }
  125. .navbar-light .navbar-nav .show > .nav-link, .navbar-light .navbar-nav .nav-link.active,
  126. .navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
  127. color: $secondary;
  128. }
  129. // style for content single article page
  130. .container-article-width {
  131. @media screen and (min-width: 1400px){
  132. max-width: 1200px;
  133. }
  134. @media screen and (min-width: 1200px) and (max-width: 1399px){
  135. max-width: 750px;
  136. }
  137. @media screen and (min-width: 992px) and (max-width: 1199px){
  138. max-width: 800px;
  139. }
  140. .article-content-holder {
  141. margin: 3rem 0;
  142. .title {
  143. margin-bottom: 1.5rem;
  144. line-height: 2;
  145. color: $primary;
  146. }
  147. .author-published-holder {
  148. display: flex;
  149. align-items: center;
  150. margin-bottom: 1.5rem;
  151. .author-avatar {
  152. width: 3rem;
  153. height: 3rem;
  154. border-radius: 50%;
  155. }
  156. .author-published-text {
  157. margin-right: 0.75rem;
  158. .author-name {
  159. margin-bottom: 0.625rem;
  160. }
  161. .published-at {
  162. color: lighten($gray, 20);
  163. font-size: 80%;
  164. }
  165. }
  166. }
  167. .content-text {
  168. h1, h2, h3, h4,h5, h6 {
  169. margin-top: 2em;
  170. margin-bottom: 1em;
  171. &:first-child {
  172. margin-top: 0;
  173. }
  174. }
  175. div {
  176. text-align: justify;
  177. line-height: 2;
  178. margin-bottom: 0.75rem;
  179. }
  180. ul {
  181. list-style-type: none;
  182. padding-right: 1.2rem;
  183. padding-left: 1.2rem;
  184. li {
  185. line-height: 2;
  186. &:before {
  187. content: '✓';
  188. color: $primary;
  189. padding: 2px 0 2px 2px;
  190. font-weight: 600;
  191. }
  192. }
  193. }
  194. ol {
  195. counter-reset: item;
  196. padding-right: 1.2rem;
  197. padding-left: 1.2rem;
  198. li {
  199. display: block;
  200. line-height: 2;
  201. &:before {
  202. content: counter(item) ". ";
  203. counter-increment: item;
  204. color: $primary;
  205. font-weight: 600;
  206. }
  207. }
  208. }
  209. div {
  210. img {
  211. margin: 1rem 0;
  212. @media screen and (max-width: 992px){
  213. max-width: 100%;
  214. }
  215. }
  216. }
  217. video {
  218. margin: 1rem 0;
  219. width: 100%;
  220. }
  221. table {
  222. margin: 1rem 0;
  223. thead {
  224. background-color: $primary;
  225. color: $white;
  226. }
  227. }
  228. blockquote{
  229. background: #f9f9f9;
  230. border-right: 0.625rem solid $info;
  231. margin: 0.5rem 1.2rem;
  232. padding: 10px 20px;
  233. &:before {
  234. content: '\201D';
  235. line-height: 0;
  236. right: -11px;
  237. position: relative;
  238. top: 30px;
  239. color: $info;
  240. font-size: 3em;
  241. }
  242. }
  243. }
  244. }
  245. .article-button {
  246. display: flex;
  247. justify-content: space-between;
  248. align-items: center;
  249. margin-bottom: 3rem;
  250. }
  251. }
  252. // comments
  253. .comment-customers {
  254. .parent-reply-body {
  255. .reply-post {
  256. border-left: 1px solid;
  257. color: lighten($gray, 20);
  258. height: 22px;
  259. padding-left: 0.625rem;
  260. .reply-post-icon {
  261. transition: all 0.5s ease;
  262. &:hover {
  263. cursor: pointer;
  264. }
  265. }
  266. }
  267. .reply-post-like-button {
  268. padding-right: 0.625rem;
  269. font-size: 15px;
  270. display: inline-block;
  271. color: #afb6bc;
  272. }
  273. .user-description {
  274. display: flex;
  275. justify-content: space-between;
  276. align-items: center;
  277. margin-bottom: 0.5rem;
  278. @media screen and (max-width: 576px){
  279. align-items: baseline;
  280. }
  281. .user-description-holder {
  282. display: flex;
  283. align-items: flex-end;
  284. @media screen and (max-width: 576px){
  285. align-items: flex-start;
  286. flex-direction: column;
  287. }
  288. }
  289. .user-name {
  290. color: $primary;
  291. font-weight: 600;
  292. padding-left: 0.625rem;
  293. @media screen and (max-width: 576px){
  294. margin-bottom: 0.5rem;
  295. }
  296. }
  297. .item-details {
  298. display: flex;
  299. align-items: baseline;
  300. color: lighten($gray, 20);
  301. font-size: 80%;
  302. .item-details-clock {
  303. margin-left: 0.25rem;
  304. }
  305. .item-details-time {
  306. border-right: 1px solid;
  307. padding-right: 0.25rem;
  308. }
  309. .item-details-date {
  310. padding-left: 0.25rem;
  311. }
  312. }
  313. }
  314. .user-comment-text {
  315. margin: 1rem 0;
  316. text-align: justify;
  317. }
  318. }
  319. .form-reply-opinion {
  320. margin: 0.5rem 0 1.5rem;
  321. }
  322. }
  323. // latest article in single bolg page
  324. .latest-article {
  325. .card {
  326. background: transparent;
  327. border: none
  328. }
  329. .card-title {
  330. line-height: 2;
  331. text-align: justify;
  332. color: $primary;
  333. }
  334. .card-text {
  335. text-align: justify;
  336. }
  337. .author-published-holder {
  338. display: flex;
  339. align-items: center;
  340. margin-bottom: 1.5rem;
  341. margin-top: 1rem
  342. }
  343. .author-avatar {
  344. width: 3rem;
  345. height: 3rem;
  346. border-radius: 50%;
  347. }
  348. .author-published-text {
  349. margin-right: 0.75rem;
  350. }
  351. .author-name {
  352. margin-bottom: 0.625rem;
  353. }
  354. .published-at {
  355. color: lighten($gray, 20);
  356. font-size: 80%;
  357. }
  358. }
  359. // pagination
  360. .pagination-holder {
  361. margin-top: 2rem;
  362. .pagination {
  363. padding-right: 0;
  364. }
  365. .page-item:first-child .page-link {
  366. border-top-left-radius: 0;
  367. border-bottom-left-radius: 0;
  368. border-top-right-radius: 0.25rem;
  369. border-bottom-right-radius: 0.25rem;
  370. }
  371. .page-item:last-child .page-link {
  372. border-top-right-radius: 0;
  373. border-bottom-right-radius: 0;
  374. border-top-left-radius: 0.25rem;
  375. border-bottom-left-radius: 0.25rem;
  376. }
  377. }
  378. // style for category blog page
  379. .article-category-title-holder {
  380. color: $primary;
  381. line-height: 2;
  382. }
  383. .article-category-content-holder {
  384. .article-content {
  385. position: relative;
  386. padding: 32px 32px;
  387. transition: all 0.3s ease-in-out;
  388. border-bottom: 1px solid #e8eaf1;
  389. &:hover {
  390. background-color: #e8eaf1;
  391. border-bottom: 1px solid #e8eaf1;
  392. border-radius: 0.25rem;
  393. }
  394. .sub-title {
  395. color: lighten($gray, 20);
  396. font-size: 80%;
  397. display: flex;
  398. justify-content: space-between;
  399. margin-bottom: 0.25rem;
  400. @media screen and (max-width: 576px) {
  401. flex-direction: column;
  402. }
  403. .fa {
  404. color: $info;
  405. }
  406. .published-at {
  407. margin-left: 0.625rem;
  408. }
  409. }
  410. .title {
  411. font-size: 1.1rem;
  412. font-weight: 500;
  413. line-height: 2;
  414. }
  415. .lead-text {
  416. margin-top: 0.625rem;
  417. color: $gray;
  418. line-height: 2;
  419. text-align: justify;
  420. }
  421. .category {
  422. margin-top: 0.75rem;
  423. }
  424. .article-footer {
  425. margin-top: 1.2rem;
  426. display: flex;
  427. align-items: center;
  428. justify-content: space-between;
  429. .author-published-holder {
  430. display: flex;
  431. align-items: center;
  432. .author-avatar {
  433. width: 3rem;
  434. height: 3rem;
  435. border-radius: 50%;
  436. }
  437. .author-name {
  438. margin-right: 0.75rem;
  439. }
  440. }
  441. /*.duration-of-study {
  442. color: lighten($gray, 20);
  443. font-size: 80%;
  444. @media screen and (max-width: 576px) {
  445. margin-top: 0.75rem;
  446. }
  447. }*/
  448. }
  449. }
  450. }