Dashboard.styl 7.3KB

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