_start.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. *{
  2. box-sizing: border-box;
  3. }
  4. html, body, header{
  5. background: #f9f9f9fe;
  6. }
  7. body{
  8. #start{
  9. width: $Wi50;
  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. .card{
  24. width: calc((100% / 5) - ( #{$marg} * 2) );
  25. display: inline-block;
  26. vertical-align: top;
  27. position: relative;
  28. margin: 0 $marg $marg 0;
  29. height: 100%;
  30. & > .card-image{
  31. &.open{
  32. a{
  33. img{
  34. filter: grayscale(0);
  35. transition: filter 0.3s ease;
  36. }
  37. }
  38. }
  39. }
  40. a{
  41. display: block;
  42. border-radius: 15px;
  43. overflow: auto;
  44. img{
  45. filter: grayscale(1);
  46. transition: filter 0.3s ease;
  47. }
  48. }
  49. .card-header{
  50. width: 100%;
  51. padding: $marg;
  52. flex-wrap: wrap;
  53. display: none;
  54. & > *{
  55. font-size: 0.8rem;
  56. line-height: 1rem;
  57. margin-right: $marg;
  58. }
  59. }
  60. &:hover{
  61. a{
  62. display: block;
  63. img{
  64. filter: grayscale(0);
  65. transition: filter 0.3s ease;
  66. }
  67. }
  68. .card-header{
  69. display: inline-flex;
  70. position: absolute;
  71. transform: translateY(-100%);
  72. }
  73. }
  74. &:last-of-type{
  75. vertical-align: baseline!important;
  76. }
  77. #item{
  78. width: calc( 500% + ( #{$marg} * 5) );
  79. padding: 2rem;
  80. margin-top: $marg;
  81. border-radius: 15px;
  82. .content-title{
  83. margin: 0 auto 0 auto;
  84. display: flex;
  85. flex-wrap: wrap;
  86. justify-content: space-between;
  87. align-items: baseline;
  88. a{
  89. display: block;
  90. }
  91. }
  92. .e-content{
  93. margin: 1rem auto 2rem auto;
  94. p{
  95. font-size: 1rem;
  96. line-height: 1.2rem;
  97. }
  98. }
  99. &.publique{
  100. background: $color_publique;
  101. }
  102. &.sociale{
  103. background: $color_sociale;
  104. }
  105. &.culturelle{
  106. background: $color_culturelle;
  107. }
  108. }
  109. }
  110. &.publique{
  111. .card{
  112. &:hover{
  113. .card-header{
  114. background: $color_publique;
  115. }
  116. }
  117. }
  118. }
  119. &.sociale{
  120. .card{
  121. &:hover{
  122. .card-header{
  123. background: $color_sociale;
  124. }
  125. }
  126. }
  127. }
  128. &.culturelle{
  129. .card{
  130. &:hover{
  131. .card-header{
  132. background: $color_culturelle;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }
  139. }
  140. &:not(.home){
  141. #start{
  142. margin-top: calc( 2rem + #{$Flhome});
  143. }
  144. }
  145. }