_home.scss 16 KB

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