_home.scss 24 KB

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