_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: 10px;
  19. right: 0;
  20. }
  21. .list-projets{
  22. height: 100%;
  23. overflow: auto;
  24. .title-menu{
  25. padding-left: 0.5rem;
  26. &::after{
  27. content: " ";
  28. width: 0;
  29. height: 1px;
  30. display: block;
  31. margin-top: 0.5rem;
  32. }
  33. }
  34. .container-wrap{
  35. display: inline-flex;
  36. }
  37. .container{
  38. width: 85%;
  39. opacity: 0;
  40. position: relative;
  41. overflow: auto;
  42. padding: 1rem 2rem 2rem 0.5rem;
  43. margin-top: 20px;
  44. &::after{
  45. content: " ";
  46. height: 0;
  47. width: 1px;
  48. display: block;
  49. position: absolute;
  50. top: 0;
  51. margin-right: 1rem;
  52. right:0;
  53. }
  54. ul{
  55. margin-bottom: 20px;
  56. span.cat{
  57. display: block;
  58. line-height: 3rem;
  59. }
  60. li{
  61. display: inline-flex;
  62. align-items: flex-end;
  63. width: auto;
  64. position: relative;
  65. a{
  66. z-index: 0;
  67. display: block;
  68. background: #f9f9f9fe;
  69. transition: 0.6s background;
  70. margin-right: 0px;
  71. padding: 0 7px;
  72. .img{
  73. pointer-events: none;
  74. display: none;
  75. position: fixed;
  76. width: 300px;
  77. height: auto;
  78. z-index: 999;
  79. transform-origin: center center;
  80. transform: rotate(0deg);
  81. border-radius: 10px;
  82. overflow: hidden;
  83. }
  84. &:hover{
  85. z-index: 999;
  86. .img{
  87. display: block;
  88. transition: all 1s ease;
  89. }
  90. }
  91. }
  92. &:hover{
  93. &.culturelle{
  94. a{
  95. background: $color_culturelle;
  96. transition: 0.6s background;
  97. }
  98. }
  99. &.sociale{
  100. a{
  101. background: $color_sociale;
  102. transition: 0.6s background;
  103. }
  104. }
  105. &.publique{
  106. a{
  107. background: $color_publique;
  108. transition: 0.6s background;
  109. }
  110. &::before{}
  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. }