_home-old.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. .path-frontpage{
  2. .block-region-content{
  3. display: grid;
  4. grid-template-areas: "presentation presentation presentation presentation presentation presentation"
  5. "presentation presentation presentation presentation presentation presentation"
  6. "presentation presentation presentation presentation presentation presentation"
  7. "presentation presentation presentation presentation presentation presentation"
  8. "actus actus actus actus actus actus"
  9. "actus actus actus actus actus actus"
  10. "programme programme programme programme programme programme"
  11. "programme programme programme programme programme programme"
  12. "programme programme programme programme programme programme";
  13. grid-template-rows: auto auto auto;
  14. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  15. min-height: 100vh;
  16. // 1er bandeau home
  17. .block-config-pages-block{
  18. grid-area: presentation;
  19. width: 100%;
  20. height: 78vh;
  21. background: url("../images/pictos/rosace_coupee.svg");
  22. // background: url("../images/carre_site.mp4");
  23. background-position-y: top;
  24. background-position-x: center;
  25. background-repeat: no-repeat;
  26. background-size: cover;
  27. // padding-bottom: 3rem;
  28. @media (max-width: 428px){
  29. height: 66vh;
  30. background-size: cover;
  31. background-position-y: top;
  32. background-position-x: left;
  33. }
  34. .config_pages--type--home-front{
  35. // width:20vw;
  36. // min-width: fit-content;
  37. // height: 20vw;
  38. width: 400px;
  39. height: 340px;
  40. min-height: fit-content;
  41. margin: auto;
  42. background-color: white;
  43. margin-top: 5rem;
  44. margin-left: 22%;
  45. // margin-bottom: 5rem;
  46. padding: 4rem 2rem 4rem 2rem;
  47. // padding-left: 5%;
  48. // padding-right: 5%;
  49. // padding-bottom: 4rem;
  50. // padding-top: 4rem;
  51. @media (max-width: 428px){
  52. width: 300px;
  53. height: 200px;
  54. margin-left: 10%;
  55. padding: 3rem 5% 4rem 5%;
  56. margin-top: 5rem;
  57. }
  58. .field--name-field-titre{
  59. // font-size: 5rem;
  60. // font-weight: 900;
  61. // color: $blue-light;
  62. // line-height: 5.7rem;
  63. // margin-top: 4rem;
  64. // margin-bottom: 2rem;
  65. // width: fit-content;
  66. color: #e1000f;
  67. font-weight: 900;
  68. font-size: 1.5rem;
  69. text-transform: uppercase;
  70. font-family: "Source Code Pro";
  71. @media (max-width: 428px){
  72. font-size: 1.2rem;;
  73. }
  74. }
  75. .field--name-field-sous-titre{
  76. // color: #e1000f;
  77. // font-weight: 900;
  78. // font-size: 1.8rem;
  79. // text-transform: uppercase;
  80. // font-family: "Source Code Pro";
  81. font-size: 3rem;
  82. font-weight: 900;
  83. color: $blue-light;
  84. line-height: 4rem;
  85. margin-top: 3rem;
  86. margin-bottom: 2rem;
  87. width: fit-content;
  88. @media (max-width: 428px){
  89. font-size: 2.5rem;
  90. line-height: 3rem;
  91. margin-top: 1rem;
  92. }
  93. }
  94. .field--name-field-punchline{
  95. color: $blue-light;
  96. font-weight: 900;
  97. font-size: 1.5rem;
  98. text-transform: uppercase;
  99. font-family: "Source Code Pro";
  100. padding-bottom: 3rem;
  101. }
  102. .field--name-field-lien{
  103. position: relative;
  104. background-color: $white;
  105. border: 2px solid $blue-light;
  106. width: fit-content;
  107. height: 1.5rem;
  108. padding: 0.4rem 1rem;
  109. text-align: center !important;
  110. float: right;
  111. bottom: 0;
  112. a{
  113. display: inline-flex;
  114. text-transform: uppercase;
  115. font-weight: 700;
  116. color: $blue-light;
  117. align-items: center;
  118. &:after{
  119. display: block;
  120. 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>');
  121. }
  122. }
  123. }
  124. }
  125. }
  126. .block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
  127. display: none;
  128. }
  129. .block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  130. display: none;
  131. }
  132. // bandeau actus
  133. .block-views-blockactus-blocks-pages-block-1{
  134. grid-area: actus;
  135. width: 100vw;
  136. border-bottom: 5px solid $blue-light;
  137. border-top: 5px solid $blue-light;
  138. background: $background-actus;
  139. .view-actus-blocks-pages{
  140. .view-content{
  141. display: grid;
  142. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  143. margin: auto;
  144. padding-top: 2rem;
  145. padding-bottom: 4rem;
  146. @media (max-width: 479px){
  147. display: flex;
  148. flex-direction: column;
  149. // padding-left: 1rem;
  150. width: 80%;
  151. }
  152. .views-row:nth-of-type(1) { grid-column: 2; }
  153. .node-type-actualite{
  154. color: $black;
  155. line-height: 1.5rem;
  156. padding: 0.5rem;
  157. div:first-child{ // block actu dans le bandeau
  158. display: flex;
  159. flex-direction: column;
  160. // :nth-child(1) { order: 1; }
  161. // :nth-child(4) { order: 2; }
  162. // :nth-child(5) { order: 3; }
  163. }
  164. .field--name-field-images {
  165. order: 1;
  166. .field__item img{
  167. max-width: 95%;
  168. max-height: 150px;
  169. object-fit: cover;
  170. width: 100%;
  171. padding-bottom: 1rem;
  172. }
  173. }
  174. .field--name-field-date{
  175. order: 2;
  176. display: flex;
  177. flex-direction: row;
  178. justify-content: flex-start;
  179. &:not(:last-child):after{
  180. padding-right: 1rem;
  181. content: "|";
  182. }
  183. time{
  184. font-size: 0.9rem;
  185. font-weight: 800;
  186. padding-right: 1rem;
  187. width: fit-content;
  188. // :not(:last-child):after{
  189. // padding-left: 0.5rem;
  190. // content: "|";
  191. // }
  192. }
  193. }
  194. .field--name-title{
  195. order:3;
  196. }
  197. .field--name-field-sous-titre{
  198. order:4;
  199. margin-top: 0.3rem;
  200. font-weight: 800;
  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. }
  217. .field--name-field-actu-type{
  218. order:5;
  219. padding-top: 1rem;
  220. }
  221. }
  222. }
  223. }
  224. }
  225. // bouton voir toutes actus du bandeau bleu
  226. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  227. grid-area: actus;
  228. grid-row: 6;
  229. grid-column: 5 / span 6;
  230. max-width: 50%;
  231. min-width: fit-content;
  232. margin-bottom: 2rem;
  233. align-self: flex-end;
  234. @media (max-width: 479px){
  235. grid-column: 2 / span 4;
  236. max-width: 80%;
  237. margin: auto;
  238. margin-top: 1rem;
  239. margin-bottom: 1.5rem;
  240. }
  241. .field--type-link {
  242. width: fit-content;
  243. height: fit-content;
  244. padding: 0.4rem 1rem;
  245. font-size: 0.8rem;
  246. margin: 0;
  247. background-color: $white;
  248. border: 2px solid $blue-light;
  249. list-style: none;
  250. display: inline-flex;
  251. a{
  252. text-transform: uppercase;
  253. font-weight: 700;
  254. color: $blue-light;
  255. display: inline-flex;
  256. align-items: center;
  257. }
  258. a::after{
  259. 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>');
  260. }
  261. }
  262. }
  263. // présentation programme
  264. .block-views-blockhome-nodes-block-2{
  265. grid-area: programme;
  266. .view-display-id-block_2:is(.view-id-home_nodes){
  267. padding-top: 2rem;
  268. // 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>');
  269. background: url('../images/pictos/carre-contour-bleu.svg');
  270. // background-position-y: 50%;
  271. background-repeat: no-repeat;
  272. max-width: 100vw;
  273. background-size: cover;
  274. .node-type-static{
  275. width: 70%;
  276. margin: auto;
  277. @media (max-width: 479px) {
  278. width: 80%;
  279. }
  280. div:first-child:not(.field__item):not(.field){
  281. display: flex;
  282. flex-direction: row;
  283. flex-wrap: wrap;
  284. :nth-child(4) { order: 3; }
  285. }
  286. .inline.links{
  287. z-index: 95;
  288. align-self: flex-end;
  289. width: fit-content;
  290. height: fit-content;
  291. padding: 0.4rem 1rem;
  292. font-size: 0.8rem;
  293. margin: 0;
  294. background-color: $white;
  295. border: 2px solid $blue-light;
  296. list-style: none;
  297. a{
  298. text-transform: uppercase;
  299. font-weight: 700;
  300. color: $blue-light;
  301. display: inline-flex;
  302. align-items: center;
  303. &:after{
  304. // display: block;
  305. 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>');
  306. }
  307. }
  308. }
  309. .field--name-field-images{
  310. // grid-column: 2 / 4;
  311. .field__item{
  312. img{
  313. width: 15rem;
  314. height: auto;
  315. }
  316. }
  317. }
  318. .field--name-title{
  319. display: none;
  320. }
  321. .field--name-field-accroche{
  322. flex: 1 1 50px;
  323. // grid-column: 4 / 9;
  324. padding-left: 1rem;
  325. @media (max-width: 479px){
  326. padding-left: 0em;
  327. }
  328. p{
  329. background-color: $white;
  330. font-size: 1.5rem;
  331. width: 110%;
  332. padding-bottom: 2rem;
  333. margin-block-start: 0;
  334. text-align: start !important;
  335. @media (max-width: 479px){
  336. font-size: 1.2rem;
  337. width: 100%;
  338. }
  339. }
  340. }
  341. .field--name-field-videos{
  342. flex: 0 0 80%;
  343. padding-top: 4rem;
  344. margin: auto;
  345. @media (max-width: 479px){
  346. flex: 0 0 100%;
  347. }
  348. .field__items {
  349. .field__item:nth-of-type(1){
  350. display: none;
  351. }
  352. }
  353. }
  354. }
  355. }
  356. }
  357. }
  358. }