_home.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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. padding-bottom: 4rem;
  168. .views-row:nth-of-type(1) { grid-column: 2; }
  169. .node-type-actualite{
  170. color: $black;
  171. line-height: 1.5rem;
  172. padding: 0.5rem;
  173. div:first-child{ // block actu dans le bandeau
  174. display: flex;
  175. flex-direction: column;
  176. :nth-child(1) { order: 1; }
  177. :nth-child(4) { order: 2; }
  178. :nth-child(5) { order: 3; }
  179. }
  180. .field--name-field-images {
  181. .field__item img{
  182. max-width: 70%;
  183. max-height: 130px;
  184. object-fit: cover;
  185. width: 100%;
  186. padding-bottom: 1rem;
  187. }
  188. // &::after{
  189. // display: block;
  190. // 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>');
  191. // }
  192. }
  193. time{
  194. font-size: 0.9rem;
  195. font-weight: 800;
  196. padding-right: 1rem;
  197. width: fit-content;
  198. &:after{
  199. padding-left: 0.5rem;
  200. content: "|";}
  201. }
  202. .field:not(.field--name-field-images){
  203. width: 100%;
  204. }
  205. h2{ margin:0; }
  206. a{ color: $black; }
  207. .inline.links{
  208. padding-top: none !important;
  209. list-style: none;
  210. width: fit-content;
  211. align-self: flex-end;
  212. padding-right: 1rem;
  213. a{
  214. display: none;
  215. }
  216. // a{
  217. // 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>');
  218. // }
  219. }
  220. .field--name-field-actu-type{
  221. padding-top: 1rem;
  222. }
  223. }
  224. }
  225. }
  226. // bouton voir toutes actus du bandeau bleu
  227. // .layout--onecol{
  228. .block-block-content.block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  229. display: grid;
  230. grid-template-columns: 1fr repeat(8, 2fr) 1fr;
  231. position: relative;
  232. height: 0;
  233. .field--type-link {
  234. grid-area: 8 / span 9;
  235. justify-self: end;
  236. position: relative;
  237. top: -200%;
  238. width: fit-content;
  239. height: fit-content;
  240. padding: 0.4rem 1rem;
  241. font-size: 0.8rem;
  242. margin: 0;
  243. background-color: $white;
  244. border: 2px solid $blue-light;
  245. list-style: none;
  246. a{
  247. text-transform: uppercase;
  248. font-weight: 700;
  249. color: $blue-light;
  250. }
  251. a::after{
  252. 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>');
  253. }
  254. }
  255. }
  256. // }
  257. // boutons en savoir plus pour lien vers pages statiques
  258. // présentation programme
  259. .view-display-id-block_2:is(.view-id-home_nodes){
  260. padding-top: 2rem;
  261. // 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>');
  262. background: url('../images/pictos/carre-contour-bleu.svg');
  263. // background-position-y: 50%;
  264. background-repeat: no-repeat;
  265. max-width: 100vw;
  266. background-size: cover;
  267. .node-type-static{
  268. width: 70%;
  269. margin: auto;
  270. div:first-child:not(.field__item):not(.field){
  271. display: flex;
  272. flex-direction: row;
  273. }
  274. .inline.links{
  275. align-self: flex-end;
  276. width: fit-content;
  277. height: fit-content;
  278. padding: 0.4rem 1rem;
  279. font-size: 0.8rem;
  280. margin: 0;
  281. background-color: $white;
  282. border: 2px solid $blue-light;
  283. list-style: none;
  284. a{
  285. text-transform: uppercase;
  286. font-weight: 700;
  287. color: $blue-light;
  288. &:after{
  289. // display: block;
  290. 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>');
  291. }
  292. }
  293. }
  294. .field--name-field-images{
  295. // grid-column: 2 / 4;
  296. .field__item{
  297. img{
  298. width: 15rem;
  299. height: auto;
  300. }
  301. }
  302. }
  303. .field--name-title{
  304. display: none;
  305. }
  306. .field--name-field-accroche{
  307. flex: 1 1 50px;
  308. // grid-column: 4 / 9;
  309. padding-left: 1rem;
  310. p{
  311. background-color: $white;
  312. font-size: 1.5rem;
  313. width: 110%;
  314. margin-bottom: 2rem;
  315. padding-bottom: 2rem;
  316. margin-block-start: 0;
  317. }
  318. }
  319. }
  320. }