_home.scss 12 KB

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