ressources.scss 23 KB

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