Timeline.styl 2.7KB

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