timeline.component.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. :host {
  2. background: #eff1fd;
  3. display: flex;
  4. padding: 32px 19px 0px 32px;
  5. width: 500px;
  6. margin: 0 auto;
  7. ul {
  8. display: flex;
  9. list-style: none;
  10. margin: 0px;
  11. padding: 0px;
  12. }
  13. * {
  14. box-sizing: border-box;
  15. }
  16. }
  17. .timeline {
  18. font-family: 'Roboto', sans-serif !important;
  19. flex-direction: column;
  20. border-left: #d6d9e0 2px solid;
  21. user-select: none;
  22. .event {
  23. color: #000000a8;
  24. margin: 34px 29px 0px;
  25. position: relative;
  26. width: 100%;
  27. display: flex;
  28. flex-direction: column;
  29. background: #f8f8f8;
  30. border-radius: 5px;
  31. box-shadow: 0 0 5px #0000004d;
  32. width: 100%;
  33. font-size: 14px;
  34. &:last-child {
  35. margin-bottom: 34px;
  36. }
  37. .event-decorators {
  38. position: absolute;
  39. border: 1px solid blue;
  40. }
  41. .event-header {
  42. background: #fff;
  43. flex-direction: row;
  44. height: 44px;
  45. width: 100%;
  46. align-items: center;
  47. justify-content: space-between;
  48. padding: 0px 24px;
  49. box-sizing: border-box;
  50. border-top-left-radius: 5px;
  51. border-top-right-radius: 5px;
  52. li {
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. i {
  57. margin-right: 5px;
  58. transform: translateY(2px);
  59. color: #00000073;
  60. }
  61. }
  62. }
  63. .event-itens {
  64. display: flex;
  65. flex-direction: column;
  66. width: 100%;
  67. padding: 4px 22px 8px;
  68. li {
  69. height: 32px;
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-between;
  73. box-sizing: border-box;
  74. &:first-child {
  75. color: #5c5c5c;
  76. font-weight: 600;
  77. }
  78. &:not(:last-child) {
  79. border-bottom: 1px solid #0000001a;
  80. }
  81. }
  82. }
  83. .event-item {}
  84. .event-circle {
  85. position: absolute;
  86. height: 25px;
  87. color: #55a469;
  88. width: 25px;
  89. border: 2px solid #d6d9e0;
  90. border-radius: 50%;
  91. display: flex;
  92. align-items: center;
  93. justify-content: center;
  94. background: #f8f8f8;
  95. box-sizing: border-box;
  96. font-size: 28px;
  97. top: 10px;
  98. left: -44px;
  99. }
  100. &::before {
  101. box-sizing: border-box;
  102. width: 0;
  103. height: 0;
  104. margin-top: 10px;
  105. content: '';
  106. transform: rotate(45deg);
  107. transform-origin: 12px 18px;
  108. border: 8px solid transparent;
  109. // border-bottom-color: #f8f8f8;
  110. // border-left-color: #f8f8f8;
  111. border-bottom-color: #fff;
  112. border-left-color: #fff;
  113. box-shadow: -2px 3px 4px -3px rgba(0, 0, 0, 0.4);
  114. top: 2px;
  115. left: -14px;
  116. position: absolute;
  117. border-radius: 1px;
  118. }
  119. }
  120. }