_home.scss 14 KB

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