_home.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. .field--type-entity-reference-revisions{
  2. .paragraph-summary{
  3. font-family: $font-family-default;
  4. font-size: 5rem;
  5. font-weight: 600;
  6. color: $black !important;
  7. text-transform: capitalize;
  8. span:nth-of-type(2n){
  9. display: block;
  10. font-size: 1rem;
  11. }
  12. }
  13. .paragraph-summary:nth-of-type(2n) {
  14. font-size: 2rem;
  15. }
  16. }
  17. // 1er bandeau
  18. .block-views-blockhome-nodes-block-1{
  19. background: url("../images/pictos/carre-contour-bleu_contact.svg");
  20. .node-type-static{
  21. div:first-child{
  22. display: grid;
  23. // flex-direction: column;
  24. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  25. grid-template-rows: repeat(4, auto);
  26. .field--name-field-images{
  27. display: none;
  28. // z-index: -99;
  29. // filter: grayscale(100%);
  30. // filter: brightness(0%);
  31. // opacity: 0.5;
  32. // // display: none;
  33. // grid-column: 1 /span 10;
  34. // grid-row: 1 / span 4;
  35. // img{
  36. // width: 100vw;
  37. // height: auto;
  38. // }
  39. }
  40. .field--name-field-accroche{
  41. grid-column: 2 /span 3;
  42. grid-row: 2 / span 2;
  43. font-size: 5rem;
  44. font-weight: 800;
  45. color: $blue-light;
  46. line-height: 6rem;
  47. p{
  48. margin: 0;
  49. }
  50. margin: 0;
  51. }
  52. .field--name-title{
  53. grid-column: 4;
  54. grid-row: 1;
  55. margin-top: 2rem;
  56. h2{
  57. a{
  58. color: #e1000f;
  59. font-weight: 900;
  60. text-transform: uppercase;
  61. }
  62. }
  63. }
  64. .links.inline{
  65. grid-column: 2;
  66. grid-row: 4;
  67. max-width: 70%;
  68. min-width: fit-content;
  69. height: 1.5rem;
  70. padding: 0.4rem 1rem;
  71. font-size: 0.8rem;
  72. margin-bottom: 2.5rem;
  73. background-color: $white;
  74. border: 2px solid $blue-light;
  75. list-style: none;
  76. text-align: center !important;
  77. a{
  78. display: inline-flex;
  79. text-transform: uppercase;
  80. font-weight: 700;
  81. color: $blue-light;
  82. &:after{
  83. display: block;
  84. 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>');
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }
  91. // bouton déposer candidature
  92. .block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
  93. display: grid;
  94. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  95. height: 0;
  96. .field--type-link {
  97. grid-column: 3;
  98. // justify-self: end;
  99. position: relative;
  100. max-width: 70%;
  101. min-width: fit-content;
  102. height: 1.5rem;
  103. padding: 0.4rem 1rem;
  104. font-size: 0.8rem;
  105. margin: 0;
  106. background-color: $white;
  107. border: 2px solid $blue-light;
  108. list-style: none;
  109. top: -200%;
  110. text-align: center !important;
  111. a{
  112. display: inline-flex;
  113. text-transform: uppercase;
  114. font-weight: 700;
  115. color: $blue-light;
  116. }
  117. a::after{
  118. 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>');
  119. }
  120. }
  121. }
  122. // bouton foire aux questions
  123. .block-region-content{
  124. position: relative;
  125. .block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  126. // display: grid;
  127. // grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  128. // position: relative;
  129. // background-color: $blue-light;
  130. // height: 0;
  131. // width: 100%;
  132. // position: relative;
  133. // .field--name-field-lien.field--type-link{
  134. // position: relative;
  135. // bottom: +326%;
  136. // grid-column: 5;
  137. // width:inherit;
  138. // font-size: 0.8rem;
  139. // list-style: none;
  140. // background-color: $blue-light;
  141. // display: flex;
  142. // justify-content: center;
  143. // a{
  144. // text-transform: uppercase;
  145. // font-weight: 700;
  146. // color: $blue-dark;
  147. // &:before{
  148. // display: block;
  149. // width: fit-content;
  150. // 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="white" stroke="white" stroke-width="0.7"/></svg>');
  151. // }
  152. // }
  153. grid-column: 5;
  154. background-color: $blue-light;
  155. .field--name-field-lien{
  156. &:before{
  157. margin-top: 1rem;
  158. display: block;
  159. content: url("../images/pictos/picto_faq.svg");
  160. }
  161. text-align: center;
  162. a{
  163. font-size: 0.8rem;
  164. font-weight: 1000;
  165. color: $blue-dark;
  166. text-transform: uppercase;
  167. }
  168. }
  169. .field--name-field-description{
  170. p{
  171. margin-top: 0;
  172. margin-left: 1.5rem;
  173. margin-right: 1.5rem;
  174. text-align: center;
  175. a{
  176. font-weight: 800;
  177. color: $white;
  178. font-size: 1.3rem;
  179. }
  180. &:after{
  181. display: block;
  182. content:url("../images/pictos/noun_Arrow_3771902.svg")
  183. }
  184. }
  185. }
  186. // .field--name-field-description{
  187. // position: relative;
  188. // bottom: +140%;
  189. // grid-column: 5;
  190. // background-color: $blue-light;
  191. // p{
  192. // color: $white;
  193. // font-size: 1.2rem;
  194. // padding-left: 1rem;
  195. // padding-right: 1rem;
  196. // margin-top: 0;
  197. // text-align: center;
  198. // }
  199. // }
  200. }
  201. }
  202. // bandeau actus
  203. .block-views-blockactus-blocks-pages-block-1{
  204. clear: both;
  205. border-bottom: 5px solid $blue-light;
  206. border-top: 5px solid $blue-light;
  207. .view-content{
  208. display: grid;
  209. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  210. margin: auto;
  211. padding-top: 2rem;
  212. padding-bottom: 4rem;
  213. .views-row:nth-of-type(1) { grid-column: 2; }
  214. .node-type-actualite{
  215. color: $black;
  216. line-height: 1.5rem;
  217. padding: 0.5rem;
  218. div:first-child{ // block actu dans le bandeau
  219. display: flex;
  220. flex-direction: column;
  221. :nth-child(1) { order: 1; }
  222. :nth-child(4) { order: 2; }
  223. :nth-child(5) { order: 3; }
  224. }
  225. .field--name-field-images {
  226. .field__item img{
  227. max-width: 70%;
  228. max-height: 130px;
  229. object-fit: cover;
  230. width: 100%;
  231. padding-bottom: 1rem;
  232. }
  233. // &::after{
  234. // display: block;
  235. // content:url('data:image/svg+xml,<svg width="160" height="40" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" x2="80" y1="20" y2="20" stroke-linecap="cube" stroke="white" stroke-width="5"/></svg>');
  236. // }
  237. }
  238. time{
  239. font-size: 0.9rem;
  240. font-weight: 800;
  241. padding-right: 1rem;
  242. width: fit-content;
  243. &:after{
  244. padding-left: 0.5rem;
  245. content: "|";}
  246. }
  247. .field:not(.field--name-field-images){
  248. width: 100%;
  249. }
  250. h2{ margin:0; }
  251. a{ color: $black; }
  252. .inline.links{
  253. padding-top: none !important;
  254. list-style: none;
  255. width: fit-content;
  256. align-self: flex-end;
  257. padding-right: 1rem;
  258. a{
  259. display: none;
  260. }
  261. // a{
  262. // 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>');
  263. // }
  264. }
  265. .field--name-field-actu-type{
  266. padding-top: 1rem;
  267. }
  268. }
  269. }
  270. }
  271. // bouton voir toutes actus du bandeau bleu
  272. // .layout--onecol{
  273. .block-block-content.block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  274. display: grid;
  275. grid-template-columns: 1fr repeat(8, 2fr) 1fr;
  276. position: relative;
  277. height: 0;
  278. .field--type-link {
  279. grid-area: 8 / span 9;
  280. justify-self: end;
  281. position: relative;
  282. top: -200%;
  283. width: fit-content;
  284. height: fit-content;
  285. padding: 0.4rem 1rem;
  286. font-size: 0.8rem;
  287. margin: 0;
  288. background-color: $white;
  289. border: 2px solid $blue-light;
  290. list-style: none;
  291. a{
  292. text-transform: uppercase;
  293. font-weight: 700;
  294. color: $blue-light;
  295. }
  296. a::after{
  297. 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>');
  298. }
  299. }
  300. }
  301. // }
  302. // boutons en savoir plus pour lien vers pages statiques
  303. // présentation programme
  304. .view-display-id-block_2:is(.view-id-home_nodes){
  305. padding-top: 2rem;
  306. // 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>');
  307. background: url('../images/pictos/carre-contour-bleu.svg');
  308. // background-position-y: 50%;
  309. background-repeat: no-repeat;
  310. max-width: 100vw;
  311. background-size: cover;
  312. .node-type-static{
  313. width: 70%;
  314. margin: auto;
  315. div:first-child:not(.field__item):not(.field){
  316. display: flex;
  317. flex-direction: row;
  318. }
  319. .inline.links{
  320. align-self: flex-end;
  321. width: fit-content;
  322. height: fit-content;
  323. padding: 0.4rem 1rem;
  324. font-size: 0.8rem;
  325. margin: 0;
  326. background-color: $white;
  327. border: 2px solid $blue-light;
  328. list-style: none;
  329. a{
  330. text-transform: uppercase;
  331. font-weight: 700;
  332. color: $blue-light;
  333. &:after{
  334. // display: block;
  335. 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>');
  336. }
  337. }
  338. }
  339. .field--name-field-images{
  340. // grid-column: 2 / 4;
  341. .field__item{
  342. img{
  343. width: 15rem;
  344. height: auto;
  345. }
  346. }
  347. }
  348. .field--name-title{
  349. display: none;
  350. }
  351. .field--name-field-accroche{
  352. flex: 1 1 50px;
  353. // grid-column: 4 / 9;
  354. padding-left: 1rem;
  355. p{
  356. background-color: $white;
  357. font-size: 1.5rem;
  358. width: 110%;
  359. margin-bottom: 2rem;
  360. padding-bottom: 2rem;
  361. margin-block-start: 0;
  362. }
  363. }
  364. }
  365. }