_home.scss 25 KB

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