_home.scss 11 KB

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