timeline.scss 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853
  1. // ================================================================================================
  2. // File Name: timeline.scss
  3. // Description: Timeline Page specific SCSS.
  4. // ----------------------------------------------------------------------------------------------
  5. // Item name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ================================================================================================
  9. // Core mixins
  10. @import "../bootstrap/functions";
  11. @import "../bootstrap/mixins";
  12. @import "../bootstrap-extended/mixins";
  13. // Core variables and mixins overrides
  14. @import "../core/variables/variables";
  15. @import "../bootstrap/variables";
  16. // Overrides user variable
  17. @import "../core/variables/components-variables";
  18. /* Timeline */
  19. .timeline {
  20. position: relative;
  21. display: block;
  22. margin: 0;
  23. padding: 10px 0;
  24. list-style: none;
  25. &:after {
  26. content: " ";
  27. display: table;
  28. clear: both;
  29. }
  30. &:before {
  31. content: " ";
  32. display: table;
  33. }
  34. >li {
  35. list-style: none;
  36. &:nth-child(even) {
  37. float: left;
  38. clear: left;
  39. }
  40. &:nth-child(odd) {
  41. float: right;
  42. clear: right;
  43. //margin-top: 20px;
  44. }
  45. }
  46. .media {
  47. border-bottom: 1px solid #eee;
  48. font-size: 13px;
  49. p {
  50. font-size: 13px;
  51. }
  52. &:last-child {
  53. border-bottom: 0;
  54. }
  55. }
  56. }
  57. .timeline-line+.timeline-item {
  58. margin-top: -20px;
  59. }
  60. .timeline-group {
  61. display: block;
  62. position: relative;
  63. margin: 20px 0;
  64. text-align: center;
  65. float: none !important;
  66. z-index: 1;
  67. }
  68. .timeline-poster {
  69. margin-top: -20px;
  70. .btn-link {
  71. color: #a1aab0;
  72. &:active {
  73. color: #3e5771;
  74. }
  75. &:focus {
  76. color: #3e5771;
  77. }
  78. &:hover {
  79. color: #3e5771;
  80. }
  81. }
  82. .btn-link.active {
  83. color: #3e5771;
  84. }
  85. }
  86. #timeline.timeline-center{
  87. .timeline-line {
  88. display: inline-block;
  89. position: absolute;
  90. top: 0;
  91. bottom: 0;
  92. left: 50%;
  93. width: 2px;
  94. background-color: #ddd;
  95. transform: translate(-50%, 0);
  96. }
  97. .timeline-item {
  98. position: relative;
  99. display: inline-block;
  100. width: 50%;
  101. padding: 0 50px 35px;
  102. &:nth-child(even) {
  103. padding: 0px 35px 50px 0px;
  104. &:after {
  105. content: '';
  106. position: absolute;
  107. right: 19px;
  108. top: 10px;
  109. width: 0;
  110. height: 0;
  111. border-top: 12px solid transparent;
  112. border-bottom: 12px solid transparent;
  113. border-left: 12px solid #ccc;
  114. z-index: 1;
  115. right: 25px;
  116. top: 20px;
  117. border-left: 11px solid #fff;
  118. }
  119. &:before {
  120. content: '';
  121. position: absolute;
  122. right: 24px;
  123. top: 20px;
  124. width: 0;
  125. height: 0;
  126. border-top: 12px solid transparent;
  127. border-bottom: 12px solid transparent;
  128. border-left: 12px solid #ccc;
  129. z-index: 1;
  130. }
  131. >.timeline-badge {
  132. right: -20px;
  133. }
  134. }
  135. &:nth-child(odd) {
  136. padding: 0px 0px 50px 35px;
  137. &:after {
  138. content: '';
  139. position: absolute;
  140. left: 19px;
  141. top: 10px;
  142. width: 0;
  143. height: 0;
  144. border-top: 12px solid transparent;
  145. border-bottom: 12px solid transparent;
  146. border-right: 12px solid #ccc;
  147. z-index: 1;
  148. left: 25px;
  149. top: 20px;
  150. border-right: 11px solid #fff;
  151. }
  152. &:before {
  153. content: '';
  154. position: absolute;
  155. left: 24px;
  156. top: 20px;
  157. width: 0;
  158. height: 0;
  159. border-top: 12px solid transparent;
  160. border-bottom: 12px solid transparent;
  161. border-right: 12px solid #ccc;
  162. z-index: 1;
  163. }
  164. >.timeline-badge {
  165. left: -20px;
  166. }
  167. }
  168. >.timeline-badge {
  169. position: absolute;
  170. top: 12px;
  171. z-index: 1;
  172. >span {
  173. display: inline-block;
  174. width: 40px;
  175. height: 40px;
  176. // border: 1px solid #999;
  177. border-radius: 50%;
  178. text-align: center;
  179. // background-color: #fff;
  180. text-decoration: none;
  181. transition: all ease .3s;
  182. i{
  183. color: $white;
  184. font-size: 1.6rem;
  185. display: block;
  186. line-height: 40px;
  187. top: 0;
  188. }
  189. &:active {
  190. transform: scale(1.1);
  191. }
  192. &:focus {
  193. transform: scale(1.1);
  194. }
  195. &:hover {
  196. transform: scale(1.1);
  197. }
  198. }
  199. >a.active {
  200. transform: scale(1.1);
  201. }
  202. }
  203. >.timeline-panel {
  204. position: relative;
  205. background-color: #fff;
  206. border: 1px solid #ddd;
  207. border-radius: 4px;
  208. &:hover {
  209. .timeline-actions {
  210. display: block;
  211. }
  212. }
  213. }
  214. }
  215. }
  216. #timeline.timeline-right{
  217. .timeline-line {
  218. display: inline-block;
  219. position: absolute;
  220. top: 0;
  221. bottom: 0;
  222. right: 12px;
  223. width: 2px;
  224. background-color: #ddd;
  225. transform: translate(-50%, 0);
  226. }
  227. .timeline-group{
  228. text-align: right;
  229. }
  230. .timeline-item {
  231. position: relative;
  232. display: inline-block;
  233. width: 100%;
  234. padding: 0px 43px 35px 0px;
  235. &:after {
  236. content: '';
  237. position: absolute;
  238. right: 33px;
  239. top: 21px;
  240. width: 0;
  241. height: 0;
  242. z-index: 1;
  243. border-top: 11px solid $body-bg;
  244. border-bottom: 11px solid $body-bg;
  245. border-left: 11px solid #fff;
  246. }
  247. &:before {
  248. content: '';
  249. position: absolute;
  250. right: 32px;
  251. top: 20px;
  252. width: 0;
  253. height: 0;
  254. border-top: 12px solid transparent;
  255. border-bottom: 12px solid transparent;
  256. border-left: 12px solid #ccc;
  257. z-index: 1;
  258. }
  259. >.timeline-badge {
  260. right: -8px;
  261. }
  262. >.timeline-badge {
  263. position: absolute;
  264. top: 12px;
  265. z-index: 1;
  266. >span {
  267. display: inline-block;
  268. width: 40px;
  269. height: 40px;
  270. // border: 1px solid #999;
  271. border-radius: 50%;
  272. text-align: center;
  273. // background-color: #fff;
  274. text-decoration: none;
  275. transition: all ease .3s;
  276. i{
  277. color: $white;
  278. font-size: 1.6rem;
  279. display: block;
  280. line-height: 40px;
  281. top: 0;
  282. }
  283. &:active {
  284. transform: scale(1.1);
  285. }
  286. &:focus {
  287. transform: scale(1.1);
  288. }
  289. &:hover {
  290. transform: scale(1.1);
  291. }
  292. }
  293. >a.active {
  294. transform: scale(1.1);
  295. }
  296. }
  297. >.timeline-panel {
  298. position: relative;
  299. background-color: #fff;
  300. border: 1px solid #ddd;
  301. border-radius: 4px;
  302. &:hover {
  303. .timeline-actions {
  304. display: block;
  305. }
  306. }
  307. }
  308. }
  309. .timeline-item.block {
  310. &:nth-child(even) {
  311. &:before {
  312. right: 8px;
  313. left: auto;
  314. }
  315. &:after{
  316. right: 11px;
  317. left: auto;
  318. }
  319. }
  320. &:nth-child(odd) {
  321. &:after {
  322. right: 8px;
  323. right: auto;
  324. }
  325. }
  326. }
  327. }
  328. #timeline.timeline-left{
  329. .timeline-line {
  330. display: inline-block;
  331. position: absolute;
  332. top: 0;
  333. bottom: 0;
  334. left: 12px;
  335. width: 2px;
  336. background-color: #ddd;
  337. transform: translate(-50%, 0);
  338. }
  339. .timeline-group{
  340. text-align: left;
  341. }
  342. .timeline-item {
  343. position: relative;
  344. display: inline-block;
  345. width: 100%;
  346. padding: 0 0 35px 43px;
  347. &:after {
  348. content: '';
  349. position: absolute;
  350. left: 33px;
  351. top: 21px;
  352. width: 0;
  353. height: 0;
  354. z-index: 1;
  355. border-top: 11px solid $body-bg;
  356. border-bottom: 11px solid $body-bg;
  357. border-right: 11px solid #fff;
  358. }
  359. &:before {
  360. content: '';
  361. position: absolute;
  362. left: 32px;
  363. top: 20px;
  364. width: 0;
  365. height: 0;
  366. border-top: 12px solid transparent;
  367. border-bottom: 12px solid transparent;
  368. border-right: 12px solid #ccc;
  369. z-index: 1;
  370. }
  371. >.timeline-badge {
  372. left: -8px;
  373. }
  374. >.timeline-badge {
  375. position: absolute;
  376. top: 12px;
  377. z-index: 1;
  378. >span {
  379. display: inline-block;
  380. width: 40px;
  381. height: 40px;
  382. // border: 1px solid #999;
  383. border-radius: 50%;
  384. text-align: center;
  385. // background-color: #fff;
  386. text-decoration: none;
  387. transition: all ease .3s;
  388. i{
  389. color: $white;
  390. font-size: 1.6rem;
  391. display: block;
  392. line-height: 40px;
  393. top: 0;
  394. }
  395. &:active {
  396. transform: scale(1.1);
  397. }
  398. &:focus {
  399. transform: scale(1.1);
  400. }
  401. &:hover {
  402. transform: scale(1.1);
  403. }
  404. }
  405. >a.active {
  406. transform: scale(1.1);
  407. }
  408. }
  409. >.timeline-panel {
  410. position: relative;
  411. background-color: #fff;
  412. border: 1px solid #ddd;
  413. border-radius: 4px;
  414. &:hover {
  415. .timeline-actions {
  416. display: block;
  417. }
  418. }
  419. }
  420. }
  421. }
  422. #timeline .timeline-item.block {
  423. &:nth-child(even) {
  424. width: 100% !important;
  425. margin-top: 5px;
  426. &:after {
  427. left: 50%;
  428. right: auto;
  429. top: -11px;
  430. border: 0;
  431. border-left: 12px solid transparent;
  432. border-right: 12px solid transparent;
  433. border-bottom: 12px solid #ccc;
  434. transform: translate(-50%, 0);
  435. top: -10px;
  436. border: 0;
  437. border-left: 11px solid $body-bg;
  438. border-right: 11px solid $body-bg;
  439. border-bottom: 11px solid #fff;
  440. }
  441. &:before {
  442. left: 50%;
  443. right: auto;
  444. top: -11px;
  445. border: 0;
  446. border-left: 12px solid transparent;
  447. border-right: 12px solid transparent;
  448. border-bottom: 12px solid #ccc;
  449. transform: translate(-50%, 0);
  450. }
  451. >.timeline-badge {
  452. top: -28px;
  453. left: 50%;
  454. right: auto;
  455. transform: translate(-50%, 0);
  456. }
  457. }
  458. &:nth-child(odd) {
  459. width: 100% !important;
  460. margin-top: 5px;
  461. &:after {
  462. left: 50%;
  463. right: auto;
  464. top: -11px;
  465. border: 0;
  466. border-left: 12px solid transparent;
  467. border-right: 12px solid transparent;
  468. border-bottom: 12px solid #ccc;
  469. transform: translate(-50%, 0);
  470. top: -10px;
  471. border: 0;
  472. border-left: 11px solid $body-bg;
  473. border-right: 11px solid $body-bg;
  474. border-bottom: 11px solid #fff;
  475. }
  476. &:before {
  477. left: 50%;
  478. right: auto;
  479. top: -11px;
  480. border: 0;
  481. border-left: 12px solid transparent;
  482. border-right: 12px solid transparent;
  483. border-bottom: 12px solid #ccc;
  484. transform: translate(-50%, 0);
  485. }
  486. >.timeline-badge {
  487. top: -28px;
  488. left: 50%;
  489. right: auto;
  490. transform: translate(-50%, 0);
  491. }
  492. }
  493. }
  494. .timeline-actions {
  495. display: none;
  496. }
  497. .timeline-content {
  498. padding: 15px;
  499. }
  500. .timeline-footer {
  501. padding: 15px;
  502. border-top: 1px solid #eee;
  503. background-color: #fbfcfc;
  504. border-radius: 0 0 5px 5px;
  505. }
  506. .timeline-heading {
  507. padding: 15px;
  508. font-size: 20px;
  509. }
  510. .timeline-liveliness {
  511. padding: 15px;
  512. border-top: 1px solid #eee;
  513. background-color: #fbfcfc;
  514. }
  515. .timeline-heading+.timeline-content {
  516. padding-top: 0;
  517. }
  518. .timeline-date {
  519. font-size: 14px;
  520. color: #aaa;
  521. }
  522. .timeline-embed {
  523. position: relative;
  524. padding-bottom: 56.25%;
  525. padding-top: 25px;
  526. height: 0;
  527. .embed-element {
  528. position: absolute;
  529. top: 0;
  530. left: 0;
  531. width: 100%;
  532. height: 100%;
  533. }
  534. embed {
  535. position: absolute;
  536. top: 0;
  537. left: 0;
  538. width: 100%;
  539. height: 100%;
  540. }
  541. iframe {
  542. position: absolute;
  543. top: 0;
  544. left: 0;
  545. width: 100%;
  546. height: 100%;
  547. }
  548. object {
  549. position: absolute;
  550. top: 0;
  551. left: 0;
  552. width: 100%;
  553. height: 100%;
  554. }
  555. }
  556. .timeline-img {
  557. display: block;
  558. padding: 5px 0;
  559. }
  560. .timeline-img.first {
  561. margin-right: -10px;
  562. }
  563. .timeline-img.middle {
  564. margin-right: -10px;
  565. margin-left: -10px;
  566. }
  567. .timeline-img.last {
  568. margin-left: -10px;
  569. }
  570. .timeline-resume {
  571. border-top: 1px solid #eee;
  572. background-color: #fbfcfc;
  573. }
  574. .timeline-avatar {
  575. margin-top: -2px;
  576. margin-right: 10px;
  577. }
  578. .timeline-title {
  579. margin: 0;
  580. padding: 0;
  581. font-size: 14px;
  582. line-height: 1.42857;
  583. font-weight: 600;
  584. color: #3e5771;
  585. text-decoration: none;
  586. >small {
  587. display: block;
  588. font-size: 12px;
  589. line-height: 1.5;
  590. color: #a1aab0;
  591. overflow: hidden;
  592. text-overflow: ellipsis;
  593. white-space: nowrap;
  594. }
  595. }
  596. .wrapkit-content-rtl {
  597. .timeline-avatar {
  598. margin-right: 0;
  599. margin-left: 10px;
  600. }
  601. }
  602. @include media-breakpoint-up(lg) {
  603. .timeline-item {
  604. &:nth-child(even) {
  605. padding: 0px 35px 50px 0px;
  606. }
  607. &:nth-child(odd) {
  608. padding: 0 0px 50px 35px;
  609. // margin-top: 50px;
  610. }
  611. }
  612. }
  613. @include media-breakpoint-down(md) {
  614. .timeline {
  615. padding-left: 15px;
  616. }
  617. .timeline-line {
  618. left: 15px;
  619. }
  620. .timeline-group {
  621. display: inline-block;
  622. margin-left: -22px;
  623. }
  624. .timeline-item {
  625. width: 100% !important;
  626. margin-top: 0 !important;
  627. padding-right: 10px;
  628. &:nth-child(even) {
  629. &:after {
  630. left: 19px;
  631. top: 10px;
  632. border: 0;
  633. border-top: 12px solid transparent;
  634. border-bottom: 12px solid transparent;
  635. border-right: 12px solid #ccc;
  636. transform: translate(0, 0);
  637. left: 40px;
  638. top: 21px;
  639. border-top: 11px solid $body-bg;
  640. border-bottom: 11px solid $body-bg;
  641. border-right: 11px solid #fff;
  642. }
  643. &:before {
  644. left: 39px;
  645. top: 20px;
  646. border: 0;
  647. border-top: 12px solid transparent;
  648. border-bottom: 12px solid transparent;
  649. border-right: 12px solid #ccc;
  650. transform: translate(0, 0);
  651. }
  652. >.timeline-badge {
  653. top: 12px;
  654. left: -20px;
  655. right: auto;
  656. transform: translate(0, 0);
  657. }
  658. }
  659. &:nth-child(odd) {
  660. &:after {
  661. left: 19px;
  662. top: 10px;
  663. border: 0;
  664. border-top: 12px solid transparent;
  665. border-bottom: 12px solid transparent;
  666. border-right: 12px solid #ccc;
  667. transform: translate(0, 0);
  668. left: 40px;
  669. top: 21px;
  670. border-top: 11px solid $body-bg;
  671. border-bottom: 11px solid $body-bg;
  672. border-right: 11px solid #fff;
  673. }
  674. &:before {
  675. left: 39px;
  676. top: 20px;
  677. border: 0;
  678. border-top: 12px solid transparent;
  679. border-bottom: 12px solid transparent;
  680. border-right: 12px solid #ccc;
  681. transform: translate(0, 0);
  682. }
  683. >.timeline-badge {
  684. top: 12px;
  685. left: -20px;
  686. right: auto;
  687. transform: translate(0, 0);
  688. }
  689. }
  690. }
  691. .timeline-item.block {
  692. &:nth-child(even) {
  693. padding-bottom: 0;
  694. &:after {
  695. left: 19px;
  696. top: 10px;
  697. border: 0;
  698. border-top: 12px solid transparent;
  699. border-bottom: 12px solid transparent;
  700. border-right: 12px solid #ccc;
  701. transform: translate(0, 0);
  702. left: 20px;
  703. top: 11px;
  704. border-top: 11px solid $body-bg;
  705. border-bottom: 11px solid $body-bg;
  706. border-right: 11px solid #fff;
  707. }
  708. &:before {
  709. left: 19px;
  710. top: 10px;
  711. border: 0;
  712. border-top: 12px solid transparent;
  713. border-bottom: 12px solid transparent;
  714. border-right: 12px solid #ccc;
  715. transform: translate(0, 0);
  716. }
  717. >.timeline-badge {
  718. top: 12px;
  719. left: -6px;
  720. right: auto;
  721. transform: translate(0, 0);
  722. }
  723. }
  724. &:nth-child(odd) {
  725. padding-bottom: 0;
  726. &:after {
  727. left: 19px;
  728. top: 10px;
  729. border: 0;
  730. border-top: 12px solid transparent;
  731. border-bottom: 12px solid transparent;
  732. border-right: 12px solid #ccc;
  733. transform: translate(0, 0);
  734. left: 20px;
  735. top: 11px;
  736. border-top: 11px solid $body-bg;
  737. border-bottom: 11px solid $body-bg;
  738. border-right: 11px solid #fff;
  739. }
  740. &:before {
  741. left: 19px;
  742. top: 10px;
  743. border: 0;
  744. border-top: 12px solid transparent;
  745. border-bottom: 12px solid transparent;
  746. border-right: 12px solid #ccc;
  747. transform: translate(0, 0);
  748. }
  749. >.timeline-badge {
  750. top: 12px;
  751. left: -6px;
  752. right: auto;
  753. transform: translate(0, 0);
  754. }
  755. }
  756. }
  757. }
  758. @include media-breakpoint-down(md) {
  759. #timeline.timeline-wrapper{
  760. .timeline {
  761. padding: 0;
  762. .card-body{
  763. text-align:left;
  764. }
  765. }
  766. .timeline-line {
  767. display: inline-block;
  768. position: absolute;
  769. top: 0;
  770. bottom: 0;
  771. left: 50%;
  772. width: 2px;
  773. background-color: #ddd;
  774. transform: translate(-50%, 0);
  775. }
  776. .timeline-group {
  777. display: block;
  778. margin-left: -6px;
  779. text-align: center;
  780. }
  781. .timeline-item {
  782. display: block;
  783. padding: 20px 0 20px !important;
  784. &:nth-child(even) {
  785. float: none;
  786. clear: both;
  787. &:after {
  788. display: none;
  789. }
  790. &:before {
  791. display: none;
  792. }
  793. }
  794. &:nth-child(odd) {
  795. float: none;
  796. clear: both;
  797. &:after {
  798. display: none;
  799. }
  800. &:before {
  801. display: none;
  802. }
  803. }
  804. >.timeline-badge {
  805. top: 0px !important;
  806. left: 45% !important; //47
  807. }
  808. }
  809. .timeline-item.block {
  810. &:nth-child(even) {
  811. float: none;
  812. clear: both;
  813. &:after {
  814. display: none;
  815. }
  816. &:before {
  817. display: none;
  818. }
  819. }
  820. &:nth-child(odd) {
  821. float: none;
  822. clear: both;
  823. &:after {
  824. display: none;
  825. }
  826. &:before {
  827. display: none;
  828. }
  829. }
  830. }
  831. .timeline-item.timeline-poster {
  832. >.timeline-badge {
  833. display: none;
  834. }
  835. }
  836. }
  837. }
  838. @include media-breakpoint-down(xs) {
  839. .timeline-item {
  840. >.timeline-badge {
  841. top: 0px !important;
  842. left: 44% !important;
  843. }
  844. }
  845. }