_home.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. .path-frontpage{
  2. .home{
  3. background-color: white;
  4. }
  5. .header_top_left_container{
  6. div:nth-child(2){
  7. img{
  8. width: 77%;
  9. }
  10. }
  11. }
  12. .block-region-content{
  13. display: grid;
  14. grid-template-columns: repeat(3, minmax(0,1fr));
  15. align-items: center;
  16. .views-element-container{
  17. grid-column: 1 / span 3;
  18. // overflow: hidden;
  19. }
  20. >div:last-of-type{
  21. grid-column: 1 / span 3;
  22. background: $trame;
  23. text-align: center;
  24. padding: 1rem;
  25. }
  26. }
  27. }
  28. .last-news, .last-ressources{
  29. .slick-slide{
  30. margin: 0 1rem;
  31. }
  32. .views-row{
  33. display: grid !important;
  34. grid-template-columns: 1fr;
  35. // flex-direction: column;
  36. // flex-direction: column-reverse;
  37. position: relative;
  38. height: auto;
  39. a{
  40. text-decoration: none;
  41. }
  42. }
  43. }
  44. .last-news .programme-1{
  45. .views-field:not(.views-field-field-image){
  46. background: $col-1 !important;
  47. }
  48. }
  49. .last-news .programme-2{
  50. .views-field:not(.views-field-field-image){
  51. background: $col-2 !important;
  52. }
  53. }
  54. .last-news .programme-3{
  55. .views-field:not(.views-field-field-image){
  56. background: $col-eur !important;
  57. }
  58. }
  59. .last-news .programme-4{
  60. .views-field:not(.views-field-field-image){
  61. background: $col-1;
  62. }
  63. }
  64. .last-news .programme-5{
  65. .views-field:not(.views-field-field-image){
  66. background: $col-mond !important;
  67. }
  68. }
  69. .last-news .programme-6{
  70. .views-field:not(.views-field-field-image){
  71. background: $col-ter !important;
  72. }
  73. }
  74. .last-news .programme-7{
  75. .views-field:not(.views-field-field-image){
  76. background: $col-met !important;
  77. }
  78. }
  79. .last-news{
  80. margin-top: 2rem;
  81. height: auto;
  82. .slick-track{
  83. height: 40vw;
  84. }
  85. .slick-slide > div{
  86. height: 100%;
  87. }
  88. .views-row{
  89. height: 100%;
  90. }
  91. .views-field-field-image{
  92. height: 100%;
  93. margin-top: 1rem;
  94. // position: absolute;
  95. grid-column: 1;
  96. grid-row: 1 / span 7;
  97. z-index: -1;
  98. .field-content{
  99. width: 100%;
  100. height: 100%;
  101. }
  102. img{
  103. width: 100%;
  104. height: 100%;
  105. object-fit: cover;
  106. }
  107. }
  108. .views-field:not(.views-field-field-image){
  109. grid-column: 1;
  110. padding-right: .5rem;
  111. padding-left: .5rem;
  112. background-color: black;
  113. width: 90%;
  114. margin-left: 1rem;
  115. color: white;
  116. // align-self: flex-start;
  117. // grid-column: 1;
  118. grid-auto-rows: min-content;
  119. font-size: $font-normal;
  120. text-transform: uppercase;
  121. }
  122. // .views-field-field-type-evenement{
  123. // grid-row: 4;
  124. // }
  125. .views-field-title{
  126. grid-row: 2;
  127. font-size: $font-big !important;
  128. font-weight: 500;
  129. line-height: 1.2;
  130. padding-top: .3rem;
  131. }
  132. .views-field-field-sous-titre{
  133. grid-row: 5;
  134. }
  135. .views-field-field-type-evenement{
  136. grid-row: 6;
  137. padding: .5rem 0 1rem 0;
  138. }
  139. .views-field-field-dates-actu{
  140. grid-row: 4;
  141. }
  142. .views-field-field-date{
  143. grid-row: 3;
  144. }
  145. .views-field-field-programme{
  146. text-transform: uppercase;
  147. grid-row: 1;
  148. font-weight: 500;
  149. padding: .5rem 0 .5rem 0;
  150. }
  151. }
  152. // general à deplacer
  153. .last-ressources{
  154. .views-field{
  155. color: black;
  156. }
  157. .views-field-field-image{
  158. grid-column: 1;
  159. grid-row: 1 / span 4;
  160. z-index: -1;
  161. // padding-top: 1rem;
  162. }
  163. .views-field:not(.views-field-field-image){
  164. background: black;
  165. width: 50%;
  166. margin-left: 1rem;
  167. padding-left: 1rem;
  168. color: white;
  169. }
  170. .views-field-title-1, .views-field-title{
  171. padding-bottom: 1rem;
  172. grid-column: 2;
  173. grid-row: 3;
  174. font-weight: 600;
  175. }
  176. .views-field-view-node{
  177. // padding-top: 1rem;
  178. // grid-column: 1;
  179. // grid-row: 1;
  180. grid-row: 4 / span 1;
  181. grid-column: 2 / span 1;
  182. margin-bottom: 1rem;
  183. display: none;
  184. }
  185. .views-field-field-programme{
  186. text-transform: uppercase;
  187. grid-column: 1;
  188. grid-row: 1;
  189. font-weight: 500;
  190. margin-bottom: 1rem;
  191. }
  192. .programme-1{
  193. .views-field{
  194. color: $col-1 !important;
  195. }
  196. .views-field-field-programme{
  197. .field-content{
  198. background: $col-1 ;
  199. }
  200. }
  201. }
  202. .programme-2{
  203. .views-field{
  204. color: $col-2 !important;
  205. }
  206. .views-field-field-programme{
  207. .field-content{
  208. background: $col-2 ;
  209. }
  210. }
  211. }
  212. .programme-3{
  213. .views-field{
  214. color: $col-eur !important;
  215. }
  216. .views-field-field-programme{
  217. .field-content{
  218. background: $col-eur ;
  219. }
  220. }
  221. }
  222. .programme-4{
  223. .views-field{
  224. color: $col-1;
  225. }
  226. .views-field-field-programme{
  227. .field-content{
  228. background:$col-1 ;
  229. }
  230. }
  231. }
  232. .programme-5{
  233. .views-field{
  234. color: $col-mond !important;
  235. }
  236. .views-field-field-programme{
  237. .field-content{
  238. background: $col-mond ;
  239. }
  240. }
  241. }
  242. .programme-6{
  243. .views-field{
  244. color: $col-ter !important;
  245. }
  246. .views-field-field-programme{
  247. .field-content{
  248. background: $col-ter ;
  249. }
  250. }
  251. }
  252. .programme-7{
  253. .views-field{
  254. color: $col-met !important;
  255. }
  256. .views-field-field-programme{
  257. .field-content{
  258. background: $col-met ;
  259. }
  260. }
  261. }
  262. }
  263. .main_logo{
  264. z-index: 10;
  265. height: 7rem;
  266. position: relative;
  267. // background: red;
  268. background: center / contain no-repeat url(../../images/popsu-home-logo.png);
  269. margin: -7% 0 3rem 0 !important;
  270. @include breakpoint(small down) {
  271. margin: -20% 0 3rem 0 !important;
  272. }
  273. }
  274. .about{
  275. box-shadow: inset 0 5rem 4rem white;
  276. background: $trame_white;
  277. font-size: $font-medium;
  278. text-align: center;
  279. padding: 1rem 0 3rem 0;
  280. // margin-top: -16rem;
  281. .views-row{
  282. .views-field-title{
  283. font-family: "duke" !important;
  284. font-size: $font-large;
  285. color:black;
  286. font-weight: 400;
  287. a{
  288. text-decoration: none;
  289. }
  290. }
  291. h3{
  292. color: black;
  293. }
  294. div{
  295. margin: 0 5%;
  296. @include breakpoint(small down) {
  297. margin: 0 3%;
  298. }
  299. }
  300. .views-field-view-node{
  301. display: inline-block;
  302. margin: 0 auto;
  303. background: black;
  304. color: white;
  305. font-family: "trueno";
  306. font-weight: 500;
  307. padding: .3rem .7rem;
  308. font-size: $font-normal;
  309. text-decoration: none;
  310. text-transform: uppercase;
  311. a{
  312. text-decoration: none;
  313. &:hover{
  314. text-decoration: underline;
  315. }
  316. }
  317. margin-top: 1rem;
  318. &:hover{
  319. color: black;
  320. background: white;
  321. }
  322. }
  323. }
  324. }
  325. #projets-block_1, #home_themes-block_1, #programmes-block_4{
  326. header{
  327. display: none;
  328. }
  329. }
  330. .header_container{
  331. background: $bck-col;
  332. display: grid;
  333. grid-template-columns: repeat(3, 1fr);
  334. grid-column: 1 / span 3;
  335. header{
  336. text-align: center;
  337. font-family: 'duke';
  338. font-size: 3.1rem;
  339. line-height: 1;
  340. opacity: .3;
  341. cursor: pointer;
  342. padding: .8rem;
  343. align-self: center;
  344. .arrow{
  345. font-size: $font-large;
  346. display: block;
  347. margin-top: -1rem;
  348. }
  349. &.active{
  350. opacity: 1;
  351. font-size: 4rem;
  352. }
  353. @include breakpoint(small down) {
  354. font-size: 2rem;
  355. &.active{
  356. font-size: 2.8rem;
  357. }
  358. }
  359. }
  360. @include breakpoint(small down) {
  361. grid-template-columns: repeat(2, minmax(0, 1fr));
  362. header[data-dom="programmes-block_4"]{
  363. display:none;
  364. }
  365. }
  366. }
  367. #home_themes-block_1{
  368. display: none;
  369. .slick-slide{
  370. margin: 0 1rem;
  371. }
  372. .slick-arrow{
  373. position: absolute;
  374. height: 100%;
  375. cursor: pointer;
  376. z-index: 100;
  377. // background-color: white;
  378. opacity: 0.2;
  379. transition: opacity 250ms;
  380. width: 10%;
  381. &:hover{
  382. opacity: .5;
  383. }
  384. }
  385. .slick-next{
  386. right: 0;
  387. top: 0;
  388. }
  389. .views-row{
  390. background-clip: content-box;
  391. background-color: grey;
  392. // height: 10rem;
  393. width: 100% !important;
  394. position: relative;
  395. }
  396. .views-row:after{
  397. content: "";
  398. display: block;
  399. padding-bottom: 100%;
  400. }
  401. .views-field-title{
  402. display: grid;
  403. top: 0;
  404. left: 0;
  405. width: 100%;
  406. height: 100%;
  407. z-index: 10;
  408. position: absolute;
  409. text-align: center;
  410. align-items: center;
  411. padding: .8rem 1rem;
  412. font-size: $font-medium;
  413. font-weight: 600;
  414. color: white;
  415. a{
  416. margin-top: -.5rem;
  417. text-decoration: none;
  418. }
  419. }
  420. .views-field-field-image:before{
  421. content: "";
  422. display: block;
  423. position: absolute;
  424. background: black;
  425. opacity: .4;
  426. width: 100%;
  427. height: 100%;
  428. }
  429. .views-field-field-image{
  430. top: 0;
  431. left: 0;
  432. width: 100%;
  433. height: 100%;
  434. position: absolute;
  435. .field-content{
  436. display: grid;
  437. // justify-content: center;
  438. // align-items: center;
  439. padding: 0;
  440. overflow: hidden;
  441. width: 100%;
  442. height: 100%;
  443. // a{
  444. // // margin-left: -50%;
  445. img{
  446. height: 100% !important;
  447. width: inherit !important;
  448. max-width: none;
  449. }
  450. // }
  451. }
  452. }
  453. }
  454. #programmes-block_4{
  455. display: none;
  456. grid-column: 1 / span 3;
  457. }
  458. #programmes-block_4>div>div{
  459. display: flex;
  460. //grid-template-columns: repeat( 3, 1fr);
  461. align-items: center;
  462. justify-items: center;
  463. margin-top: 0;
  464. .views-row{
  465. background-clip: content-box;
  466. min-height: 11rem;
  467. width: 100%;
  468. display: flex;
  469. flex-wrap: wrap;
  470. align-items: flex-start;
  471. align-content: center;
  472. padding: 1rem;
  473. .views-field{
  474. flex-basis: 100%;
  475. }
  476. .views-field:not(.views-field-field-logo){
  477. font-size: $font-medium;
  478. font-weight: 600;
  479. display: none;
  480. }
  481. .views-field-title{
  482. margin-bottom: .7rem;
  483. }
  484. &:hover{
  485. .views-field:not(.views-field-field-logo){
  486. font-weight: 600;
  487. display: block;
  488. color: white;
  489. text-align: center;
  490. a{
  491. text-decoration: none;
  492. }
  493. }
  494. }
  495. .views-field-field-logo{
  496. text-align: center;
  497. }
  498. }
  499. //temp
  500. .views-field-field-diaporama{
  501. display: none;
  502. }
  503. //
  504. .programme-1{
  505. // background: center / 45% no-repeat url(../images/POPSU_1.svg) white;
  506. img{
  507. width: 45%;
  508. @include breakpoint(small down) {
  509. width: 100%;
  510. }
  511. }
  512. &:hover{
  513. background: $col-1;
  514. img{
  515. display: none;
  516. }
  517. }
  518. }
  519. .programme-2{
  520. // background: center / 45% no-repeat url(../images/POPSU_2.svg) white;
  521. img{
  522. width: 45%;
  523. @include breakpoint(small down) {
  524. width: 100%;
  525. }
  526. }
  527. &:hover{
  528. background: $col-2;
  529. img{
  530. display: none;
  531. }
  532. }
  533. }
  534. .programme-3{
  535. // background: center / 50% no-repeat url(../images/POPSU_Europe.svg) white;
  536. img{
  537. width: 45%;
  538. @include breakpoint(small down) {
  539. width: 100%;
  540. }
  541. }
  542. &:hover{
  543. background: $col-eur;
  544. img{
  545. display: none;
  546. }
  547. }
  548. }
  549. .programme-4{
  550. // background: center / 50% no-repeat url(../images/POPSU_Europe.svg) white;
  551. img{
  552. width: 45%;
  553. @include breakpoint(small down) {
  554. width: 100%;
  555. }
  556. }
  557. &:hover{
  558. background: $col-1;
  559. img{
  560. display: none;
  561. }
  562. }
  563. }
  564. .programme-5{
  565. // background: center / 45% no-repeat url(../images/POPSU_monde.svg) white;
  566. img{
  567. width: 46%;
  568. @include breakpoint(small down) {
  569. width: 100%;
  570. }
  571. }
  572. &:hover{
  573. background: $col-mond;
  574. img{
  575. display: none;
  576. }
  577. }
  578. }
  579. .programme-6{
  580. // background: center / 45% no-repeat url(../images/POPSU_territoires.svg) white;
  581. img{
  582. width: 45%;
  583. @include breakpoint(small down) {
  584. width: 100%;
  585. }
  586. }
  587. &:hover{
  588. background: $col-ter;
  589. img{
  590. display: none;
  591. }
  592. }
  593. }
  594. .programme-7{
  595. // background: center / 45% no-repeat url(../images/POPSU_metropoles.svg) white;
  596. img{
  597. width: 45%;
  598. @include breakpoint(small down) {
  599. width: 100%;
  600. }
  601. }
  602. &:hover{
  603. background: $col-met;
  604. img{
  605. display: none;
  606. }
  607. }
  608. }
  609. }
  610. #home_blocks-block_3{
  611. background: $trame;
  612. padding: 2rem;
  613. h2{
  614. text-align: center;
  615. margin: 0 0 1rem 0;
  616. }
  617. .last-ressources{
  618. .views-field:not(.views-field-field-image){
  619. width: 80%;
  620. }
  621. .views-row{
  622. display: grid !important;
  623. grid-template-columns: 1fr 1fr;
  624. align-items: center;
  625. background: white;
  626. position: relative;
  627. height: auto;
  628. padding: 1rem;
  629. background-clip: content-box;
  630. }
  631. .views-field-field-image{
  632. grid-row: 3 / span 3;
  633. // margin-top: -1.5rem;
  634. z-index: 0;
  635. padding: .5rem;
  636. margin-top: -1.3rem;
  637. }
  638. .views-field:not(.views-field-field-image){
  639. background: transparent;
  640. width: auto;
  641. margin-left: 0;
  642. padding-left: 0;
  643. color: black;
  644. }
  645. .views-field-title-1,.views-field-title{
  646. font-weight: 400;
  647. grid-row: 3 / span 1;
  648. grid-column: 2;
  649. font-style: italic;
  650. }
  651. .views-field-field-auteurs{
  652. grid-row: 2 / span 1;
  653. font-weight: 600;
  654. grid-column: 2;
  655. }
  656. .views-field-field-edition{
  657. grid-row: 4;
  658. grid-column: 2;
  659. }
  660. .views-field-field-programme{
  661. .field-content{
  662. display: inline-block;
  663. width: auto;
  664. padding: .3rem .5rem;
  665. }
  666. .empty {
  667. background-color: black;
  668. height: 1rem;
  669. // &::before{
  670. // content: "POPSU";
  671. // }
  672. }
  673. padding-left: .5rem !important;
  674. grid-row: 1 / span 1;
  675. grid-column: 1 / span 2;
  676. text-transform: uppercase;
  677. margin-top: -.5rem;
  678. .field-content{
  679. font-weight: 600;
  680. display: inline-block;
  681. width: auto;
  682. color: white;
  683. padding: .02rem .3rem;
  684. // margin-bottom: 1rem;
  685. }
  686. }
  687. }
  688. }
  689. // #villes-block_1{
  690. // grid-column: 1;
  691. // }
  692. // #home_themes-block_1{
  693. // grid-column: 2;
  694. // }
  695. // #programmes-block_4{
  696. // grid-column: 3;
  697. // }
  698. // .home_info_container{
  699. // height: auto;
  700. // min-height: 5rem;
  701. // display: none;
  702. // grid-column: 1 / span 3;
  703. // }
  704. // #villes-block_1, #home_themes-block_1, #programmes-block_4{
  705. // background: $bck-col;
  706. // height: 100%;
  707. // display: grid;
  708. // align-items: center;
  709. // header{
  710. // text-align: center;
  711. // font-family: 'duke';
  712. // font-size: 3.1rem;
  713. // line-height: 1;
  714. // opacity: .3;
  715. // cursor:pointer;
  716. // padding: .8rem;
  717. // .arrow{
  718. // font-size: $font-large;
  719. // display: block;
  720. // margin-top: -1rem;
  721. // }
  722. // &.active{
  723. // opacity: 1;
  724. // font-size: 4rem;
  725. // }
  726. // }
  727. // .views-row{
  728. // display: none;
  729. // }
  730. // .leaflet-container{
  731. // display: none;
  732. // }
  733. // }