_home.scss 26 KB

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