Dashboard.styl 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. flexwrap()
  2. display flex
  3. flex-wrap wrap
  4. btnNotification()
  5. margin 20px 0
  6. border 1px solid blue
  7. padding 10px 15px
  8. hoverfocus()
  9. background-color blue
  10. color white
  11. bgandcolor()
  12. background-color transparent
  13. color blue
  14. label()
  15. font-weight 500
  16. font-size 18px
  17. color blue
  18. coloricon()
  19. .fa-gavel
  20. color responsable
  21. .fa-graduation-cap
  22. color gestionnaire
  23. .fa-pencil
  24. color contributeur
  25. .fa-eye
  26. color lecteur
  27. .dashboard
  28. margin-left 20px
  29. &__header
  30. flexwrap()
  31. align-items center
  32. justify-content space-between
  33. &__title
  34. width auto
  35. &__text
  36. margin 0
  37. &__advancedmode
  38. cursor pointer
  39. &__wkswrapper
  40. flexwrap()
  41. &__workspace
  42. margin-right 20px
  43. width calc(65% - 20px) //20px => margin-right
  44. &__title
  45. margin-bottom 20px
  46. font-size 40px
  47. font-weight 500
  48. color darkBlue
  49. &__detail
  50. margin-bottom 20px
  51. font-size 18px
  52. &__userstatut
  53. width 35%
  54. &__role
  55. flexwrap()
  56. margin 20px 0
  57. font-size 18px
  58. &__text
  59. margin-right 15px
  60. &__rank
  61. display flex
  62. &__icon
  63. margin-right 15px
  64. color gestionnaire
  65. &__notification
  66. font-size 18px
  67. &__btn
  68. btnNotification()
  69. cursor pointer
  70. &__subscribe
  71. &__btn
  72. btnNotification()
  73. &__submenu
  74. padding 0
  75. &__item
  76. padding 10px
  77. &__calltoaction
  78. flexwrap()
  79. margin 100px 0
  80. &__button
  81. &:active
  82. box-shadow inset 0px 0px 5px 2px #656565
  83. &__text
  84. &__icon
  85. font-size 30px
  86. .fa-comments-o, .fa-paperclip, .fa-calendar, .fa-file-text-o, .fa-folder-open-o, .fa-video-camera
  87. color white
  88. &__title
  89. font-size 18px
  90. color white
  91. .thread
  92. background-color threadColor
  93. .writefile
  94. background-color writefile
  95. .importfile
  96. background-color importfile
  97. .visioconf
  98. background-color grey-hover
  99. .calendar
  100. background-color calendar
  101. .explore
  102. background-color explore
  103. &__wksinfo
  104. flexwrap()
  105. margin-top 150px
  106. &__activity
  107. margin 0 35px 50px 0
  108. width 60%
  109. &__header
  110. display flex
  111. justify-content space-between
  112. align-items center
  113. margin-bottom 20px
  114. height 44px
  115. &__allread
  116. padding 10px 25px
  117. font-size 18px
  118. cursor pointer
  119. &__wrapper
  120. border 1px solid grey
  121. height 480px
  122. &__workspace
  123. display flex
  124. align-items center
  125. border-bottom 1px solid grey
  126. padding 15px
  127. cursor pointer
  128. &:hover
  129. background-color folder-hover
  130. &:nth-child(even)
  131. background-color grey-hover
  132. &:hover
  133. background-color folder-hover
  134. &__icon
  135. margin 0 25px
  136. font-size 25px
  137. &__name
  138. font-size 18px
  139. font-weight 500
  140. span
  141. font-weight 400
  142. &__more
  143. &__btn
  144. margin 15px
  145. padding 10px 25px
  146. cursor pointer
  147. &__memberlist
  148. margin 0 0 50px 0
  149. width 35%
  150. &__title
  151. margin-bottom 20px
  152. padding 6px
  153. height 45px
  154. &__wrapper
  155. position relative
  156. border 1px solid grey
  157. height 480px
  158. &__list
  159. margin 0
  160. padding 0
  161. list-style none
  162. height 400px
  163. overflow-Y scroll
  164. &__item
  165. display flex
  166. border-bottom 1px solid grey
  167. padding 10px 15px
  168. &:hover
  169. background-color folder-hover
  170. &:nth-last-child(1)
  171. border-bottom 0
  172. &:nth-child(even)
  173. background-color grey-hover
  174. &:hover
  175. background-color folder-hover
  176. &__avatar
  177. margin-right 20px
  178. & > img
  179. width 50px
  180. height 50px
  181. &__info
  182. &__name
  183. font-size 20px
  184. &__role
  185. font-size 18px
  186. &__delete
  187. font-size 20px
  188. color blue
  189. cursor pointer
  190. &__btnadd
  191. border-top 1px solid grey
  192. padding 15px
  193. &__button
  194. display flex
  195. align-items center
  196. &__avatar
  197. display flex
  198. justify-content center
  199. align-items center
  200. margin-right 20px
  201. border 2px dashed grey
  202. border-radius 50%
  203. width 50px
  204. height 50px
  205. cursor pointer
  206. &__icon
  207. color grey
  208. font-size 25px
  209. &__text
  210. font-size 18px
  211. color blue
  212. cursor pointer
  213. &__form
  214. padding 15px
  215. flex-direction column
  216. height 100%
  217. width 100%
  218. background-color off-white
  219. &__close
  220. font-size 20px
  221. cursor pointer
  222. &__member
  223. &__name
  224. .name__label
  225. margin 30px 0 20px 0
  226. label()
  227. .name__input
  228. margin-bottom 20px
  229. border 1px solid grey
  230. border-radius 10px
  231. padding 10px
  232. width 300px
  233. &__create
  234. display flex
  235. align-items center
  236. margin 15px 0
  237. &__role
  238. margin-bottom 15px
  239. coloricon()
  240. &__text
  241. margin 15px 0
  242. label()
  243. &__list
  244. display flex
  245. align-items center
  246. flex-wrap wrap
  247. margin 0
  248. padding 0
  249. list-style none
  250. &__item
  251. display flex
  252. align-items center
  253. margin 10px 25px 10px 0
  254. .item
  255. &__text
  256. display flex
  257. &__submitbtn
  258. display flex
  259. justify-content flex-end
  260. & > button
  261. padding 8px 30px
  262. cursor pointer
  263. &__moreinfo
  264. display flex
  265. justify-content space-between
  266. flexwrap wrap
  267. &__webdav
  268. margin-bottom 40px
  269. &__btn
  270. width 300px
  271. &__information
  272. width 550px
  273. &__calendar
  274. margin-bottom 100px
  275. &__wrapperBtn
  276. margin-right 300px
  277. &__btn
  278. width 300px
  279. &__information
  280. width 550px
  281. /**** MEDIAQUERIES *****/
  282. /**** MEDIA 576px & 1199px ****/
  283. // Regroup the common rules
  284. @media (min-width min-sm) and (max-width: max-lg)
  285. .dashboard
  286. &__workspace
  287. width auto
  288. &__userstatut
  289. width auto
  290. &__calltoaction
  291. justify-content center
  292. &__activity
  293. width 100%
  294. &__memberlist
  295. width 50%
  296. /**** MEDIA 992px & 1199px ****/
  297. @media (min-width: min-lg) and (max-width: max-lg)
  298. .dashboard
  299. margin-left 15px
  300. /**** MEDIA 768px & 991px ****/
  301. @media (min-width: min-md) and (max-width: max-md)
  302. .dashboard
  303. &__activity
  304. margin 25px 15px 25px 0
  305. /**** MEDIA 576px & 767px ****/
  306. @media (min-width: min-sm) and (max-width: max-sm)
  307. .dashboard
  308. &__activity
  309. margin 25px 15px 25px 0
  310. &__memberlist
  311. margin 50px 0
  312. width 90%
  313. &__moreinfo__webdav__information
  314. width 500px
  315. /**** MEDIA 575px ****/
  316. @media (max-width: max-xs)
  317. position()
  318. margin-left 10px
  319. width auto
  320. .dashboard
  321. margin-left 0
  322. &__title
  323. margin-left 10px
  324. &__workspace
  325. position()
  326. &__userstatut
  327. position()
  328. &__calltoaction
  329. justify-content center
  330. &__button
  331. margin 10px
  332. &__activity
  333. margin 25px 0
  334. width 100%
  335. &__header
  336. display block
  337. height auto
  338. margin 0 15px 20px 15px
  339. &__title
  340. margin-bottom 20px
  341. &__memberlist
  342. margin 50px 0
  343. width 100%
  344. &__title
  345. margin-left 10px
  346. &__wrapper
  347. height auto
  348. &__list
  349. height auto
  350. overflow-Y visible
  351. &__item:nth-last-child(1)
  352. border-bottom 1px solid grey
  353. &__btnadd
  354. border-top 0
  355. &__moreinfo
  356. &__webdav
  357. margin-left 10px
  358. &__information
  359. width 350px