_home.scss 22 KB

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