File.styl 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. // @Côme - this file is deprecated as its associated jsx file is deprecated
  2. .wsFileFile
  3. width 1200px
  4. height calc(100% - 85px)
  5. &__header
  6. background-color fileColor
  7. &__editionmode
  8. display none
  9. .fa-file-image-o
  10. color white
  11. &__option
  12. &__menu
  13. display flex
  14. &__addversion
  15. padding 8px 15px
  16. border 1px solid fileColor
  17. border-radius 5px
  18. background-color transparent
  19. color fileColor
  20. cursor pointer
  21. & > i
  22. margin-left 10px
  23. &:hover
  24. background-color fileColor
  25. border none
  26. color white
  27. &__contentpage
  28. display flex
  29. height 100%
  30. &__preview
  31. position relative
  32. margin 10px
  33. border-radius 10px
  34. width 60%
  35. height calc(100% - 150px) // margin + height of header and option
  36. background-color off-white
  37. &__sidebar
  38. display flex
  39. position absolute
  40. top 0
  41. right 0
  42. height 100%
  43. &__button
  44. display flex
  45. flex-direction column
  46. align-items center
  47. width 50px
  48. height 100%
  49. background-color grey
  50. cursor pointer
  51. &:hover
  52. background-color fileColor
  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. &__property
  62. width 0
  63. overflow-X hidden
  64. background-color off-white
  65. transition width 0.5s
  66. &__detail
  67. padding 20px
  68. width 410px
  69. &__size
  70. margin-bottom 20px
  71. &__description
  72. &__editiondesc
  73. display none
  74. margin 20px 0
  75. textarea
  76. width 100%
  77. height 250px
  78. &__validate
  79. margin 30px auto
  80. width 150px
  81. &__btndesc
  82. display block
  83. margin 15px 0
  84. width 200px
  85. &__dloption
  86. display flex
  87. justify-content center
  88. padding-top 10px
  89. &__icon
  90. margin-right 20px
  91. font-size 20px
  92. cursor pointer
  93. &:hover , &:focus
  94. color fileColor
  95. &__slider
  96. display flex
  97. align-items center
  98. width calc(100% - 50px) // 50px => width of sidebar
  99. height calc(100% - 40px) // 40px => height of dloption
  100. &__fileimg
  101. display flex
  102. flex-direction column
  103. justify-content center
  104. padding 30px
  105. width 100%
  106. height 100%
  107. & > img
  108. max-height 100%
  109. max-width 100%
  110. &__icon
  111. margin 0 5px
  112. font-size 20px
  113. cursor pointer
  114. &__wrapper
  115. width 40%
  116. height calc(100% - 150px) // margin + height of header and option
  117. overflow-Y auto
  118. .timeline
  119. &__messagelist
  120. min-height 300px
  121. &__version
  122. &__btn
  123. background-color fileColor
  124. &:hover , &:focus
  125. background-color lightFileColor
  126. &__texteditor
  127. &__simpletext
  128. &__input
  129. &:focus
  130. color fileColor
  131. border-color fileColor
  132. &__submit
  133. &__btn
  134. border-color fileColor
  135. background-color fileColor
  136. color white
  137. &:hover , &:focus
  138. border-color fileColor
  139. background-color fileColor
  140. /***** SENDER RECEIVER *****/
  141. .received
  142. .wsFileFile__contentpage__messagelist__item__content
  143. background-color fileColor
  144. /***** ACTIVE SIDEBAR *****/
  145. .activesidebar
  146. .wsFileFile__contentpage__preview
  147. &__sidebar
  148. border-radius 0 10px 10px 0
  149. &__button
  150. background-color fileColor
  151. &__property
  152. width 450px
  153. overflow-Y auto
  154. color fileColor
  155. .activeEditionTitle
  156. .wsFileFile__header
  157. &__editionmode
  158. display block
  159. &__title
  160. display none
  161. .activeEditionDesc
  162. .wsFileFile__contentpage__preview__sidebar__property__detail
  163. &__description
  164. &__editiondesc
  165. display block
  166. &__btndesc
  167. display none
  168. /****** MEDIA QUERIES ********/
  169. // Regroup the common css rules mediaqueries into a single media to lighten the code
  170. @media (min-width: max-xs) and (max-width: max-lg)
  171. .wsFileFile
  172. overflow-Y auto
  173. &__contentpage
  174. display block
  175. &__preview
  176. display flex
  177. flex-direction column
  178. width calc(100% - 30px) // 30px => margin
  179. &__wrapper
  180. width calc(100% - 30px) // 30px => margin
  181. .timeline
  182. &__texteditor
  183. &__simpletext
  184. display inline-flex
  185. width 60%
  186. &__submit
  187. display inline-flex
  188. margin 10px 0
  189. &__btn
  190. display flex
  191. margin-left 35px
  192. &__icon
  193. margin-left 15px
  194. // /**** MEDIA 992px & 1199px ****/
  195. // @media (min-width: min-lg) and (max-width: max-lg)
  196. // .wsFileFile
  197. // width 900px
  198. // overflow-Y auto
  199. // /******************************/
  200. // /**** MEDIA 768px & 991px ****/
  201. // @media (min-width: min-md) and (max-width: max-md)
  202. // .wsFileFile
  203. // width 100%
  204. // /******************************/
  205. // /**** MEDIA 576px & 767px ****/
  206. // @media (min-width: min-sm) and (max-width: max-sm)
  207. // .wsFileFile
  208. // top 69px
  209. // width 100%
  210. // height calc(100% - 69px) // 69px => top rules
  211. // overflow-Y scroll
  212. // /******************************/
  213. // /**** MEDIA 575px ****/
  214. // @media (max-width: max-xs)
  215. // .activesidebar
  216. // .wsFileFile__contentpage__preview
  217. // &__sidebar
  218. // &__property
  219. // width 300px
  220. // .wsFileFile
  221. // top 69px
  222. // width 100%
  223. // height calc(100% - 69px) // 69px => top rules
  224. // overflow-Y scroll
  225. // &__option__menu__addversion
  226. // padding 8px 5px
  227. // & > i
  228. // display none
  229. // &__contentpage
  230. // display block
  231. // &__preview
  232. // display flex
  233. // flex-direction column
  234. // width calc(100% - 30px) // 30px => margin
  235. // &__wrapper
  236. // width calc(100% - 30px) // 30px => margin
  237. // .timeline
  238. // &__texteditor
  239. // &__simpletext
  240. // display inline-flex
  241. // width 60%
  242. // margin-right 0
  243. // &__submit
  244. // display inline-flex
  245. // margin 10px 0
  246. // &__btn
  247. // display flex
  248. // margin-left 10px
  249. // &__icon
  250. // margin-left 15px