_home.scss 11 KB

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