_home.scss 24 KB

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