main.scss 16 KB

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