ressources.scss 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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. h2{
  12. font-size: 5rem;
  13. color: $blue-dark;
  14. font-weight: 400;
  15. text-align: center;
  16. margin-bottom: 1rem;
  17. }
  18. .layout--onecol{
  19. .layout__region--content{
  20. .block-region-content{
  21. // display: grid;
  22. // grid-template-columns: 1fr repeat(4, 1fr) 1fr;
  23. display: flex;
  24. flex-direction: column;
  25. @media (max-width: 479px){
  26. display: flex;
  27. flex-direction: column;
  28. }
  29. // texte présentation
  30. .block-config-pages-block{
  31. width: 60%;
  32. margin: auto;
  33. margin-left: 30%;
  34. @media (max-width:479px) {
  35. order: 1;
  36. margin-left: 0;
  37. }
  38. .config_pages--base-de-donnees--full{
  39. grid-column: 1 / span 5;
  40. @media (max-width: 810px){
  41. padding: 2rem;
  42. margin-top:1rem;
  43. }
  44. @media (max-width: 479px){
  45. padding-left: 0;
  46. padding-right: 0;
  47. }
  48. .field--name-field-introduction{
  49. margin: auto;
  50. background: $white;
  51. // margin-top:5rem;
  52. @media (max-width: 479px){
  53. margin-top:1rem;
  54. }
  55. }
  56. }
  57. }
  58. //button proposer une ressource
  59. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  60. // visibility: hidden;
  61. grid-column: 6 / span 5;
  62. grid-row: 1;
  63. margin-top: 4rem;
  64. background-color: $blue-light;
  65. height: fit-content;
  66. width: 100%;
  67. @media (max-width: 810px){
  68. grid-column: 5 / span 5;
  69. }
  70. @media (max-width: 479px){
  71. grid-column: 5 / span 5;
  72. order: 2;
  73. }
  74. .display{
  75. display: block;
  76. }
  77. .field--name-field-lien{
  78. display: flex;
  79. flex-direction: column;
  80. margin-top: 2rem;
  81. margin-bottom: 2rem;
  82. margin-left: 1.5rem;
  83. margin-right: 1.5rem;
  84. text-align: center;
  85. a{
  86. font-weight: 800;
  87. color: $white;
  88. font-size: 1.3rem;
  89. }
  90. &:after{
  91. margin-left: auto;
  92. padding-top: 1rem;
  93. display: block;
  94. content:url("../images/pictos/noun_Arrow_3771902.svg")
  95. }
  96. }
  97. @media (max-width: 810px){
  98. margin: auto;
  99. }
  100. }
  101. // grille des ressources
  102. .block-views-blockbase-de-donnees-block-1{
  103. margin-top: 2rem;
  104. width: 100%;
  105. @media (max-width:479px) {
  106. order: 3;
  107. }
  108. .view-base-de-donnees{
  109. display: grid;
  110. grid-template-columns: 30% 75%;
  111. gap: 2rem;
  112. .view-filters{
  113. position: sticky;
  114. align-self: start;
  115. top: 9rem;
  116. left: 0;
  117. background-color: $white;
  118. margin-bottom: 5rem;
  119. padding: 1rem;
  120. padding-left: 2rem;
  121. padding-right: 3rem;
  122. z-index: 1;
  123. @media (max-width: 810px) {
  124. position: static;
  125. margin-bottom: 2rem;
  126. }
  127. @media (max-width: 479px) {
  128. margin-left: 0;
  129. }
  130. .buttons-filtres-ressources{
  131. &::before{
  132. content: "Afficher : ";
  133. padding-right: 1rem;
  134. font-weight: 800;
  135. margin-bottom: 1rem;
  136. display: block;
  137. width: 100%;
  138. @media (max-width: 479px){
  139. padding-bottom: 1rem;
  140. }
  141. }
  142. button{
  143. background-color: transparent;
  144. // border-radius: 30px;
  145. border: 1px solid black;
  146. padding: 0.5rem 0.8rem 0.2rem 0.6rem;
  147. margin-bottom: 1rem;
  148. margin-right: 0.5rem;
  149. &:hover{
  150. cursor: grab;
  151. background-color: $blue-dark;
  152. color: white;
  153. }
  154. a {
  155. &:hover{
  156. color: white;
  157. }
  158. }
  159. &.button-videos{
  160. margin-top: 1rem;
  161. a {
  162. display: inline-flex;
  163. flex-direction: row;
  164. align-items: center;
  165. &::before{
  166. content:url("../images/pictos/videos.svg");
  167. padding-right: 0.5rem;
  168. }
  169. &:hover::before{
  170. content:url("../images/pictos/videos-blanc.svg");
  171. }
  172. }
  173. }
  174. &.button-podcasts{
  175. a {
  176. display: inline-flex;
  177. flex-direction: row;
  178. align-items: center;
  179. &::before{
  180. content:url("../images/pictos/podcasts.svg");
  181. padding-right: 0.5rem;
  182. }
  183. &:hover::before{
  184. content:url("../images/pictos/podcasts-blanc.svg");
  185. }
  186. }
  187. }
  188. &.button-reportages-photos{
  189. a {
  190. display: inline-flex;
  191. flex-direction: row;
  192. align-items: center;
  193. &::before{
  194. content:url("../images/pictos/en-images.svg");
  195. padding-right: 0.5rem;
  196. }
  197. &:hover::before{
  198. content:url("../images/pictos/en-images-blanc.svg");
  199. }
  200. }
  201. }
  202. &.button-livres{
  203. a {
  204. display: inline-flex;
  205. flex-direction: row;
  206. align-items: center;
  207. &::before{
  208. content:url("../images/pictos/ecrits.svg");
  209. padding-right: 0.5rem;
  210. }
  211. &:hover::before{
  212. content:url("../images/pictos/ecrits-blanc.svg");
  213. }
  214. }
  215. }
  216. &.button-articles{
  217. a {
  218. display: inline-flex;
  219. flex-direction: row;
  220. align-items: center;
  221. &::before{
  222. content:url("../images/pictos/ecrits.png");
  223. padding-right: 0.5rem;
  224. }
  225. &:hover::before{
  226. content:url("../images/pictos/ecrits-blanc.svg");
  227. }
  228. }
  229. }
  230. &.button-publications-rapports{
  231. a {
  232. display: inline-flex;
  233. flex-direction: row;
  234. align-items: center;
  235. &::before{
  236. content:url("../images/pictos/ecrits.png");
  237. padding-right: 0.5rem;
  238. }
  239. &:hover::before{
  240. content:url("../images/pictos/ecrits-blanc.svg");
  241. }
  242. }
  243. }
  244. }
  245. }
  246. form{
  247. &::before{
  248. content: "Filtrer par : ";
  249. padding-right: 1rem;
  250. font-weight: 800;
  251. margin-bottom: 1rem;
  252. @media (max-width: 479px){
  253. padding-bottom: 1rem;
  254. }
  255. }
  256. }
  257. }
  258. .view-ressources-hidden {
  259. visibility: hidden;
  260. height: 0;
  261. overflow: hidden;
  262. }
  263. .view-content{
  264. transition: opacity 0.3s ease;
  265. display: flex;
  266. flex-direction: row;
  267. flex-wrap: wrap;
  268. width: 100%;
  269. .view-type-slide:not(footer){
  270. width: 100%;
  271. position: relative;
  272. z-index: 0;
  273. padding-bottom: 4rem;
  274. &::before {
  275. content: "";
  276. position: absolute;
  277. left: -30%;
  278. height: 100%;
  279. width: 110vw;
  280. z-index: 0;
  281. }
  282. > * {
  283. position: relative;
  284. z-index: 1;
  285. }
  286. h3{
  287. margin-top: 3rem;
  288. text-transform: uppercase;
  289. font-family: 'Source Code Pro';
  290. color: rgb(9, 57, 139) !important;
  291. display: flex;
  292. flex-direction: row;
  293. align-items: center;
  294. }
  295. h3.type-publication-issue-du-programme-eqld {
  296. &:before{
  297. content:url("../images/pictos/picto-ressource-eqld.svg");
  298. padding-right: 1rem;
  299. }
  300. }
  301. h3.type-paroles-de-laureats {
  302. &:before{
  303. content:url("../images/pictos/picto-ressource-paroleslaureats.svg");
  304. padding-right: 1rem;
  305. }
  306. }
  307. h3.type-les-projets-en-images {
  308. &:before{
  309. content:url("../images/pictos/picto-ressource-projetsimages.svg");
  310. padding-right: 1rem;
  311. }
  312. }
  313. h3.type-presse {
  314. &:before{
  315. content:url("../images/pictos/picto-ressource-presse.svg");
  316. padding-right: 1rem;
  317. }
  318. }
  319. .views-row-wrapper{
  320. display: flex;
  321. flex-direction: row;
  322. .slick-track{
  323. width: 100% !important;
  324. display: flex;
  325. flex-direction: row;
  326. .views-row{
  327. width: 45% !important;
  328. min-width: 450px !important;
  329. max-width: 500px !important;
  330. }
  331. }
  332. @media (max-width: 810px){
  333. flex-direction: column;
  334. .views-row{
  335. width: 100%;
  336. }
  337. }
  338. .slick-next::before{
  339. content:url("../images/pictos/fleche-droite-dans-rond.png");
  340. display: block;
  341. }
  342. .slick-prev::before{
  343. content:url("../images/pictos/fleche-droite-dans-rond.png");
  344. display: block;
  345. transform: scaleX(-1);
  346. // display: none;
  347. }
  348. .slick-prev.slick-disabled::before,
  349. .slick-next.slick-disabled::before{
  350. opacity: 0 !important;
  351. }
  352. .slick-next {
  353. right: 3%;
  354. }
  355. }
  356. }
  357. .view-type-slide:has(.type-publication-issue-du-programme-eqld){
  358. &::before{
  359. background-color: $background-actus;}
  360. }
  361. // .type-les-projets-en-images{
  362. // .slick-track{
  363. // width: 100% !important;
  364. // .views-row{
  365. // width: 100% !important;
  366. // }
  367. // }
  368. // }
  369. }
  370. }
  371. }
  372. }
  373. }
  374. }
  375. }
  376. }
  377. }
  378. }