Timeline.styl 3.4KB

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