Timeline.styl 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 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. 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 0 1 auto
  74. border-top 1px solid grey
  75. padding 45px 10px
  76. &__textinput
  77. width 70%
  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. flex-direction column
  87. justify-content center
  88. &__submit
  89. margin 10px 0
  90. &__btn
  91. display inline-block
  92. cursor pointer
  93. &__icon
  94. display inline-block
  95. margin-left 20px
  96. .received
  97. text-align right
  98. .timeline__messagelist__item
  99. &__avatar
  100. left 93%
  101. &__createhour
  102. margin-left 0
  103. margin-right 35px
  104. &__content
  105. color white
  106. .activeAdvancedText
  107. .timeline
  108. &__texteditor
  109. padding 10px
  110. height 1500px
  111. &__textinput
  112. width 100%
  113. &__wrapper
  114. flex-direction row
  115. align-items center
  116. width 100%
  117. &__advancedtext
  118. margin-right 20px
  119. /**** MEDIA 576px & 1199px ****/
  120. @media (min-width: min-sm) and (max-width: max-lg)
  121. .timeline
  122. &__messagelist
  123. min-height 350px
  124. max-height 700px
  125. &__item
  126. margin-right 55px
  127. /**** MEDIA 576px & 767px ****/
  128. @media (min-width: min-sm) and (max-width: max-sm)
  129. .timeline
  130. &__messagelist__item
  131. margin-right 35px
  132. &__texteditor
  133. display flex
  134. align-items center
  135. &__wysiwyg
  136. width 70%
  137. & > textarea
  138. border-radius 5px
  139. height 40px
  140. &__submit
  141. width 30%
  142. margin-left 10px
  143. /**** MEDIA 575px ****/
  144. @media (max-width: max-xs)
  145. .timeline
  146. &__texteditor
  147. display flex
  148. align-items center
  149. &__wysiwyg
  150. width 70%
  151. & > textarea
  152. border-radius 5px
  153. height 40px
  154. &__submit
  155. width 30%
  156. margin-left 10px