_home.scss 21 KB

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