_home.scss 22 KB

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