_home.scss 24 KB

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