Timeline.styl 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. // flex 1 1 0
  19. margin-bottom 0
  20. padding-left 0
  21. border-bottom 1px solid grey
  22. background-color off-white
  23. overflow-Y auto
  24. list-style none
  25. &__item
  26. padding 0 25px 20px 35px
  27. &__avatar
  28. position relative
  29. top 40px
  30. left -20px
  31. & > img
  32. width 45px
  33. height 45px
  34. border-radius 25px
  35. &__createhour
  36. margin-left 35px
  37. opacity 0.7
  38. font-size 14px
  39. &__content
  40. display inline-block
  41. border 1px solid grey
  42. border-radius 5px
  43. padding 15px
  44. background-color off-white
  45. font-size 15px
  46. &__version
  47. display flex
  48. justify-content space-between
  49. margin-top 40px
  50. padding 10px 15px
  51. width 100%
  52. background-color lightGrey
  53. &__btn
  54. padding 5px 25px
  55. border-radius 5px
  56. width 145px
  57. color white
  58. font-size 17px
  59. & > i
  60. margin-right 10px
  61. color darkGrey
  62. font-size 22px
  63. &__date
  64. color fontColor
  65. font-size 17px
  66. margin auto 0
  67. &__texteditor
  68. flex 0 1 auto
  69. padding 2px
  70. &__simpletext
  71. display none
  72. width 70%
  73. margin-right 35px
  74. &__icon
  75. cursor pointer
  76. &__wysiwyg
  77. display block
  78. & > textarea
  79. width 100%
  80. height 130px
  81. &__submit
  82. margin 10px 0
  83. &__btn
  84. display flex
  85. cursor pointer
  86. &:hover , &:focus
  87. box-shadow shadow-all-btn
  88. &__icon
  89. margin-left 10px
  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. /**** MEDIA 992px & 1199px ****/
  101. @media (min-width: min-lg) and (max-width: max-lg)
  102. .timeline__messagelist__item
  103. margin-right 55px
  104. .received
  105. .timeline__messagelist__item
  106. &__avatar
  107. left 96%
  108. /**** MEDIA 768px & 991px ****/
  109. @media (min-width: min-md) and (max-width: max-md)
  110. .timeline__messagelist__item
  111. margin-right 55px
  112. .received
  113. .timeline__messagelist__item
  114. &__avatar
  115. left 96%
  116. /**** MEDIA 576px & 767px ****/
  117. @media (min-width: min-sm) and (max-width: max-sm)
  118. .timeline__messagelist__item
  119. margin-right 35px
  120. .received
  121. .timeline__messagelist__item
  122. &__avatar
  123. left 94%
  124. /**** MEDIA 575px ****/
  125. @media (max-width: max-xs)
  126. .received
  127. .timeline__messagelist__item
  128. &__avatar
  129. left 90%