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