Timeline.styl 3.2KB

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