_home.scss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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. a{
  318. color: $blue-dark;
  319. }
  320. .field--name-field-photo {
  321. order:1;
  322. .field__item{
  323. display:none;
  324. }
  325. .field__item:first-child{
  326. display:block;
  327. }
  328. img{
  329. width: 100%;
  330. object-fit: cover;
  331. height: fit-content;
  332. }
  333. // &::after{
  334. // display: block;
  335. // 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>');
  336. // }
  337. }
  338. .field--name-field-adresse{
  339. order:2;
  340. display: flex;
  341. text-transform: uppercase;
  342. font-size: 0.9rem;
  343. font-weight: 800;
  344. margin-top: 0.8rem;
  345. line-height: 0.6rem;
  346. .address{
  347. display: flex;
  348. flex-direction: row;
  349. margin: 0;
  350. .locality{
  351. padding-top: 0 !important;
  352. padding-bottom: 0 !important;
  353. &::after{
  354. content:",";
  355. margin-right: 0.3rem;
  356. }
  357. }
  358. .country{
  359. padding-top: 0 !important;
  360. padding-bottom: 0 !important;
  361. } }
  362. }
  363. .field--name-field-sous-titre{
  364. margin-top: 0.5rem;
  365. font-size: 0.9rem;
  366. font-weight: 800;
  367. order: 4;
  368. }
  369. .field--name-title{
  370. order: 3;
  371. margin-top: 0.5rem;
  372. font-size: 0.9rem;
  373. font-weight: 800;
  374. h2{margin: 0;}
  375. }
  376. .field--name-field-incube{
  377. order:4;
  378. color: $red;
  379. margin-top: 0.8rem;
  380. font-size: 0.7rem;
  381. }
  382. .field--name-field-region{
  383. display: none;
  384. order: 5;
  385. color: $black;
  386. font-size: 0.7rem;
  387. }
  388. .field--name-field-type-de-moa{
  389. display: none;
  390. order:6;
  391. a{
  392. color: $black;
  393. font-size: 0.7rem;
  394. }
  395. }
  396. .field--name-field-type-de-projet{
  397. display: none;
  398. order:7;
  399. a {
  400. color: $black;
  401. font-size: 0.7rem;
  402. }
  403. }
  404. .field--name-field-etape-du-projet{
  405. display: none;
  406. order: 8;
  407. color: $black;
  408. font-size: 0.7rem;
  409. }
  410. }
  411. }
  412. // .node-type-projet{
  413. // .field--type-image img{
  414. // object-fit: cover;
  415. // width: 100%;
  416. // }
  417. // }
  418. }
  419. }
  420. }
  421. }
  422. // bouton voir tous les projets du bandeau bleu
  423. .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f{
  424. display: flex;
  425. flex-flow: row-reverse;
  426. // top: -109px;
  427. // position: relative;
  428. // right: 200px;
  429. background: $background-actus;
  430. padding-right:10%;
  431. padding-bottom: 4rem;
  432. .field--type-text-with-summary{
  433. height: fit-content;
  434. padding: 0.4rem 1rem;
  435. font-size: 0.8rem;
  436. margin: 0;
  437. background-color: $white;
  438. border: 2px solid $blue-light;
  439. list-style: none;
  440. display: inline-flex;
  441. p{margin: 0;}
  442. a{
  443. text-transform: uppercase;
  444. font-weight: 700;
  445. color: $blue-light;
  446. display: inline-flex;
  447. align-items: center;
  448. }
  449. a::after{
  450. 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>');
  451. }
  452. }
  453. }
  454. //carte
  455. .block-views-blockprojets-block-2{
  456. #leaflet-map-view-projets-block-2{
  457. height: 500px !important;
  458. }
  459. }
  460. }