Timeline.styl 3.2KB

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