Timeline.styl 3.3KB

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