Dashboard.styl 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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. width 100%
  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. &__workspace-wrapper
  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 darkthirdColor
  49. &__detail
  50. margin-bottom 20px
  51. font-size 18px
  52. &__userstatut
  53. width 35%
  54. &__role
  55. margin 20px 0
  56. font-size 18px
  57. &__msg
  58. margin-right 15px
  59. &__definition
  60. display flex
  61. &__icon
  62. margin-right 15px
  63. color gestionnaire
  64. &__notification
  65. font-size 18px
  66. &__btn
  67. btnNotification()
  68. cursor pointer
  69. &__subscribe
  70. &__btn
  71. btnNotification()
  72. &__submenu
  73. padding 0
  74. &__item
  75. padding 10px
  76. &__calltoaction
  77. flexwrap()
  78. margin 100px 0
  79. &__button
  80. &:active
  81. box-shadow inset 0px 0px 5px 2px #656565
  82. &__text
  83. color white
  84. &__icon
  85. font-size 30px
  86. &__title
  87. font-size 18px
  88. &__workspaceInfo
  89. flexwrap()
  90. &__activity
  91. margin 0 35px 50px 0
  92. width 60%
  93. &__wrapper
  94. border 1px solid grey
  95. height 480px
  96. overflow-y scroll
  97. &__header
  98. display flex
  99. justify-content space-between
  100. align-items center
  101. margin-bottom 20px
  102. height 44px
  103. &__allread
  104. padding 10px 25px
  105. font-size 18px
  106. cursor pointer
  107. &__workspace
  108. display flex
  109. align-items center
  110. border-bottom 1px solid grey
  111. padding 15px
  112. cursor pointer
  113. &:hover
  114. background-color fourthColor
  115. &:nth-child(even)
  116. background-color grey-hover
  117. &:hover
  118. background-color fourthColor
  119. &__icon
  120. margin 0 25px
  121. font-size 25px
  122. &__name
  123. font-size 18px
  124. font-weight 500
  125. span
  126. font-weight 400
  127. &__more
  128. &__btn
  129. margin 15px
  130. padding 10px 25px
  131. cursor pointer
  132. &__moreinfo
  133. display flex
  134. justify-content space-between
  135. flexwrap wrap
  136. &__webdav
  137. margin 0 15px 40px 0
  138. &__btn
  139. width 300px
  140. &__information
  141. width 300px
  142. &__calendar
  143. margin-bottom 100px
  144. &__wrapperBtn
  145. margin-right 290px
  146. &__btn
  147. width 300px
  148. &__information
  149. width 300px
  150. /**** MEDIAQUERIES *****/
  151. /**** MEDIA 576px & 1199px ****/
  152. // Regroup the common rules
  153. @media (min-width min-sm) and (max-width: max-lg)
  154. .dashboard
  155. &__workspace
  156. width auto
  157. &__userstatut
  158. width auto
  159. &__calltoaction
  160. justify-content center
  161. &__activity
  162. width 100%
  163. &__memberlist
  164. width 50%
  165. /**** MEDIA 992px & 1199px ****/
  166. @media (min-width: min-lg) and (max-width: max-lg)
  167. .dashboard
  168. margin-left 15px
  169. /**** MEDIA 768px & 991px ****/
  170. @media (min-width: min-md) and (max-width: max-md)
  171. .dashboard
  172. &__activity
  173. margin 25px 15px 25px 0
  174. /**** MEDIA 576px & 767px ****/
  175. @media (min-width: min-sm) and (max-width: max-sm)
  176. .dashboard
  177. &__activity
  178. margin 25px 15px 25px 0
  179. &__memberlist
  180. margin 50px 0
  181. width 90%
  182. &__moreinfo__webdav__information
  183. width 500px
  184. /**** MEDIA 575px ****/
  185. @media (max-width: max-xs)
  186. position()
  187. margin-left 10px
  188. width auto
  189. .dashboard
  190. margin-left 0
  191. &__title
  192. margin-left 10px
  193. &__workspace
  194. position()
  195. &__userstatut
  196. position()
  197. &__calltoaction
  198. justify-content center
  199. &__button
  200. margin 10px
  201. &__activity
  202. margin 25px 0
  203. width 100%
  204. &__header
  205. display block
  206. height auto
  207. margin 0 15px 20px 15px
  208. &__title
  209. margin-bottom 20px
  210. &__memberlist
  211. margin 50px 0
  212. width 100%
  213. &__title
  214. margin-left 10px
  215. &__wrapper
  216. height auto
  217. &__list
  218. height auto
  219. overflow-Y visible
  220. &__item:nth-last-child(1)
  221. border-bottom 1px solid grey
  222. &__btnadd
  223. border-top 0
  224. &__moreinfo
  225. &__webdav
  226. margin-left 10px
  227. &__information
  228. width 350px