_sidebar.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. &::before{}
  112. }
  113. &::before{
  114. min-width: 100%;
  115. transition: 0.3s background;
  116. }
  117. }
  118. }
  119. a{
  120. color: black;
  121. z-index: 999;
  122. &.active{
  123. color: black;
  124. }
  125. }
  126. }
  127. }
  128. .informations{
  129. min-width: 250px;
  130. position: relative;
  131. height: 100%;
  132. padding-left: 40px;
  133. opacity: 0;
  134. }
  135. }
  136. &.is-active{
  137. left: 0;
  138. transition: 0.5s 0.3s left ease;
  139. .title-menu{
  140. &::after{
  141. width: 100%;
  142. background: black;
  143. transition: 1s 0.9s width ease;
  144. }
  145. }
  146. .informations{
  147. padding-left: 25px;
  148. opacity: 1;
  149. transition: 1s opacity 1s ease;
  150. }
  151. .container{
  152. margin-top: 0;
  153. opacity: 1;
  154. transition: 1s opacity 1s ease;
  155. &::after{
  156. background: black;
  157. height: 100%;
  158. transition: 1s 0.9s height ease;
  159. }
  160. }
  161. }
  162. }