_sidebar.scss 3.5 KB

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