_sidebar.scss 3.2 KB

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