_home.scss 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  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. max-width: 100%;
  73. max-height: 456px;
  74. object-fit: cover;
  75. object-position: center;
  76. // padding-left: 1rem;
  77. @media(max-width:810px){
  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. display: inline-block;
  102. block-size: fit-content;
  103. grid-column: 9 / span 9;
  104. // grid-row: 2;
  105. order: 2;
  106. @media (min-width: 811px) {
  107. margin-top: 5rem;
  108. }
  109. div{
  110. display: flex !important;
  111. flex-direction: row;
  112. }
  113. time{
  114. display: flex;
  115. flex-direction: row;
  116. font-size: 0.9rem;
  117. font-weight: 800;
  118. padding-right: 1rem;
  119. width: fit-content;
  120. }
  121. }
  122. .field--name-field-lieu{
  123. display: inline-block;
  124. block-size: fit-content;
  125. grid-column: 9 / span 9;
  126. // grid-row: 3;
  127. order: 3;
  128. @media (min-width: 811px) {
  129. margin-top: 1rem;
  130. }
  131. // display: flex !important;
  132. // flex-direction: row;
  133. .field__label{
  134. display: none;
  135. }
  136. @media (max-width: 811px){
  137. display: inline-flex;
  138. order: 3;
  139. }
  140. }
  141. .field--name-title{
  142. display: inline-flex;
  143. block-size: fit-content;
  144. grid-column: 9 / span 9;
  145. // grid-row: 4;
  146. order:4;
  147. @media (min-width: 811px) {
  148. margin-top: 1rem;
  149. }
  150. h2 a{
  151. color: $blue-light !important;
  152. }
  153. }
  154. .field--name-field-sous-titre{
  155. display: inline-block;
  156. block-size: fit-content;
  157. grid-column: 9 / span 9;
  158. // grid-row: 5;
  159. order:5;
  160. font-weight: 800;
  161. @media (min-width: 811px) {
  162. font-size: 1.5rem;
  163. margin-top: 1rem;
  164. }
  165. }
  166. .field:not(.field--name-field-images){
  167. width: 100%;
  168. }
  169. h2{ margin:0; }
  170. a{
  171. color: $black;
  172. grid-column: 1/span 8;
  173. }
  174. .inline.links{
  175. padding-top: none !important;
  176. list-style: none;
  177. width: fit-content;
  178. align-self: flex-end;
  179. padding-right: 1rem;
  180. a{
  181. display: none;
  182. }
  183. }
  184. .field--name-field-actu-type{
  185. display: inline-block;
  186. block-size: fit-content;
  187. grid-column: 9 / span 7;
  188. // grid-row: 6;
  189. order:6;
  190. @media (min-width: 811px) {
  191. margin-top: 1rem;
  192. }
  193. // padding-top: 1rem;
  194. }
  195. }
  196. }
  197. }
  198. }
  199. }
  200. }
  201. }
  202. // bouton voir toutes actus du bandeau bleu
  203. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  204. visibility: hidden;
  205. // grid-area: actus;
  206. // grid-row: 6;
  207. // grid-column: 5 / span 6;
  208. // max-width: 50%;
  209. // min-width: fit-content;
  210. // margin-bottom: 2rem;
  211. // align-self: flex-end;
  212. // @media (max-width: 479px){
  213. // grid-column: 2 / span 4;
  214. // max-width: 80%;
  215. // margin: auto;
  216. // margin-top: 1rem;
  217. // margin-bottom: 1.5rem;
  218. // }
  219. // .field--type-link {
  220. // width: fit-content;
  221. // height: fit-content;
  222. // padding: 0.4rem 1rem;
  223. // font-size: 0.8rem;
  224. // margin: 0;
  225. // background-color: $white;
  226. // border: 2px solid $blue-light;
  227. // list-style: none;
  228. // display: inline-flex;
  229. // a{
  230. // text-transform: uppercase;
  231. // font-weight: 700;
  232. // color: $blue-light;
  233. // display: inline-flex;
  234. // align-items: center;
  235. // }
  236. // a::after{
  237. // 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>');
  238. // }
  239. // }
  240. }
  241. // présentation programme
  242. .block-views-blockhome-nodes-block-2{
  243. // grid-area: programme;
  244. .view-display-id-block_2:is(.view-id-home_nodes){
  245. padding-top: 2rem;
  246. padding-bottom: 4rem;
  247. // // 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>');
  248. // background: url('../images/pictos/carre-contour-bleu.svg');
  249. // // background-position-y: 50%;
  250. // background-repeat: no-repeat;
  251. // max-width: 100vw;
  252. // background-size: cover;
  253. .node-type-static{
  254. width: 80%;
  255. margin: auto;
  256. @media (max-width: 479px) {
  257. width: 80%;
  258. }
  259. div:first-child:not(.field__item):not(.field){
  260. display: flex;
  261. flex-direction: row;
  262. flex-wrap: wrap;
  263. :nth-child(4) { order: 3; }
  264. }
  265. .inline.links{
  266. z-index: 95;
  267. align-self: flex-end;
  268. width: fit-content;
  269. height: fit-content;
  270. padding: 0.4rem 1rem;
  271. font-size: 0.8rem;
  272. margin: 0;
  273. background-color: $white;
  274. border: 2px solid $blue-light;
  275. list-style: none;
  276. a{
  277. text-transform: uppercase;
  278. font-weight: 700;
  279. color: $blue-light;
  280. display: inline-flex;
  281. align-items: center;
  282. &:after{
  283. // display: block;
  284. 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>');
  285. }
  286. }
  287. }
  288. .field--name-field-images{
  289. // grid-column: 2 / 4;
  290. @media (max-width: 810px) {
  291. width: 100%;
  292. }
  293. .field__item{
  294. img{
  295. width: 15rem;
  296. height: auto;
  297. }
  298. }
  299. }
  300. .field--name-title{
  301. display: none;
  302. }
  303. .field--name-field-accroche{
  304. flex: 1 1 50px;
  305. // grid-column: 4 / 9;
  306. padding-left: 1rem;
  307. @media (max-width: 810px){
  308. padding-left: 0em;
  309. flex: 1 1 100%;
  310. padding-right: 1rem;
  311. }
  312. @media (max-width: 479px){
  313. padding-left: 0em;
  314. }
  315. p{
  316. background-color: $white;
  317. font-size: 1.5rem;
  318. width: 110%;
  319. padding-bottom: 2rem;
  320. margin-block-start: 0;
  321. text-align: start !important;
  322. @media (max-width: 810px){
  323. font-size: 1.2rem;
  324. width: 100%;
  325. }
  326. }
  327. }
  328. .field--name-field-videos{
  329. flex: 0 0 80%;
  330. padding-top: 4rem;
  331. margin: auto;
  332. @media (max-width: 479px){
  333. flex: 0 0 100%;
  334. }
  335. .field__items {
  336. .field__item:nth-of-type(1){
  337. display: none;
  338. }
  339. }
  340. }
  341. }
  342. }
  343. }
  344. // Zoom sur les projets
  345. .block-views-blockprojets-block-4{
  346. border-top: 5px solid $blue-light;
  347. background: $background-actus;
  348. padding-top: 2rem;
  349. padding-bottom: 4rem;
  350. span h2{
  351. width: 80%;
  352. margin: auto;
  353. padding-top: 1rem;
  354. padding-bottom: 5rem;
  355. text-transform: uppercase;
  356. color: $red;
  357. font-family: 'Source Code Pro';
  358. font-weight: 1000;
  359. @media (max-width: 479px){
  360. padding-bottom: 1rem;
  361. }
  362. }
  363. .view-projets{
  364. width: 80%;
  365. margin: auto;
  366. .view-content{
  367. display: flex;
  368. flex-direction: row;
  369. justify-content: space-between;
  370. @media(max-width: 810px){
  371. flex-direction: column;
  372. }
  373. .views-row{
  374. width: 49%;
  375. @media(max-width: 810px){
  376. width: 100%;
  377. margin-bottom: 3rem;
  378. }
  379. .node-type-projet{
  380. color: $blue-dark;
  381. line-height: 1.5rem;
  382. @media (max-width: 479px){
  383. padding-left: 0rem;
  384. padding-right: 0rem;
  385. padding-top: 2rem;
  386. }
  387. div:first-child{
  388. display: flex;
  389. flex-direction: column;
  390. max-height: fit-content;
  391. a{
  392. color: $blue-dark;
  393. }
  394. .field--name-field-photo {
  395. order:1;
  396. .field__item{
  397. display:none;
  398. }
  399. .field__item:first-child{
  400. display:block;
  401. }
  402. img{
  403. width: 100%;
  404. // object-fit: cover;
  405. // height: fit-content;
  406. height: auto;
  407. max-height: 400px;
  408. object-fit: cover;
  409. }
  410. // &::after{
  411. // display: block;
  412. // 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>');
  413. // }
  414. }
  415. .field--name-field-adresse{
  416. order:2;
  417. display: flex;
  418. text-transform: uppercase;
  419. font-size: 0.9rem;
  420. font-weight: 800;
  421. margin-top: 0.8rem;
  422. line-height: 0.6rem;
  423. .address{
  424. display: flex;
  425. flex-direction: row;
  426. margin: 0;
  427. .locality{
  428. padding-top: 0 !important;
  429. padding-bottom: 0 !important;
  430. &::after{
  431. content:",";
  432. margin-right: 0.3rem;
  433. }
  434. }
  435. .country{
  436. padding-top: 0 !important;
  437. padding-bottom: 0 !important;
  438. } }
  439. }
  440. .field--name-field-sous-titre{
  441. margin-top: 0.8rem;
  442. font-size: 0.9rem;
  443. font-weight: 800;
  444. order: 4;
  445. }
  446. .field--name-title{
  447. order: 3;
  448. margin-top: 0.8rem;
  449. font-size: 0.9rem;
  450. font-weight: 800;
  451. h2{margin: 0;}
  452. }
  453. .field--name-field-incube{
  454. order:4;
  455. color: $red;
  456. margin-top: 0.8rem;
  457. font-size: 0.7rem;
  458. }
  459. .field--name-field-region{
  460. display: none;
  461. order: 5;
  462. color: $black;
  463. font-size: 0.7rem;
  464. }
  465. .field--name-field-type-de-moa{
  466. display: none;
  467. order:6;
  468. a{
  469. color: $black;
  470. font-size: 0.7rem;
  471. }
  472. }
  473. .field--name-field-type-de-projet{
  474. display: none;
  475. order:7;
  476. a {
  477. color: $black;
  478. font-size: 0.7rem;
  479. }
  480. }
  481. .field--name-field-etape-du-projet{
  482. display: none;
  483. order: 8;
  484. color: $black;
  485. font-size: 0.7rem;
  486. }
  487. }
  488. }
  489. }
  490. }
  491. }
  492. }
  493. // bouton voir tous les projets du bandeau bleu
  494. .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f{
  495. display: flex;
  496. flex-flow: row-reverse;
  497. background: $background-actus;
  498. padding-right:10%;
  499. padding-top: 2rem;
  500. padding-bottom: 4rem;
  501. @media(max-width:479px) {
  502. padding-top: 2rem;
  503. padding-bottom: 2rem;
  504. }
  505. .field--type-text-with-summary{
  506. height: fit-content;
  507. padding: 0.4rem 1rem;
  508. font-size: 0.8rem;
  509. margin: 0;
  510. background-color: $white;
  511. border: 2px solid $blue-light;
  512. list-style: none;
  513. display: inline-flex;
  514. p{margin: 0;}
  515. a{
  516. text-transform: uppercase;
  517. font-weight: 700;
  518. color: $blue-light;
  519. display: inline-flex;
  520. align-items: center;
  521. }
  522. a::after{
  523. 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>');
  524. }
  525. }
  526. }
  527. //carte
  528. .block-views-blockprojets-block-2{
  529. #leaflet-map-view-projets-block-2{
  530. height: 500px !important;
  531. }
  532. }
  533. }