Timeline.styl 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @import '../../css/Variable.styl'
  2. .timeline
  3. display flex
  4. flex-direction column
  5. margin 10px
  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 20px 35px
  26. &__avatar
  27. position relative
  28. top 40px
  29. left -20px
  30. border-radius 50%
  31. width 50px
  32. height 50px
  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. padding 5px 25px
  57. border-radius 5px
  58. width 145px
  59. color white
  60. font-size 17px
  61. cursor pointer
  62. & > i
  63. margin-right 10px
  64. color off-white
  65. font-size 22px
  66. &__date
  67. color fontColor
  68. font-size 17px
  69. margin auto 0
  70. &__texteditor
  71. flex 0 1 auto
  72. border-top 1px solid grey
  73. padding 45px 10px
  74. &__textinput
  75. width 70%
  76. & > textarea
  77. border-radius 5px
  78. border 1.5px solid grey
  79. padding 5px
  80. height 80px
  81. width 100%
  82. &__wrapper
  83. display flex
  84. flex-direction column
  85. justify-content center
  86. &__submit
  87. margin 10px 0
  88. &__btn
  89. display inline-block
  90. cursor pointer
  91. &__icon
  92. display inline-block
  93. margin-left 20px
  94. .received
  95. text-align right
  96. .timeline__messagelist__item
  97. &__avatar
  98. left 20px
  99. &__createhour
  100. margin-left 0
  101. margin-right 35px
  102. &__content
  103. color white
  104. .activeAdvancedText
  105. .timeline
  106. &__texteditor
  107. padding 10px
  108. height 1500px
  109. &__textinput
  110. width 100%
  111. &__wrapper
  112. flex-direction row
  113. align-items center
  114. width 100%
  115. &__advancedtext
  116. margin-right 20px
  117. /**** MEDIA 576px & 1199px ****/
  118. @media (min-width: min-sm) and (max-width: max-lg)
  119. .timeline
  120. &__messagelist
  121. min-height 350px
  122. max-height 700px
  123. &__item
  124. margin-right 55px
  125. /**** MEDIA 576px & 767px ****/
  126. @media (min-width: min-sm) and (max-width: max-sm)
  127. .timeline
  128. &__messagelist__item
  129. margin-right 35px
  130. &__texteditor
  131. display flex
  132. align-items center
  133. &__wysiwyg
  134. width 70%
  135. & > textarea
  136. border-radius 5px
  137. height 40px
  138. &__submit
  139. width 30%
  140. margin-left 10px
  141. /**** MEDIA 575px ****/
  142. @media (max-width: max-xs)
  143. .timeline
  144. &__texteditor
  145. display flex
  146. align-items center
  147. &__wysiwyg
  148. width 70%
  149. & > textarea
  150. border-radius 5px
  151. height 40px
  152. &__submit
  153. width 30%
  154. margin-left 10px