ressources.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. .path-ressources{
  2. .layout-container {
  3. overflow: visible;
  4. }
  5. .layout-content{
  6. width: 100vw;
  7. .region-content{
  8. width: 100%;
  9. margin: auto;
  10. #block-contenudelapageprincipale{
  11. .layout--onecol{
  12. .layout__region--content{
  13. .block-region-content{
  14. // display: grid;
  15. // grid-template-columns: 1fr repeat(4, 1fr) 1fr;
  16. display: flex;
  17. flex-direction: column;
  18. @media (max-width: 479px){
  19. display: flex;
  20. flex-direction: column;
  21. }
  22. // texte présentation
  23. .block-config-pages-block{
  24. width: 60%;
  25. margin: auto;
  26. margin-left: 30%;
  27. @media (max-width:479px) {
  28. order: 1;
  29. margin-left: 0;
  30. }
  31. .config_pages--base-de-donnees--full{
  32. grid-column: 1 / span 5;
  33. @media (max-width: 810px){
  34. padding: 2rem;
  35. margin-top:1rem;
  36. }
  37. @media (max-width: 479px){
  38. padding-left: 0;
  39. padding-right: 0;
  40. }
  41. .field--name-field-introduction{
  42. margin: auto;
  43. background: $white;
  44. margin-top:5rem;
  45. @media (max-width: 479px){
  46. margin-top:1rem;
  47. }
  48. }
  49. }
  50. }
  51. //button proposer une ressource
  52. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  53. // visibility: hidden;
  54. grid-column: 6 / span 5;
  55. grid-row: 1;
  56. margin-top: 4rem;
  57. background-color: $blue-light;
  58. height: fit-content;
  59. width: 100%;
  60. @media (max-width: 810px){
  61. grid-column: 5 / span 5;
  62. }
  63. @media (max-width: 479px){
  64. grid-column: 5 / span 5;
  65. order: 2;
  66. }
  67. .display{
  68. display: block;
  69. }
  70. .field--name-field-lien{
  71. display: flex;
  72. flex-direction: column;
  73. margin-top: 2rem;
  74. margin-bottom: 2rem;
  75. margin-left: 1.5rem;
  76. margin-right: 1.5rem;
  77. text-align: center;
  78. a{
  79. font-weight: 800;
  80. color: $white;
  81. font-size: 1.3rem;
  82. }
  83. &:after{
  84. margin-left: auto;
  85. padding-top: 1rem;
  86. display: block;
  87. content:url("../images/pictos/noun_Arrow_3771902.svg")
  88. }
  89. }
  90. @media (max-width: 810px){
  91. margin: auto;
  92. }
  93. }
  94. // grille des ressources
  95. .block-views-blockbase-de-donnees-block-1{
  96. margin-top: 2rem;
  97. width: 100%;
  98. @media (max-width:479px) {
  99. order: 3;
  100. }
  101. .view-base-de-donnees{
  102. display: grid;
  103. grid-template-columns: 20% 75%;
  104. gap: 2rem;
  105. .view-filters{
  106. position: sticky;
  107. align-self: start;
  108. top: 9rem;
  109. left: 0;
  110. background-color: $white;
  111. margin-top: 2rem;
  112. margin-bottom: 5rem;
  113. padding: 1rem;
  114. padding-left: 2rem;
  115. padding-right: 3rem;
  116. z-index: 1;
  117. @media (max-width: 810px) {
  118. position: static;
  119. margin-bottom: 2rem;
  120. }
  121. @media (max-width: 479px) {
  122. margin-left: 0;
  123. }
  124. &::before{
  125. content: "Filtrer par : ";
  126. padding-right: 1rem;
  127. font-weight: 800;
  128. @media (max-width: 479px){
  129. padding-bottom: 1rem;
  130. }
  131. }
  132. }
  133. .view-content{
  134. display: flex;
  135. flex-direction: row;
  136. flex-wrap: wrap;
  137. width: 100%;
  138. .view-type-ressource-slide:not(footer){
  139. width: 100%;
  140. position: relative;
  141. z-index: 0;
  142. padding-bottom: 4rem;
  143. &::before {
  144. content: "";
  145. position: absolute;
  146. left: -30%;
  147. height: 100%;
  148. width: 110vw;
  149. z-index: 0;
  150. }
  151. > * {
  152. position: relative;
  153. z-index: 1;
  154. }
  155. h3{
  156. margin-top: 3rem;
  157. text-transform: uppercase;
  158. font-family: 'Source Code Pro';
  159. a{color: rgb(9, 57, 139) !important;}
  160. }
  161. h3 a{
  162. display: flex;
  163. flex-direction: row;
  164. align-items: center;
  165. }
  166. h3.type-productions-du-programme-engages-pour-la-qualite-du-logement-de-demain a{
  167. &:before{
  168. content:url("../images/pictos/picto-ressource-eqld.svg");
  169. padding-right: 1rem;
  170. }
  171. }
  172. h3.type-paroles-de-laureats a{
  173. &:before{
  174. content:url("../images/pictos/picto-ressource-paroleslaureats.svg");
  175. padding-right: 1rem;
  176. }
  177. }
  178. h3.type-les-projets-en-images a{
  179. &:before{
  180. content:url("../images/pictos/picto-ressource-projetsimages.svg");
  181. padding-right: 1rem;
  182. }
  183. }
  184. h3.type-presse a{
  185. &:before{
  186. content:url("../images/pictos/picto-ressource-presse.svg");
  187. padding-right: 1rem;
  188. }
  189. }
  190. .views-row-wrapper{
  191. display: flex;
  192. flex-direction: row;
  193. .views-row{
  194. display: flex;
  195. width: 25%;
  196. max-width: fit-content;
  197. }
  198. @media (max-width: 810px){
  199. flex-direction: column;
  200. .views-row{
  201. width: 100%;
  202. }
  203. }
  204. .slick-next::before{
  205. content:url("../images/pictos/fleche-droite-dans-rond.png");
  206. display: block;
  207. }
  208. .slick-prev::before{
  209. content:url("../images/pictos/fleche-droite-dans-rond.png");
  210. display: block;
  211. transform: scaleX(-1);
  212. // display: none;
  213. }
  214. .slick-prev.slick-disabled::before,
  215. .slick-next.slick-disabled::before{
  216. opacity: 0 !important;
  217. }
  218. .slick-next {
  219. right: 3%;
  220. }
  221. }
  222. }
  223. .view-type-ressource-slide:has(.type-productions-du-programme-engages-pour-la-qualite-du-logement-de-demain){
  224. &::before{
  225. background-color: $background-actus;}
  226. }
  227. .type-les-projets-en-images{
  228. .slick-track{
  229. width: 100% !important;
  230. .views-row{
  231. width: 100% !important;
  232. }
  233. }
  234. }
  235. }
  236. }
  237. }
  238. }
  239. }
  240. }
  241. }
  242. }
  243. }
  244. }