PagePreview.styl 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. .wsFilePreview
  2. width 1200px
  3. height calc(100% - 85px)
  4. &__header
  5. background-color previewColor
  6. .fa-file-image-o
  7. color white
  8. &__option
  9. &__menu
  10. display flex
  11. &__addversion
  12. padding 8px 15px
  13. border 1px solid previewColor
  14. border-radius 5px
  15. background-color transparent
  16. color previewColor
  17. cursor pointer
  18. & > i
  19. margin-left 10px
  20. &:hover
  21. background-color previewColor
  22. border none
  23. color white
  24. &__contentpage
  25. display flex
  26. height 100%
  27. &__visualizer
  28. position relative
  29. margin 10px
  30. border-radius 10px
  31. width 70%
  32. height calc(100% - 150px)
  33. background-color off-white
  34. &__sidebar
  35. position absolute
  36. top 0
  37. right 0
  38. width 50px
  39. height 100%
  40. transition width 1s ease
  41. &__visiblepart
  42. display flex
  43. flex-direction column
  44. align-items center
  45. border-top-right-radius 10px
  46. border-bottom-right-radius 10px
  47. width 50px
  48. height 100%
  49. background-color grey
  50. cursor pointer
  51. &:hover
  52. background-color previewColor
  53. &__icon
  54. justify-content flex-start
  55. font-size 30px
  56. color white
  57. &__title
  58. margin-top 45px
  59. color white
  60. transform rotate(-90deg)
  61. &__propertydetail
  62. display none
  63. &__dloption
  64. display flex
  65. margin-left calc(50% - 50px) // 50px => width/2 of the div
  66. padding-top 10px
  67. width 100px
  68. &__icon
  69. margin-right 20px
  70. font-size 20px
  71. cursor pointer
  72. &__slidecontainer
  73. display flex
  74. align-items center
  75. width calc(100% - 50px) // 50px => width of sidebar
  76. height calc(100% - 40px) // 40px => height of dloption
  77. &__fileimg
  78. display flex
  79. padding 30px
  80. width 100%
  81. height 100%
  82. & > img
  83. max-height 100%
  84. max-width 100%
  85. &__chevron
  86. margin 0 5px
  87. font-size 20px
  88. cursor pointer
  89. .timeline
  90. margin 10px
  91. border-radius 10px
  92. width 45%
  93. height calc(100% - 150px)
  94. background-color off-white
  95. overflow scroll
  96. &__header
  97. border-top-left-radius 10px
  98. border-top-right-radius 10px
  99. padding 10px 0
  100. text-align center
  101. font-size 20px
  102. color darkGrey
  103. background-color grey-hover
  104. &__messagelist
  105. min-height 300px
  106. &__item
  107. &__content
  108. color darkGrey
  109. &__version
  110. margin-top 40px
  111. background-color grey-hover
  112. &__btn
  113. padding 5px 25px
  114. border-radius 5px
  115. width 145px
  116. color white
  117. font-size 17px
  118. background-color previewColor
  119. & > i
  120. margin-right 10px
  121. color darkGrey
  122. font-size 22px
  123. &:hover
  124. background-color lightPreviewColor
  125. &:focus
  126. background-color lightPreviewColor
  127. &__date
  128. color fontColor
  129. font-size 17px
  130. &__texteditor
  131. &__simpletext
  132. &__input
  133. &:focus
  134. color htmlColor
  135. border-color htmlColor
  136. &__submit
  137. &__btn
  138. border-color htmlColor
  139. background-color htmlColor
  140. color white
  141. &:hover
  142. border-color htmlColor
  143. background-color htmlColor
  144. &:focus
  145. border-color htmlColor
  146. background-color htmlColor
  147. /***** SENDER RECEIVER *****/
  148. .received
  149. .wsFilePreview__contentpage__messagelist__item__content
  150. background-color previewColor
  151. /***** ACTIVE SIDEBAR *****/
  152. .activesidebar
  153. .wsFilePreview__contentpage__visualizer
  154. &__sidebar
  155. display flex
  156. border-top-right-radius 10px
  157. border-bottom-right-radius 10px
  158. width 500px
  159. background-color off-white
  160. &__visiblepart
  161. order 1
  162. border-top-left-radius 10px
  163. border-bottom-left-radius 10px
  164. border-top-right-radius 0
  165. border-bottom-right-radius 0
  166. background-color previewColor
  167. &__propertydetail
  168. display flex
  169. order 2
  170. padding 20px
  171. overflow-Y auto
  172. color previewColor
  173. /****** MEDIA QUERIES ********/
  174. @media (min-width: max-xs) and (max-width: max-lg)
  175. .wsFilePreview
  176. overflow-Y auto
  177. &__contentpage
  178. display block
  179. &__visualizer
  180. display flex
  181. flex-direction column
  182. width calc(100% - 30px) // 20px => margin
  183. .timeline
  184. width calc(100% - 30px) // 20px => margin
  185. &__texteditor
  186. &__simpletext
  187. display inline-flex
  188. display ms-inline-flex
  189. width 60%
  190. &__submit
  191. display inline-flex
  192. display ms-inline-flex
  193. margin 10px 0
  194. &__btn
  195. display flex
  196. margin-left 35px
  197. &__icon
  198. margin-left 15px
  199. /**** MEDIA 992px & 1199px ****/
  200. @media (min-width: min-lg) and (max-width: max-lg)
  201. .wsFilePreview
  202. width 900px
  203. overflow-Y auto
  204. /******************************/
  205. /**** MEDIA 768px & 991px ****/
  206. @media (min-width: min-md) and (max-width: max-md)
  207. .wsFilePreview
  208. width 100%
  209. /******************************/
  210. /**** MEDIA 576px & 767px ****/
  211. @media (min-width: min-sm) and (max-width: max-sm)
  212. .wsFilePreview
  213. top 69px
  214. width 100%
  215. height calc(100% - 69px)
  216. overflow-Y scroll
  217. /******************************/
  218. /**** MEDIA 575px ****/
  219. @media (max-width: max-xs)
  220. .activesidebar
  221. .wsFilePreview__contentpage__visualizer
  222. &__sidebar
  223. width 350px
  224. .wsFilePreview
  225. top 69px
  226. width 100%
  227. height calc(100% - 69px)
  228. overflow-Y scroll
  229. &__option__menu__addversion
  230. padding 8px 5px
  231. & > i
  232. display none
  233. &__contentpage
  234. display block
  235. &__visualizer
  236. display flex
  237. flex-direction column
  238. width calc(100% - 30px) // 20px => margin
  239. .timeline
  240. width calc(100% - 30px) // 20px => margin
  241. &__texteditor
  242. &__simpletext
  243. display inline-flex
  244. display ms-inline-flex
  245. width 60%
  246. &__submit
  247. display inline-flex
  248. display ms-inline-flex
  249. margin 10px 0
  250. &__btn
  251. display flex
  252. margin-left 35px
  253. &__icon
  254. margin-left 15px