_home.scss 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. // home juin 2023
  2. // @import "../partials/_slick-slider.scss";
  3. .path-frontpage{
  4. // bandeau actus
  5. .block-views-blockactus-blocks-pages-block-1{
  6. // grid-area: actus;
  7. width: 100vw;
  8. height: 550px;
  9. border-bottom: 5px solid $blue-light;
  10. background: $background-actus;
  11. @media(max-width: 810px){
  12. height: 580px;
  13. }
  14. @media(max-width:792px){
  15. max-height: fit-content;
  16. }
  17. @media(max-width:724px){
  18. max-height: fit-content;
  19. }
  20. @media(max-width: 479px){
  21. max-height: fit-content;
  22. }
  23. div{
  24. // height: 100%;
  25. .view-actus-blocks-pages{
  26. // height: 100%;
  27. .view-content{
  28. height: 90%;
  29. .slick-list{
  30. @media(max-width: 810px){
  31. width: 100vw !important;
  32. height: fit-content !important;
  33. }
  34. @media(max-width: 479px){
  35. height: fit-content !important;
  36. width: 100vw !important;
  37. }
  38. }
  39. .slick-list.draggable{
  40. padding-left: 0px !important;
  41. }
  42. .views-row{
  43. .node-type-actualite{
  44. color: $black;
  45. line-height: 1.5rem;
  46. width: 80%;
  47. height: 456px;
  48. margin: auto;
  49. @media (max-width: 810px){
  50. width: 65%;
  51. height: fit-content;
  52. }
  53. div:first-child{ // block actu dans le bandeau
  54. display: grid;
  55. grid-template-columns: 1fr repeat(9, 1fr) 1fr;
  56. // grid-template-rows: repeat(6, 1fr);
  57. column-gap: 30px;
  58. @media (max-width: 810px){
  59. display: flex;
  60. flex-direction: column;
  61. height: fit-content;
  62. }
  63. .field--name-field-images {
  64. order: 1;
  65. grid-column: 1 /span 8;
  66. grid-row: 1 / span 6;
  67. .field__item{
  68. display: flex;
  69. max-height: 420px;
  70. }
  71. .field__item img{
  72. width: 100%;
  73. // max-height: 456px;
  74. object-fit: cover;
  75. object-position: center;
  76. // padding-left: 1rem;
  77. @media(max-width:852px){
  78. max-height: 310px;
  79. max-width: 100%;
  80. object-fit: cover;
  81. padding-left: 0;
  82. margin-bottom: 1rem;
  83. }
  84. @media(max-width:792px){
  85. // max-height: 450px;
  86. }
  87. @media(max-width:724px){
  88. max-height: 400px;
  89. }
  90. @media (max-width: 680px){
  91. height: 200px;
  92. object-fit: cover;
  93. max-width: 70vw;
  94. margin: auto;
  95. padding-left: 0;
  96. padding-bottom: 1rem;
  97. }
  98. }
  99. }
  100. .field--name-field-date{
  101. grid-column: 9 / span 9;
  102. grid-row: 2;
  103. order: 2;
  104. div{
  105. display: flex !important;
  106. flex-direction: row;
  107. }
  108. time{
  109. display: flex;
  110. flex-direction: row;
  111. font-size: 0.9rem;
  112. font-weight: 800;
  113. padding-right: 1rem;
  114. width: fit-content;
  115. }
  116. }
  117. .field--name-field-lieu{
  118. // display: inline-block;
  119. grid-column: 9 / span 9;
  120. grid-row: 3;
  121. // display: flex !important;
  122. // flex-direction: row;
  123. .field__label{
  124. display: none;
  125. }
  126. // &::before{
  127. // content: " | ";
  128. // margin-right: 2rem;
  129. // @media (max-width: 534px){
  130. // display: none;
  131. // }
  132. // }
  133. @media (max-width: 810px){
  134. display: inline-flex;
  135. order: 3;
  136. }
  137. }
  138. .field--name-title{
  139. display: inline-flex;
  140. grid-column: 9 / span 9;
  141. grid-row: 4;
  142. order:4;
  143. h2 a{
  144. color: $blue-light !important;
  145. }
  146. }
  147. .field--name-field-sous-titre{
  148. // display: inline-block;
  149. grid-column: 9 / span 9;
  150. grid-row: 5;
  151. order:5;
  152. margin-top: 0.3rem;
  153. font-weight: 800;
  154. }
  155. .field:not(.field--name-field-images){
  156. width: 100%;
  157. }
  158. h2{ margin:0; }
  159. a{
  160. color: $black;
  161. grid-column: 1/span 8;
  162. }
  163. .inline.links{
  164. // grid-column: 5;
  165. // grid-row: 4;
  166. padding-top: none !important;
  167. list-style: none;
  168. width: fit-content;
  169. align-self: flex-end;
  170. padding-right: 1rem;
  171. a{
  172. display: none;
  173. }
  174. }
  175. .field--name-field-actu-type{
  176. // display: inline-block;
  177. grid-column: 9 / span 7;
  178. grid-row: 6;
  179. order:6;
  180. // padding-top: 1rem;
  181. }
  182. }
  183. }
  184. }
  185. }
  186. }
  187. }
  188. }
  189. // bouton voir toutes actus du bandeau bleu
  190. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  191. visibility: hidden;
  192. // grid-area: actus;
  193. // grid-row: 6;
  194. // grid-column: 5 / span 6;
  195. // max-width: 50%;
  196. // min-width: fit-content;
  197. // margin-bottom: 2rem;
  198. // align-self: flex-end;
  199. // @media (max-width: 479px){
  200. // grid-column: 2 / span 4;
  201. // max-width: 80%;
  202. // margin: auto;
  203. // margin-top: 1rem;
  204. // margin-bottom: 1.5rem;
  205. // }
  206. // .field--type-link {
  207. // width: fit-content;
  208. // height: fit-content;
  209. // padding: 0.4rem 1rem;
  210. // font-size: 0.8rem;
  211. // margin: 0;
  212. // background-color: $white;
  213. // border: 2px solid $blue-light;
  214. // list-style: none;
  215. // display: inline-flex;
  216. // a{
  217. // text-transform: uppercase;
  218. // font-weight: 700;
  219. // color: $blue-light;
  220. // display: inline-flex;
  221. // align-items: center;
  222. // }
  223. // a::after{
  224. // content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  225. // }
  226. // }
  227. }
  228. // présentation programme
  229. .block-views-blockhome-nodes-block-2{
  230. // grid-area: programme;
  231. .view-display-id-block_2:is(.view-id-home_nodes){
  232. padding-top: 2rem;
  233. padding-bottom: 4rem;
  234. // // background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><rect x="0" y="0" width="80" height="80" transform="rotate(35) translate(430, -800) scale(15)" fill="none" stroke="rgb(0,158,227)" stroke-width="0.4px"/></svg>');
  235. // background: url('../images/pictos/carre-contour-bleu.svg');
  236. // // background-position-y: 50%;
  237. // background-repeat: no-repeat;
  238. // max-width: 100vw;
  239. // background-size: cover;
  240. .node-type-static{
  241. width: 80%;
  242. margin: auto;
  243. @media (max-width: 479px) {
  244. width: 80%;
  245. }
  246. div:first-child:not(.field__item):not(.field){
  247. display: flex;
  248. flex-direction: row;
  249. flex-wrap: wrap;
  250. :nth-child(4) { order: 3; }
  251. }
  252. .inline.links{
  253. z-index: 95;
  254. align-self: flex-end;
  255. width: fit-content;
  256. height: fit-content;
  257. padding: 0.4rem 1rem;
  258. font-size: 0.8rem;
  259. margin: 0;
  260. background-color: $white;
  261. border: 2px solid $blue-light;
  262. list-style: none;
  263. a{
  264. text-transform: uppercase;
  265. font-weight: 700;
  266. color: $blue-light;
  267. display: inline-flex;
  268. align-items: center;
  269. &:after{
  270. // display: block;
  271. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  272. }
  273. }
  274. }
  275. .field--name-field-images{
  276. // grid-column: 2 / 4;
  277. @media (max-width: 810px) {
  278. width: 100%;
  279. }
  280. .field__item{
  281. img{
  282. width: 15rem;
  283. height: auto;
  284. }
  285. }
  286. }
  287. .field--name-title{
  288. display: none;
  289. }
  290. .field--name-field-accroche{
  291. flex: 1 1 50px;
  292. // grid-column: 4 / 9;
  293. padding-left: 1rem;
  294. @media (max-width: 810px){
  295. padding-left: 0em;
  296. flex: 1 1 100%;
  297. padding-right: 1rem;
  298. }
  299. @media (max-width: 479px){
  300. padding-left: 0em;
  301. }
  302. p{
  303. background-color: $white;
  304. font-size: 1.5rem;
  305. width: 110%;
  306. padding-bottom: 2rem;
  307. margin-block-start: 0;
  308. text-align: start !important;
  309. @media (max-width: 810px){
  310. font-size: 1.2rem;
  311. width: 100%;
  312. }
  313. }
  314. }
  315. .field--name-field-videos{
  316. flex: 0 0 80%;
  317. padding-top: 4rem;
  318. margin: auto;
  319. @media (max-width: 479px){
  320. flex: 0 0 100%;
  321. }
  322. .field__items {
  323. .field__item:nth-of-type(1){
  324. display: none;
  325. }
  326. }
  327. }
  328. }
  329. }
  330. }
  331. // Zoom sur les projets
  332. .block-views-blockprojets-block-4{
  333. border-top: 5px solid $blue-light;
  334. background: $background-actus;
  335. padding-top: 2rem;
  336. padding-bottom: 4rem;
  337. span h2{
  338. width: 80%;
  339. margin: auto;
  340. padding-top: 1rem;
  341. padding-bottom: 5rem;
  342. text-transform: uppercase;
  343. color: $red;
  344. font-family: 'Source Code Pro';
  345. font-weight: 1000;
  346. @media (max-width: 479px){
  347. padding-bottom: 1rem;
  348. }
  349. }
  350. .view-projets{
  351. width: 80%;
  352. margin: auto;
  353. .view-content{
  354. display: flex;
  355. flex-direction: row;
  356. justify-content: space-between;
  357. @media(max-width: 810px){
  358. flex-direction: column;
  359. }
  360. .views-row{
  361. width: 49%;
  362. @media(max-width: 810px){
  363. width: 100%;
  364. margin-bottom: 3rem;
  365. }
  366. .node-type-projet{
  367. color: $blue-dark;
  368. line-height: 1.5rem;
  369. @media (max-width: 479px){
  370. padding-left: 0rem;
  371. padding-right: 0rem;
  372. padding-top: 2rem;
  373. }
  374. div:first-child{
  375. display: flex;
  376. flex-direction: column;
  377. max-height: fit-content;
  378. a{
  379. color: $blue-dark;
  380. }
  381. .field--name-field-photo {
  382. order:1;
  383. .field__item{
  384. display:none;
  385. }
  386. .field__item:first-child{
  387. display:block;
  388. }
  389. img{
  390. width: 100%;
  391. // object-fit: cover;
  392. // height: fit-content;
  393. height: auto;
  394. max-height: 400px;
  395. object-fit: cover;
  396. }
  397. // &::after{
  398. // display: block;
  399. // content:url('data:image/svg+xml,<svg width="160" height="25" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" x2="80" y1="20" y2="20" stroke-linecap="cube" stroke="rgb(9,57,139)" stroke-width="2.5"/></svg>');
  400. // }
  401. }
  402. .field--name-field-adresse{
  403. order:2;
  404. display: flex;
  405. text-transform: uppercase;
  406. font-size: 0.9rem;
  407. font-weight: 800;
  408. margin-top: 0.8rem;
  409. line-height: 0.6rem;
  410. .address{
  411. display: flex;
  412. flex-direction: row;
  413. margin: 0;
  414. .locality{
  415. padding-top: 0 !important;
  416. padding-bottom: 0 !important;
  417. &::after{
  418. content:",";
  419. margin-right: 0.3rem;
  420. }
  421. }
  422. .country{
  423. padding-top: 0 !important;
  424. padding-bottom: 0 !important;
  425. } }
  426. }
  427. .field--name-field-sous-titre{
  428. margin-top: 0.5rem;
  429. font-size: 0.9rem;
  430. font-weight: 800;
  431. order: 4;
  432. }
  433. .field--name-title{
  434. order: 3;
  435. margin-top: 0.5rem;
  436. font-size: 0.9rem;
  437. font-weight: 800;
  438. h2{margin: 0;}
  439. }
  440. .field--name-field-incube{
  441. order:4;
  442. color: $red;
  443. margin-top: 0.8rem;
  444. font-size: 0.7rem;
  445. }
  446. .field--name-field-region{
  447. display: none;
  448. order: 5;
  449. color: $black;
  450. font-size: 0.7rem;
  451. }
  452. .field--name-field-type-de-moa{
  453. display: none;
  454. order:6;
  455. a{
  456. color: $black;
  457. font-size: 0.7rem;
  458. }
  459. }
  460. .field--name-field-type-de-projet{
  461. display: none;
  462. order:7;
  463. a {
  464. color: $black;
  465. font-size: 0.7rem;
  466. }
  467. }
  468. .field--name-field-etape-du-projet{
  469. display: none;
  470. order: 8;
  471. color: $black;
  472. font-size: 0.7rem;
  473. }
  474. }
  475. }
  476. }
  477. }
  478. }
  479. }
  480. // bouton voir tous les projets du bandeau bleu
  481. .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f{
  482. display: flex;
  483. flex-flow: row-reverse;
  484. background: $background-actus;
  485. padding-right:10%;
  486. padding-top: 2rem;
  487. padding-bottom: 4rem;
  488. @media(max-width:479px) {
  489. padding-top: 2rem;
  490. padding-bottom: 2rem;
  491. }
  492. .field--type-text-with-summary{
  493. height: fit-content;
  494. padding: 0.4rem 1rem;
  495. font-size: 0.8rem;
  496. margin: 0;
  497. background-color: $white;
  498. border: 2px solid $blue-light;
  499. list-style: none;
  500. display: inline-flex;
  501. p{margin: 0;}
  502. a{
  503. text-transform: uppercase;
  504. font-weight: 700;
  505. color: $blue-light;
  506. display: inline-flex;
  507. align-items: center;
  508. }
  509. a::after{
  510. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  511. }
  512. }
  513. }
  514. //carte
  515. .block-views-blockprojets-block-2{
  516. #leaflet-map-view-projets-block-2{
  517. height: 500px !important;
  518. }
  519. }
  520. }