Timeline.styl 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. @import '../../css/Variable.styl'
  2. .timeline
  3. display flex
  4. flex-direction row
  5. margin 10px 10px 10px 5px
  6. border-radius 10px
  7. width 100%
  8. height 100%
  9. & > p
  10. margin 0
  11. padding 0
  12. &__header
  13. display flex
  14. flex-direction column
  15. border-radius 10px 0 0 10px
  16. width 50px
  17. background-color grey-hover
  18. font-size 20px
  19. color darkGrey
  20. cursor pointer
  21. &__icon
  22. text-align center
  23. &__title
  24. transform rotate(-90deg)
  25. &__info
  26. position absolute
  27. display flex
  28. align-items center
  29. justify-content space-between
  30. margin 10px
  31. padding 5px 15px
  32. width calc(100% - 20px)
  33. background-color #fee498
  34. border-radius 10px
  35. z-index 1
  36. &__msg > i
  37. margin-right 8px
  38. &__btnrestore
  39. cursor pointer
  40. & > i
  41. margin-right 8px
  42. &__body
  43. display flex
  44. flex-direction column
  45. width 100%
  46. &__messagelist
  47. flex 1 1 auto
  48. margin-bottom 0
  49. padding-left 0
  50. border-bottom 1px solid grey
  51. background-color off-white
  52. overflow-y auto
  53. list-style none
  54. &__item
  55. padding 0 25px 15px 35px
  56. &__avatar
  57. position relative
  58. top 60px
  59. left -20px
  60. border-radius 50%
  61. width 45px
  62. height 45px
  63. & > img
  64. width 45px
  65. height 45px
  66. border-radius 25px
  67. &__authorandhour
  68. margin-left 35px
  69. opacity 0.7
  70. font-size 14px
  71. &__content
  72. display inline-block
  73. border 1px solid grey
  74. border-radius 5px
  75. padding 15px
  76. background-color off-white
  77. font-size 15px
  78. &__version
  79. display flex
  80. justify-content space-between
  81. margin 20px 0 20px 0
  82. padding 10px 15px
  83. width 100%
  84. background-color lightGrey
  85. &__btn
  86. display flex
  87. justify-content center
  88. padding 5px 20px
  89. border-radius 5px
  90. width 145px
  91. color white
  92. font-size 17px
  93. cursor pointer
  94. & > i
  95. margin-right 10px
  96. color off-white
  97. font-size 22px
  98. &__date
  99. color fontColor
  100. font-size 17px
  101. margin auto 15px
  102. &__texteditor
  103. flex 0 1 auto
  104. margin 20px
  105. &__textinput
  106. width 100%
  107. & > textarea
  108. border-radius 5px
  109. border 1.5px solid grey
  110. padding 5px
  111. height 80px
  112. width 100%
  113. &__wrapper
  114. display flex
  115. align-items center
  116. justify-content flex-end
  117. margin-top 10px
  118. &__advancedtext
  119. margin-right 15px
  120. cursor pointer
  121. &__submit
  122. &__btn
  123. display inline-block
  124. cursor pointer
  125. &__icon
  126. display inline-block
  127. margin-left 20px
  128. .sent
  129. text-align right
  130. .timeline__body__messagelist__item
  131. &__wrapper
  132. display flex
  133. flex-direction row-reverse
  134. &__avatar
  135. left 20px
  136. &__authorandhour
  137. margin-left 0
  138. margin-right 35px
  139. .mce-btn-group:not(:first-child)
  140. border-left none!important //remove the left borders of the wysiwyg for a better aesthetic result
  141. @media (min-width: min-lg) and (max-width: max-lg)
  142. .timeline
  143. margin 0
  144. @media (min-width: min-sm) and (max-width: max-md)
  145. .timeline
  146. display block
  147. margin 0
  148. @media (max-width: max-xs)
  149. .timeline
  150. display block
  151. margin 0
  152. &__messagelist__version__date
  153. font-size 15px