_start.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. *{
  2. box-sizing: border-box;
  3. }
  4. html, body{
  5. background: #f9f9f9fe;
  6. }
  7. body{
  8. #start{
  9. width: $Wi80;
  10. margin: $marg auto auto $marg;
  11. #text_figli{
  12. p {
  13. a{
  14. // position: relative;
  15. &.marg{
  16. margin-right: $marg;
  17. }
  18. }
  19. }
  20. #item_list{
  21. width: 80vw;
  22. margin-top: 0.5rem;
  23. position: relative;
  24. .card{
  25. width: calc((100% / 5) - ( #{$marg} * 2) );
  26. display: inline-block;
  27. vertical-align: top;
  28. position: relative;
  29. margin: 0 $marg $marg 0;
  30. height: 100%;
  31. & > .card-image{
  32. &.open{
  33. a{
  34. img{
  35. filter: grayscale(0);
  36. transition: filter 0.3s ease;
  37. }
  38. }
  39. }
  40. }
  41. a{
  42. display: block;
  43. border-radius: 5px;
  44. overflow: auto;
  45. img{
  46. filter: grayscale(1);
  47. transition: filter 0.3s ease;
  48. }
  49. }
  50. .card-header{
  51. width: 100%;
  52. padding: $marg;
  53. flex-wrap: wrap;
  54. display: none;
  55. border-bottom-left-radius: 5px;
  56. border-bottom-right-radius: 5px;
  57. & > *{
  58. font-size: 0.8rem;
  59. line-height: 1rem;
  60. margin-right: $marg;
  61. }
  62. }
  63. &:hover{
  64. a{
  65. display: block;
  66. img{
  67. filter: grayscale(0);
  68. transition: filter 0.3s ease;
  69. }
  70. }
  71. .card-header{
  72. display: inline-flex;
  73. position: absolute;
  74. // transform: translateY(-100%);
  75. bottom: 0;
  76. }
  77. }
  78. &:last-of-type{
  79. vertical-align: baseline!important;
  80. }
  81. #item{
  82. width: calc( 500% + ( #{$marg} * 4) );
  83. padding: 2rem;
  84. margin-top: $marg;
  85. border-radius: 5px;
  86. .content-title{
  87. margin: 0 auto 0 auto;
  88. display: flex;
  89. flex-wrap: wrap;
  90. justify-content: space-between;
  91. align-items: baseline;
  92. a{
  93. display: block;
  94. }
  95. }
  96. .e-content{
  97. margin: 1rem auto 2rem auto;
  98. p{
  99. font-size: 1rem;
  100. line-height: 1.2rem;
  101. }
  102. }
  103. &.publique{
  104. background: $color_publique;
  105. }
  106. &.sociale{
  107. background: $color_sociale;
  108. }
  109. &.culturelle{
  110. background: $color_culturelle;
  111. }
  112. }
  113. }
  114. &.publique{
  115. .card{
  116. &:hover{
  117. .card-header{
  118. background: $color_publique;
  119. }
  120. }
  121. }
  122. }
  123. &.sociale{
  124. .card{
  125. &:hover{
  126. .card-header{
  127. background: $color_sociale;
  128. }
  129. }
  130. }
  131. }
  132. &.culturelle{
  133. .card{
  134. &:hover{
  135. .card-header{
  136. background: $color_culturelle;
  137. }
  138. }
  139. }
  140. }
  141. &.commanditaires{
  142. flex-direction: column;
  143. }
  144. }
  145. }
  146. }
  147. &:not(.home){
  148. #start{
  149. margin-top: calc( 2rem + #{$Flhome});
  150. }
  151. }
  152. }
  153. #icone_list{
  154. z-index: 999;
  155. position: absolute;
  156. top: -60px;
  157. right: 20px;
  158. .hamburger{
  159. padding: 0.8rem;
  160. padding-right: 2rem;
  161. .hamburger-box{
  162. width: 30px;
  163. .hamburger-inner{
  164. height: 2px;
  165. width: 30px;
  166. &::before{
  167. width: 20px;
  168. height: inherit;
  169. }
  170. &::after{
  171. height: inherit;
  172. width: inherit;
  173. }
  174. }
  175. }
  176. }
  177. }