_home.scss 24 KB

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