_home.scss 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  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. .field--name-field-images {
  70. .field__item{
  71. display: flex;
  72. max-height: 420px;
  73. }
  74. .field__item img{
  75. max-width: 100%;
  76. max-height: 456px;
  77. object-fit: cover;
  78. object-position: center;
  79. @media(max-width:810px){
  80. max-height: 310px;
  81. max-width: 100%;
  82. object-fit: cover;
  83. padding-left: 0;
  84. margin-bottom: 1rem;
  85. }
  86. @media(max-width:724px){
  87. max-height: 400px;
  88. }
  89. @media (max-width: 680px){
  90. height: 200px;
  91. object-fit: cover;
  92. max-width: 70vw;
  93. margin: auto;
  94. padding-left: 0;
  95. padding-bottom: 1rem;
  96. }
  97. }
  98. }
  99. }
  100. .home_actu_infos{
  101. width: 45%;
  102. align-content: center;
  103. color: $blue-dark !important;
  104. .field--name-field-date,
  105. .field--name-field-lieu,
  106. .field--name-title,
  107. .field--name-field-sous-titre,
  108. .field--name-field-actu-type {
  109. }
  110. .field--name-field-date:empty,
  111. .field--name-field-lieu:empty,
  112. .field--name-title:empty,
  113. .field--name-field-sous-titre:empty,
  114. .field--name-field-actu-type:empty,
  115. .ul:empty{
  116. display: none;
  117. }
  118. .field--name-field-date{
  119. font-size: 1.3rem;
  120. @media (min-width: 811px) {
  121. // margin-top: 5rem;
  122. }
  123. div{
  124. display: flex !important;
  125. flex-direction: row;
  126. }
  127. time{
  128. display: flex;
  129. flex-direction: row;
  130. font-size: 1.3rem;
  131. font-weight: 800;
  132. padding-right: 1rem;
  133. width: fit-content;
  134. }
  135. }
  136. .field--name-field-lieu{
  137. font-size: 1.3rem;
  138. padding-top: 1rem;
  139. .field__label{
  140. display: none;
  141. }
  142. @media (max-width: 811px){
  143. display: inline-flex;
  144. }
  145. }
  146. .field--name-title {
  147. line-height: 1.1;
  148. font-size: 1.5rem;
  149. padding-top: 1rem;
  150. h2 a {
  151. color: $blue-dark !important;
  152. }
  153. }
  154. .field--name-field-sous-titre {
  155. display: none;
  156. font-weight: 800;
  157. @media (min-width: 811px) {
  158. font-size: 1.5rem;
  159. }
  160. }
  161. .field--name-field-actu-type {
  162. padding-top: 2rem;
  163. font-size: 1.3rem;
  164. }
  165. .field:not(.field--name-field-images) {
  166. width: 100%;
  167. }
  168. h2 {
  169. margin: 0;
  170. }
  171. a {
  172. color: $black;
  173. }
  174. .inline.links {
  175. display: none;
  176. }
  177. }
  178. }
  179. }
  180. }
  181. }
  182. }
  183. }
  184. }
  185. // bouton voir toutes actus du bandeau bleu
  186. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  187. visibility: visible;
  188. display: flex;
  189. flex-flow: row;
  190. justify-content: center;
  191. background: $background-actus;
  192. // padding-right:10%;
  193. padding-top: 3rem;
  194. padding-bottom: 3rem;
  195. border-bottom: 5px solid rgb(0, 158, 227);
  196. @media(max-width:479px) {
  197. padding-top: 2rem;
  198. padding-bottom: 2rem;
  199. }
  200. .field--name-field-lien{
  201. margin: auto;
  202. height: fit-content;
  203. padding: 0.4rem 1rem;
  204. font-size: 0.8rem;
  205. margin: 0;
  206. background-color: $white;
  207. border: 2px solid $blue-light;
  208. list-style: none;
  209. display: inline-flex;
  210. p{margin: 0;}
  211. a{
  212. text-transform: uppercase;
  213. font-weight: 700;
  214. color: $blue-light;
  215. display: inline-flex;
  216. align-items: center;
  217. }
  218. a::after{
  219. 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>');
  220. }
  221. }
  222. }
  223. // présentation programme
  224. .block-views-blockhome-nodes-block-2{
  225. // grid-area: programme;
  226. .view-display-id-block_2:is(.view-id-home_nodes){
  227. padding-top: 2rem;
  228. padding-bottom: 4rem;
  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 .view-type-slide .views-row-wrapper{
  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: cover;
  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.8rem;
  418. font-size: 0.9rem;
  419. font-weight: 800;
  420. order: 4;
  421. }
  422. .field--name-title{
  423. order: 3;
  424. margin-top: 0.8rem;
  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. }