_sidebar.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. .sidebar-right{
  2. position: fixed;
  3. width: 100%;
  4. height: 100%;
  5. left: -100vw;
  6. top: 0;
  7. transition: 0.3s right ease;
  8. background: #f9f9f9fe;
  9. z-index: 1000;
  10. ul{
  11. span{
  12. line-height: 2rem;
  13. }
  14. }
  15. #icone_list{
  16. z-index: 1000;
  17. position: fixed;
  18. top: 20px;
  19. right: 20px;
  20. }
  21. .list-projets{
  22. height: 100%;
  23. overflow: auto;
  24. margin: 1rem auto auto 1rem;
  25. .title-menu{
  26. // padding-left: 0.5rem;
  27. &::after{
  28. content: " ";
  29. width: 0;
  30. height: 1px;
  31. display: block;
  32. margin-top: 0.5rem;
  33. }
  34. }
  35. .container-wrap{
  36. display: inline-flex;
  37. }
  38. .container{
  39. width: 85%;
  40. opacity: 0;
  41. position: relative;
  42. overflow: auto;
  43. padding: 1rem 2rem 2rem 0rem;
  44. margin-top: 20px;
  45. &::after{
  46. content: " ";
  47. height: 0;
  48. width: 1px;
  49. display: block;
  50. position: absolute;
  51. top: 0;
  52. margin-right: 1rem;
  53. right:0;
  54. }
  55. ul{
  56. margin-bottom: 20px;
  57. span.cat{
  58. display: block;
  59. line-height: 3rem;
  60. }
  61. li{
  62. display: inline-flex;
  63. align-items: flex-end;
  64. width: auto;
  65. position: relative;
  66. a{
  67. z-index: 0;
  68. display: block;
  69. background: #f9f9f9fe;
  70. transition: 0.6s background;
  71. margin-right: 0px;
  72. padding: 0 7px;
  73. .img{
  74. pointer-events: none;
  75. display: none;
  76. position: fixed;
  77. width: 300px;
  78. height: auto;
  79. z-index: 999;
  80. transform-origin: center center;
  81. transform: rotate(0deg);
  82. border-radius: 10px;
  83. overflow: hidden;
  84. }
  85. &:hover{
  86. z-index: 999;
  87. .img{
  88. display: block;
  89. transition: all 1s ease;
  90. }
  91. }
  92. }
  93. &:hover{
  94. &.culturelle{
  95. a{
  96. background: $color_culturelle;
  97. transition: 0.6s background;
  98. }
  99. }
  100. &.sociale{
  101. a{
  102. background: $color_sociale;
  103. transition: 0.6s background;
  104. }
  105. }
  106. &.publique{
  107. a{
  108. background: $color_publique;
  109. transition: 0.6s background;
  110. }
  111. }
  112. &::before{
  113. min-width: 100%;
  114. transition: 0.3s background;
  115. }
  116. }
  117. }
  118. a{
  119. color: black;
  120. z-index: 999;
  121. &.active{
  122. color: black;
  123. }
  124. }
  125. }
  126. }
  127. .informations{
  128. min-width: 250px;
  129. position: relative;
  130. height: 100%;
  131. padding-left: 40px;
  132. opacity: 0;
  133. }
  134. }
  135. &.is-active{
  136. left: 0;
  137. transition: 0.5s 0.3s left ease;
  138. .title-menu{
  139. &::after{
  140. width: 100%;
  141. background: black;
  142. transition: 1s 0.9s width ease;
  143. }
  144. }
  145. .informations{
  146. padding-left: 25px;
  147. opacity: 1;
  148. transition: 1s opacity 1s ease;
  149. }
  150. .container{
  151. margin-top: 0;
  152. opacity: 1;
  153. transition: 1s opacity 1s ease;
  154. &::after{
  155. background: black;
  156. height: 100%;
  157. transition: 1s 0.9s height ease;
  158. }
  159. }
  160. }
  161. }