main.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. // @import './node_modules/@mdi/font/scss/materialdesignicons.scss';
  2. @import "./base.scss";
  3. @import "./colors.scss";
  4. @import "./common.scss";
  5. @import "./layout.scss";
  6. @import "./fonts/snap_it/snap_it.css";
  7. @import "./fonts/avara/avara.css";
  8. @import "./fonts/public-sans/public-sans.css";
  9. body{
  10. background-color: $back;
  11. font-family: 'public_sans';
  12. font-weight: 300;
  13. font-size: 16px;
  14. }
  15. #app{
  16. }
  17. #app>header#header{
  18. // background-color: $front;
  19. pointer-events: none;
  20. display: flex;
  21. flex-direction: row;
  22. align-items: baseline;
  23. .row{
  24. display: flex;
  25. flex-direction: row;
  26. pointer-events: none;
  27. margin: 0;
  28. padding: 0;
  29. >*{
  30. margin-right: 1em;
  31. pointer-events: all;
  32. }
  33. // &.top{
  34. // }
  35. }
  36. div.row.title{
  37. padding: 0 0 0 1em;
  38. h1{
  39. font-family: "avara";
  40. margin: 0 1em 0 0;
  41. a{
  42. margin: 0;
  43. span.title{
  44. font-size: 2em;
  45. }
  46. }
  47. }
  48. }
  49. .row.top{
  50. >*{
  51. label,a{
  52. padding: 0;
  53. span{
  54. display:none;
  55. }
  56. }
  57. }
  58. }
  59. }
  60. #main-content{
  61. #map-backgrounds{
  62. .map-bg-canvas{
  63. mix-blend-mode: multiply;
  64. // filter: contrast(170%);
  65. &.gradient{
  66. // filter: blur(10px);
  67. }
  68. &.trame{
  69. // display:none;
  70. }
  71. }
  72. }
  73. #map-concernements{
  74. div.loading{
  75. position: absolute;
  76. top:50%;
  77. left:50%;
  78. z-index: 200;
  79. }
  80. }
  81. #map-nav{
  82. pointer-events: none;
  83. ul{
  84. display: flex;
  85. flex-flow: row;
  86. gap: 1em;
  87. pointer-events: none;
  88. li{
  89. list-style: none;
  90. pointer-events: all;
  91. margin-right: 1em;
  92. a{
  93. @include btn();
  94. display: block;
  95. // line-height: 2.1;
  96. line-height: 1.7;
  97. &.active{
  98. // color: red;
  99. span.icon{
  100. background-color: rgba(255, 255, 255, 0.6);
  101. }
  102. }
  103. &.disabled{
  104. pointer-events: none;
  105. opacity: 0.4;
  106. cursor: default;
  107. }
  108. @media screen and (max-width: 1500px) {
  109. display: flex;
  110. flex-direction: column;
  111. align-items: center;
  112. }
  113. }
  114. }
  115. }
  116. @media screen and (max-width: 1300px) {
  117. ul{
  118. gap: 0.5em;
  119. li{
  120. margin:0;
  121. a{
  122. span.label{
  123. display: none;
  124. }
  125. span.icon {
  126. width:2em;
  127. height:2em;
  128. border-radius: 1em;
  129. }
  130. }
  131. }
  132. }
  133. }
  134. @media screen and (max-width: 880px) {
  135. ul{
  136. flex-flow: column;
  137. width:fit-content;
  138. margin: 0;
  139. li{
  140. a{
  141. span.icon{}
  142. }
  143. }
  144. }
  145. }
  146. }
  147. $cartouch_width : 450px;
  148. #content{
  149. display: flex;
  150. gap: 0.5rem;
  151. @mixin main-cartouche{
  152. background-color: rgba(255, 255, 255, 0.9);
  153. box-sizing: border-box;
  154. width:$cartouch_width;
  155. height: 100%;
  156. padding: 1rem 1rem 1rem;
  157. overflow-y: auto;
  158. overflow-x: hidden;
  159. //
  160. display: flex;
  161. flex-direction: column;
  162. }
  163. section.static{
  164. @include main-cartouche();
  165. h2{
  166. font-weight: 400;
  167. font-size: 1.323em;
  168. padding: 1em 0;
  169. }
  170. p:not(:last-of-type){
  171. margin-bottom: 1em;
  172. }
  173. img{
  174. width: 100%;
  175. }
  176. iframe{
  177. width: 100%;
  178. aspect-ratio: 4 / 3;
  179. }
  180. }
  181. section.concernement{
  182. @include main-cartouche();
  183. justify-content: flex-end;
  184. // layout
  185. >header{
  186. flex: 0 0 auto;
  187. padding: 0 0 1em 0;
  188. }
  189. >main{
  190. flex: 1 1 auto;
  191. }
  192. >footer{
  193. flex: 0 0 auto;
  194. padding: 1em 0 0;
  195. }
  196. >header{
  197. flex: 0 0 auto;
  198. }
  199. // contents
  200. >header{
  201. display: flex;
  202. // height: 8rem;
  203. flex-direction: column;
  204. justify-content: flex-end;
  205. div.entite{
  206. // min-height: 10em;
  207. // display: flex;
  208. // flex-direction: column;
  209. // justify-content: flex-end;
  210. label, h3{
  211. // height: 70px;
  212. box-sizing: border-box;
  213. // padding: 0 0 1em 0;
  214. // flex-grow: auto;
  215. }
  216. h3{
  217. font-weight: 400;
  218. font-size: 1.323em;
  219. position: relative;
  220. overflow: visible;
  221. &::before{
  222. content:"\2022";
  223. color: #01ffe2;
  224. position:absolute;
  225. left:-0.45em;
  226. font-weight: bold;
  227. }
  228. }
  229. span.menacemaintient{
  230. display: block;
  231. font-weight: 100;
  232. font-size: 0.882em;
  233. padding: 0.5em 0;
  234. }
  235. }
  236. div.concernement-cartouche-icons{
  237. h2{
  238. font-weight: 400;
  239. font-size: 1.323em;
  240. // &.faded{
  241. // font-weight: 100;
  242. // }
  243. }
  244. nav.icons{
  245. ul{
  246. display: flex;
  247. flex-direction: row;
  248. li{
  249. margin: 0.4em 0.6em 0 0;
  250. >svg{
  251. display: inline-block;
  252. $d: 35px;
  253. width:$d; height:$d;
  254. border-radius: $d * 0.5;
  255. background-color: #fff;
  256. padding: 2px;
  257. box-sizing: border-box;
  258. color: #333;
  259. // font-size: 2em;
  260. }
  261. }
  262. }
  263. }
  264. }
  265. }
  266. >main{
  267. overflow-y: auto;
  268. >section:not(:last-of-type),
  269. .multiple >section:not(:last-of-type){
  270. padding-bottom: 1em;
  271. }
  272. figure{
  273. margin:0.5em 0;
  274. img{
  275. max-width: 100%;
  276. }
  277. }
  278. section.entite{
  279. .sources{
  280. padding-top: 1em;
  281. .source{
  282. padding-top: 0.5em;
  283. div.date{
  284. display: block;
  285. font-weight: 100;
  286. font-size: 0.882em;
  287. padding: 0 0 0.5em 0;
  288. }
  289. .liens{
  290. a{
  291. text-decoration: underline;
  292. }
  293. }
  294. }
  295. }
  296. }
  297. // PUISSANCE D'AGIR
  298. ul.besoins{
  299. li.besoin{
  300. position: relative;
  301. label.mdi:before{
  302. font-size: 0.8em;
  303. padding-right: 0.2em;
  304. }
  305. svg.open-btn{
  306. position: absolute;
  307. right:0; top:0;
  308. cursor: pointer;
  309. }
  310. >header{
  311. padding: 0 0 0 0;
  312. cursor: pointer;
  313. >label{
  314. padding:0.3em 0 0.5em 0;
  315. svg{
  316. width:0.7em; height:0.7em;
  317. }
  318. &.hover{
  319. svg{
  320. color:#01ffe2;
  321. }
  322. }
  323. }
  324. h4.besoin-description{
  325. font-weight: 400;
  326. font-size: 1.2em;
  327. // padding: 0.5em 0;
  328. }
  329. }
  330. ul.reponses{
  331. overflow: hidden;
  332. max-height: 1px;
  333. transition: all 0.7s ease-in-out;
  334. li.reponse{
  335. padding:0.5em 0 0;
  336. &:last-of-type{
  337. padding: 0.5em 0 1em;
  338. }
  339. >label{
  340. padding:0 0 0.5em 0;
  341. svg{
  342. width:0.7em;height:0.7em;
  343. }
  344. &.hover{
  345. svg{
  346. color:#01ffe2;
  347. }
  348. }
  349. }
  350. section{
  351. &:not(:last-of-type){
  352. padding: 0 0 0.5em 0;
  353. }
  354. label{ padding:0; }
  355. p{margin:0;}
  356. }
  357. }
  358. }
  359. a.contribute-link{
  360. display: flex;
  361. flex-direction: row;
  362. justify-content: flex-end;
  363. align-items:flex-end;
  364. font-weight: 100;
  365. font-size: 0.882em;
  366. svg{
  367. width:1em; height:1em; margin-right: 0.5em;
  368. }
  369. }
  370. &.opened{
  371. ul.reponses{
  372. max-height: 1000px;
  373. }
  374. }
  375. padding-bottom: 0.5em;
  376. border-bottom: #aaa 1px solid;
  377. margin-bottom: 1em;
  378. }
  379. }
  380. // CERCLE POLITIQUE
  381. section.content-doleances{
  382. >main{
  383. padding: 1em 0;
  384. h5{
  385. margin: 0 0 0.5em 0;
  386. }
  387. }
  388. label{
  389. margin:0;
  390. padding:0 0 0.5em 0;
  391. }
  392. p{
  393. margin:0;
  394. padding:0 0 0.5em 0;
  395. }
  396. ul{
  397. // padding:0 0 0 1em;
  398. }
  399. // .v-select{
  400. // input.vs__search{
  401. // display: none;
  402. // }
  403. // div.vs__dropdown-toggle{
  404. // border-radius: 0;
  405. // border: none;
  406. // }
  407. // div.vs__selected-options{
  408. // padding: 0;
  409. // span.vs__selected{
  410. // padding: 0;
  411. // margin: 0;
  412. // font-weight: 400;
  413. // font-size: 1.323em;
  414. // color:inherit;
  415. // line-height: 1.15;
  416. // }
  417. // }
  418. // ul.vs__dropdown-menu{
  419. // border-radius: 0;
  420. // border: none;
  421. // li.vs__dropdown-option{
  422. // white-space:normal;
  423. // padding:1em 1em 0 1em;
  424. // &:last-of-type{
  425. // padding:1em;
  426. // }
  427. // color: #aaa;
  428. // transition: color 0.2s ease-in-out;
  429. // &.vs__dropdown-option--highlight{
  430. // color:#000;
  431. // background-color: #fff;
  432. // }
  433. // }
  434. // }
  435. // }
  436. }
  437. }
  438. >footer{
  439. section.infos{
  440. position: relative;
  441. svg.open-btn{
  442. position: absolute;
  443. right:0;
  444. top: 0;
  445. cursor: pointer;
  446. }
  447. div.wrapper{
  448. overflow-y: hidden;
  449. max-height: 0.1px;
  450. transition: all 0.5s ease-in-out;
  451. &.opened{
  452. max-height: 200px;
  453. }
  454. }
  455. div.info{
  456. font-size: 0.882em;
  457. font-weight: 100;
  458. // white-space:nowrap;
  459. &.author{
  460. cursor: pointer;
  461. }
  462. >span.label{
  463. font-weight: 100;
  464. }
  465. p{
  466. // display: inline-block;
  467. font-size: inherit;
  468. font-weight: inherit;
  469. }
  470. }
  471. }
  472. section.sliders{
  473. padding: 1em 0 0.5em;
  474. section.historique{
  475. >label{
  476. padding:0;
  477. }
  478. }
  479. .vue-slider-process{
  480. background-color: #01ffe2;
  481. height: 2px!important;
  482. top:calc(50% - 1px)!important;
  483. }
  484. }
  485. }
  486. h3{
  487. font-weight: 400;
  488. font-size: 1.2em;
  489. }
  490. h4{
  491. font-weight: 400;
  492. font-size: 1.2em;
  493. }
  494. h5{
  495. font-weight: 400;
  496. font-size: 1.1em;
  497. }
  498. section>div, p{
  499. font-size: 1em;
  500. font-weight: 300;
  501. line-height: 1.40;
  502. }
  503. label,
  504. span.date{
  505. display: block;
  506. font-weight: 100;
  507. font-size: 0.882em;
  508. padding: 0 0 0.5em 0;
  509. }
  510. ul, li{
  511. padding:0; margin:0;
  512. list-style: none;
  513. }
  514. p{
  515. white-space: pre-line;
  516. }
  517. }
  518. section.search{
  519. @include main-cartouche();
  520. header{
  521. flex: 0 0 auto;
  522. padding: 1em 0;
  523. h2{
  524. font-weight: 400;
  525. font-size: 1.323em;
  526. padding: 0 0 0.5em;
  527. }
  528. form{
  529. display: flex;
  530. flex-direction: column;
  531. justify-content: flex-start;
  532. align-items: flex-start;
  533. &>*{
  534. flex: 0 1 auto;
  535. }
  536. .content-type-checkboxes{
  537. padding:1em 0;
  538. display: flex;
  539. flex-direction: row;
  540. label{
  541. padding: 0 1em 0 0.2em;
  542. }
  543. }
  544. }
  545. }
  546. main{
  547. flex: 1 1 auto;
  548. overflow-y: auto;
  549. section.results{
  550. ul{
  551. margin:0;
  552. padding:0;
  553. li{
  554. margin:0;
  555. padding:0 0 1em 0;
  556. list-style: none;
  557. h1{
  558. // font-weight: 400;
  559. // font-size: 1.323em;
  560. font-size: 1em;
  561. font-weight: 300;
  562. // line-height: 1.4;
  563. //
  564. margin: 0;
  565. cursor: pointer;
  566. }
  567. h2 {
  568. font-size: 0.882em;
  569. font-weight: 100;
  570. margin: 0;
  571. padding: 0;
  572. cursor: pointer;
  573. }
  574. }
  575. }
  576. }
  577. }
  578. footer{
  579. flex: 0 0 auto;
  580. }
  581. }
  582. &.recit-opened {
  583. padding-bottom: 3rem;
  584. }
  585. p{
  586. a{
  587. text-decoration: underline;
  588. }
  589. }
  590. nav.doleance-switch{
  591. div{
  592. position: fixed;
  593. top: calc(100vh * 0.49);
  594. cursor: pointer;
  595. &.prev{
  596. left: 1rem;
  597. }
  598. &.next{
  599. right:calc($cartouch_width + 2rem);
  600. }
  601. }
  602. }
  603. }
  604. #recit-player{
  605. --plyr-color-main: #01ffe2;
  606. --plyr-control-icon-size: 14px;
  607. --plyr-audio-controls-background: rgba(255,255,255,0.4);
  608. --plyr-control-spacing: 4px;
  609. --plyr-range-track-height: 2px;
  610. // --plyr-control-radius: 10px;
  611. >div.plyr{
  612. width:450px;
  613. >div.plyr__controls{
  614. border-radius: 3px;
  615. // border: #fff 1px solid;
  616. }
  617. }
  618. &:not(.visible){
  619. display: none;
  620. }
  621. }
  622. #map-popup{
  623. position: absolute;
  624. z-index: 10;
  625. pointer-events: none;
  626. // outline: 1px solid red;
  627. // top:0;
  628. // left: 0;
  629. .popup-content-wrapper{
  630. // display: flex;
  631. // flex-direction: row;
  632. // align-items:center;
  633. position: relative;
  634. .concernement-map-popup{
  635. background-color: white;
  636. padding: 0.5em;
  637. border-radius: 3px;
  638. max-width: 30em;
  639. div.info.author{
  640. font-size: 0.882em;
  641. font-weight: 100;
  642. // white-space:nowrap;
  643. }
  644. ul.icons{
  645. display: flex;
  646. flex-direction: row;
  647. padding: 0.5em 0 0;
  648. margin: 0;
  649. li{
  650. list-style:none;
  651. padding:0;
  652. margin:0 1em 0 0;
  653. }
  654. }
  655. }
  656. .concernement-map-popup-recit{
  657. padding-left: 0.8em;
  658. position: absolute;
  659. top:3px;
  660. left:100%;
  661. >svg{
  662. display: inline-block;
  663. $d: 55px;
  664. width:$d; height:$d;
  665. border-radius: $d * 0.5;
  666. background-color: #fff;
  667. padding: 10px;
  668. box-sizing: border-box;
  669. color: #333;
  670. // font-size: 2em;
  671. }
  672. }
  673. .entite-map-popup,
  674. .entite-proximite-reference-map-popup,
  675. .besoin-map-popup,
  676. .reponse-map-popup{
  677. background-color: white;
  678. padding: 0.5em;
  679. border-radius: 3px;
  680. max-width: 30em;
  681. >div{
  682. margin-bottom: 0.5em;
  683. label{
  684. display: block;
  685. font-weight: 100;
  686. font-size: 0.882em;
  687. }
  688. }
  689. }
  690. .entite-map-popup{
  691. span.point{
  692. font-weight: 900;
  693. color: #01ffe2;
  694. }
  695. }
  696. .entite-proximite-reference-map-popup{
  697. span.point{
  698. font-weight: 900;
  699. }
  700. h1.ref-entite span.point{
  701. color: #01ffe2;
  702. }
  703. div.conjunction,h2{
  704. font-size: 0.756em;
  705. font-weight: 400;
  706. margin: 0.5em
  707. }
  708. }
  709. h1, h2, span, div{
  710. font-size: 1em;
  711. font-weight: 400;
  712. }
  713. // h1{
  714. // padding-bottom: 0.5em;
  715. // }
  716. }
  717. &:before{
  718. content: "";
  719. display: block;
  720. height: 0;
  721. width: 2.9em;
  722. border-top: 1px solid #01ffe2;
  723. position: absolute;
  724. }
  725. &[pos="top-right"]{
  726. padding: 0 0 2em 2em;
  727. &:before{
  728. bottom: 0;
  729. left: 0;
  730. transform-origin: 0 0;
  731. transform: rotate(-45deg);
  732. }
  733. }
  734. &[pos="bottom-right"]{
  735. padding: 2em 0 0 2em;
  736. &:before{
  737. top: 0;
  738. left: 0;
  739. transform-origin: 0 0;
  740. transform: rotate(45deg);
  741. }
  742. }
  743. &[pos="top-left"]{
  744. padding: 0 2em 2em 0;
  745. &:before{
  746. bottom: 0;
  747. right: 0;
  748. transform-origin: right bottom;
  749. transform: rotate(45deg);
  750. }
  751. .popup-content-wrapper{
  752. flex-direction:row-reverse;
  753. .concernement-map-popup-recit{
  754. padding-right: 0.8em;
  755. }
  756. }
  757. }
  758. &[pos="bottom-left"]{
  759. padding: 2em 2em 0 0;
  760. &:before{
  761. top: 0;
  762. right: 0;
  763. transform-origin: right top;
  764. transform: rotate(-45deg);
  765. }
  766. .popup-content-wrapper{
  767. flex-direction:row-reverse;
  768. .concernement-map-popup-recit{
  769. padding-right: 0.8em;
  770. }
  771. }
  772. }
  773. }
  774. }