Timeline.styl 3.3KB

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