_home.scss 18 KB

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