_home.scss 12 KB

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