_home.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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(8, 1fr) 1fr;
  40. .field--name-field-images {
  41. order: 1;
  42. grid-column: 1 /span 5;
  43. grid-row: 1 / span 6;
  44. .field__item img{
  45. max-height: 450px;
  46. object-fit: contain;
  47. // padding-bottom: 1rem;
  48. max-width: 700px;
  49. }
  50. }
  51. .field--name-field-date{
  52. display: inline;
  53. grid-column: 9 / span 7;
  54. grid-row: 2;
  55. order: 2;
  56. // display: flex;
  57. flex-direction: row;
  58. // justify-content: flex-start;
  59. // &:not(:last-child):after{
  60. // padding-right: 1rem;
  61. // content: "|";
  62. // }
  63. time{
  64. font-size: 0.9rem;
  65. font-weight: 800;
  66. padding-right: 1rem;
  67. width: fit-content;
  68. // :not(:last-child):after{
  69. // padding-left: 0.5rem;
  70. // content: "|";
  71. // }
  72. }
  73. }
  74. .field--name-field-lieu{
  75. .field__label{
  76. display: none;
  77. }
  78. grid-column: 9 / span 9;
  79. grid-row: 2;
  80. }
  81. .field--name-title{
  82. display: inline-flex;
  83. grid-column: 9 / span 9;
  84. grid-row: 3;
  85. order:3;
  86. }
  87. .field--name-field-sous-titre{
  88. display: inline-block;
  89. grid-column: 9 / span 9;
  90. grid-row: 4;
  91. order:4;
  92. margin-top: 0.3rem;
  93. font-weight: 800;
  94. }
  95. .field:not(.field--name-field-images){
  96. width: 100%;
  97. }
  98. h2{ margin:0; }
  99. a{ color: $black; }
  100. .inline.links{
  101. // grid-column: 5;
  102. // grid-row: 4;
  103. padding-top: none !important;
  104. list-style: none;
  105. width: fit-content;
  106. align-self: flex-end;
  107. padding-right: 1rem;
  108. a{
  109. display: none;
  110. }
  111. }
  112. .field--name-field-actu-type{
  113. display: inline-block;
  114. grid-column: 9 / span 7;
  115. grid-row: 5;
  116. order:5;
  117. padding-top: 1rem;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. // bouton voir toutes actus du bandeau bleu
  127. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  128. visibility: hidden;
  129. // grid-area: actus;
  130. // grid-row: 6;
  131. // grid-column: 5 / span 6;
  132. // max-width: 50%;
  133. // min-width: fit-content;
  134. // margin-bottom: 2rem;
  135. // align-self: flex-end;
  136. // @media (max-width: 479px){
  137. // grid-column: 2 / span 4;
  138. // max-width: 80%;
  139. // margin: auto;
  140. // margin-top: 1rem;
  141. // margin-bottom: 1.5rem;
  142. // }
  143. // .field--type-link {
  144. // width: fit-content;
  145. // height: fit-content;
  146. // padding: 0.4rem 1rem;
  147. // font-size: 0.8rem;
  148. // margin: 0;
  149. // background-color: $white;
  150. // border: 2px solid $blue-light;
  151. // list-style: none;
  152. // display: inline-flex;
  153. // a{
  154. // text-transform: uppercase;
  155. // font-weight: 700;
  156. // color: $blue-light;
  157. // display: inline-flex;
  158. // align-items: center;
  159. // }
  160. // a::after{
  161. // 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>');
  162. // }
  163. // }
  164. }
  165. // présentation programme
  166. .block-views-blockhome-nodes-block-2{
  167. // grid-area: programme;
  168. .view-display-id-block_2:is(.view-id-home_nodes){
  169. padding-top: 2rem;
  170. padding-bottom: 4rem;
  171. // // 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>');
  172. // background: url('../images/pictos/carre-contour-bleu.svg');
  173. // // background-position-y: 50%;
  174. // background-repeat: no-repeat;
  175. // max-width: 100vw;
  176. // background-size: cover;
  177. .node-type-static{
  178. width: 80%;
  179. margin: auto;
  180. @media (max-width: 479px) {
  181. width: 80%;
  182. }
  183. div:first-child:not(.field__item):not(.field){
  184. display: flex;
  185. flex-direction: row;
  186. flex-wrap: wrap;
  187. :nth-child(4) { order: 3; }
  188. }
  189. .inline.links{
  190. z-index: 95;
  191. align-self: flex-end;
  192. width: fit-content;
  193. height: fit-content;
  194. padding: 0.4rem 1rem;
  195. font-size: 0.8rem;
  196. margin: 0;
  197. background-color: $white;
  198. border: 2px solid $blue-light;
  199. list-style: none;
  200. a{
  201. text-transform: uppercase;
  202. font-weight: 700;
  203. color: $blue-light;
  204. display: inline-flex;
  205. align-items: center;
  206. &:after{
  207. // display: block;
  208. 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>');
  209. }
  210. }
  211. }
  212. .field--name-field-images{
  213. // grid-column: 2 / 4;
  214. .field__item{
  215. img{
  216. width: 15rem;
  217. height: auto;
  218. }
  219. }
  220. }
  221. .field--name-title{
  222. display: none;
  223. }
  224. .field--name-field-accroche{
  225. flex: 1 1 50px;
  226. // grid-column: 4 / 9;
  227. padding-left: 1rem;
  228. @media (max-width: 479px){
  229. padding-left: 0em;
  230. }
  231. p{
  232. background-color: $white;
  233. font-size: 1.5rem;
  234. width: 110%;
  235. padding-bottom: 2rem;
  236. margin-block-start: 0;
  237. text-align: start !important;
  238. @media (max-width: 479px){
  239. font-size: 1.2rem;
  240. width: 100%;
  241. }
  242. }
  243. }
  244. .field--name-field-videos{
  245. flex: 0 0 80%;
  246. padding-top: 4rem;
  247. margin: auto;
  248. @media (max-width: 479px){
  249. flex: 0 0 100%;
  250. }
  251. .field__items {
  252. .field__item:nth-of-type(1){
  253. display: none;
  254. }
  255. }
  256. }
  257. }
  258. }
  259. }
  260. // Zoom sur les projets
  261. .block-views-blockprojets-block-4{
  262. border-top: 5px solid $blue-light;
  263. background: $background-actus;
  264. padding-top: 2rem;
  265. padding-bottom: 4rem;
  266. span h2{
  267. width: 80%;
  268. margin: auto;
  269. padding-top: 1rem;
  270. padding-bottom: 5rem;
  271. text-transform: uppercase;
  272. color: $red;
  273. font-family: 'Source Code Pro';
  274. font-weight: 1000;
  275. }
  276. .view-projets{
  277. width: 80%;
  278. margin: auto;
  279. .view-content{
  280. display: flex;
  281. flex-direction: row;
  282. justify-content: space-between;
  283. .views-row{
  284. width: 49%;
  285. .node-type-projet{
  286. color: $blue-dark;
  287. line-height: 1.5rem;
  288. // padding: 0.5rem;
  289. // padding-right: 1rem;
  290. // padding-left: 1rem;
  291. @media (max-width: 479px){
  292. padding-left: 0rem;
  293. padding-right: 0rem;
  294. padding-top: 2rem;
  295. }
  296. div:first-child{
  297. display: flex;
  298. flex-direction: column;
  299. a{
  300. color: $blue-dark;
  301. }
  302. .field--name-field-photo {
  303. order:1;
  304. img{
  305. width: 100%;
  306. object-fit: cover;
  307. height: fit-content;
  308. }
  309. // &::after{
  310. // display: block;
  311. // 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>');
  312. // }
  313. }
  314. .field--name-field-adresse{
  315. order:2;
  316. display: flex;
  317. text-transform: uppercase;
  318. font-size: 0.9rem;
  319. font-weight: 800;
  320. margin-top: 0.8rem;
  321. line-height: 0.6rem;
  322. .address{
  323. display: flex;
  324. flex-direction: row;
  325. margin: 0;
  326. .locality{
  327. padding-top: 0 !important;
  328. padding-bottom: 0 !important;
  329. &::after{
  330. content:",";
  331. margin-right: 0.3rem;
  332. }
  333. }
  334. .country{
  335. padding-top: 0 !important;
  336. padding-bottom: 0 !important;
  337. } }
  338. }
  339. .field--name-field-sous-titre{
  340. margin-top: 0.5rem;
  341. font-size: 0.9rem;
  342. font-weight: 800;
  343. order: 4;
  344. }
  345. .field--name-title{
  346. order: 3;
  347. margin-top: 0.5rem;
  348. font-size: 0.9rem;
  349. font-weight: 800;
  350. h2{margin: 0;}
  351. }
  352. .field--name-field-incube{
  353. order:4;
  354. color: $red;
  355. margin-top: 0.8rem;
  356. font-size: 0.7rem;
  357. }
  358. }
  359. }
  360. // .node-type-projet{
  361. // .field--type-image img{
  362. // object-fit: cover;
  363. // width: 100%;
  364. // }
  365. // }
  366. }
  367. }
  368. }
  369. }
  370. //carte
  371. .block-views-blockprojets-block-2{
  372. #leaflet-map-view-projets-block-2{
  373. height: 500px !important;
  374. }
  375. }
  376. }