main.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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. .row{
  21. display: flex;
  22. flex-direction: row;
  23. pointer-events: none;
  24. >*{
  25. margin-right: 1em;
  26. pointer-events: all;
  27. }
  28. // &.top{
  29. // }
  30. }
  31. h1.row{
  32. font-family: "avara";
  33. span.title{
  34. font-size: 2em;
  35. }
  36. }
  37. }
  38. #main-content{
  39. #map-backgrounds{
  40. .map-bg-canvas{
  41. mix-blend-mode: multiply;
  42. // filter: contrast(170%);
  43. &.gradient{
  44. // filter: blur(10px);
  45. }
  46. &.trame{
  47. // display:none;
  48. }
  49. }
  50. }
  51. #map-concernements{
  52. }
  53. #map-nav{
  54. pointer-events: none;
  55. ul{
  56. display: flex;
  57. flex-flow: row;
  58. gap: 1em;
  59. pointer-events: none;
  60. li{
  61. list-style: none;
  62. pointer-events: all;
  63. margin-right: 1em;
  64. a{
  65. @include btn();
  66. display: block;
  67. line-height: 2.1;
  68. &.disabled{
  69. pointer-events: none;
  70. opacity: 0.4;
  71. cursor: default;
  72. }
  73. }
  74. }
  75. }
  76. }
  77. #content{
  78. @mixin main-cartouche{
  79. background-color: rgba(255, 255, 255, 0.9);
  80. box-sizing: border-box;
  81. width:450px;
  82. height: 100%;
  83. padding: 1rem 1rem 1rem;
  84. overflow-y: auto;
  85. overflow-x: hidden;
  86. //
  87. display: flex;
  88. flex-direction: column;
  89. }
  90. section.static{
  91. @include main-cartouche();
  92. h2{
  93. font-weight: 400;
  94. font-size: 1.323em;
  95. padding: 1em 0;
  96. }
  97. p:not(:last-of-type){
  98. margin-bottom: 1em;
  99. }
  100. img{
  101. width: 100%;
  102. }
  103. iframe{
  104. width: 100%;
  105. aspect-ratio: 4 / 3;
  106. }
  107. }
  108. section.concernement{
  109. @include main-cartouche();
  110. justify-content: flex-end;
  111. // layout
  112. >header{
  113. flex: 0 0 auto;
  114. padding: 0 0 1em 0;
  115. }
  116. >main{
  117. flex: 1 1 auto;
  118. }
  119. >footer{
  120. flex: 0 0 auto;
  121. padding: 1em 0 0;
  122. }
  123. >header{
  124. flex: 0 0 auto;
  125. }
  126. // contents
  127. >header{
  128. display: flex;
  129. // height: 8rem;
  130. flex-direction: column;
  131. justify-content: flex-end;
  132. div.pre-header{
  133. min-height: 10em;
  134. display: flex;
  135. flex-direction: column;
  136. justify-content: flex-end;
  137. label, h3{
  138. // height: 70px;
  139. box-sizing: border-box;
  140. // padding: 0 0 1em 0;
  141. // flex-grow: auto;
  142. }
  143. h3{
  144. font-weight: 400;
  145. font-size: 1.323em;
  146. }
  147. span.menacemaintient{
  148. display: block;
  149. font-weight: 100;
  150. font-size: 0.882em;
  151. padding: 1em 0 1em 0;
  152. }
  153. }
  154. div.concernement-cartouche-icons{
  155. h2{
  156. font-weight: 400;
  157. font-size: 1.323em;
  158. // &.faded{
  159. // font-weight: 100;
  160. // }
  161. }
  162. nav.icons{
  163. ul{
  164. display: flex;
  165. flex-direction: row;
  166. li{
  167. margin: 0.4em 0.6em 0 0;
  168. >svg{
  169. display: inline-block;
  170. $d: 35px;
  171. width:$d; height:$d;
  172. border-radius: $d * 0.5;
  173. background-color: #fff;
  174. padding: 2px;
  175. box-sizing: border-box;
  176. color: #333;
  177. // font-size: 2em;
  178. }
  179. }
  180. }
  181. }
  182. }
  183. }
  184. >main{
  185. overflow-y: auto;
  186. >section:not(:last-of-type),
  187. .multiple >section:not(:last-of-type){
  188. padding-bottom: 1em;
  189. }
  190. figure{
  191. margin:0.5em 0;
  192. img{
  193. max-width: 100%;
  194. }
  195. }
  196. // PUISSANCE D'AGIR
  197. ul.besoins{
  198. li.besoin{
  199. position: relative;
  200. label.mdi:before{
  201. font-size: 0.8em;
  202. padding-right: 0.2em;
  203. }
  204. svg.open-btn{
  205. position: absolute;
  206. right:0; top:0;
  207. cursor: pointer;
  208. }
  209. >header{
  210. padding: 0 0 0 0;
  211. cursor: pointer;
  212. >label{
  213. padding:0.3em 0 0.5em 0;
  214. svg{
  215. width:0.7em; height:0.7em;
  216. }
  217. &.hover{
  218. svg{
  219. color:#01ffe2;
  220. }
  221. }
  222. }
  223. h4.besoin-description{
  224. font-weight: 400;
  225. font-size: 1.2em;
  226. // padding: 0.5em 0;
  227. }
  228. }
  229. ul.reponses{
  230. overflow: hidden;
  231. max-height: 1px;
  232. transition: all 0.7s ease-in-out;
  233. li.reponse{
  234. padding:0.5em 0 0;
  235. &:last-of-type{
  236. padding: 0.5em 0 1em;
  237. }
  238. >label{
  239. padding:0 0 0.5em 0;
  240. svg{
  241. width:0.7em;height:0.7em;
  242. }
  243. &.hover{
  244. svg{
  245. color:#01ffe2;
  246. }
  247. }
  248. }
  249. section{
  250. &:not(:last-of-type){
  251. padding: 0 0 0.5em 0;
  252. }
  253. label{ padding:0; }
  254. p{margin:0;}
  255. }
  256. }
  257. }
  258. a.contribute-link{
  259. display: flex;
  260. flex-direction: row;
  261. justify-content: flex-end;
  262. align-items:flex-end;
  263. font-weight: 100;
  264. font-size: 0.882em;
  265. svg{
  266. width:1em; height:1em; margin-right: 0.5em;
  267. }
  268. }
  269. &.opened{
  270. ul.reponses{
  271. max-height: 1000px;
  272. }
  273. }
  274. padding-bottom: 0.5em;
  275. border-bottom: #aaa 1px solid;
  276. margin-bottom: 1em;
  277. }
  278. }
  279. // CERCLE POLITIQUE
  280. section.content-doleances{
  281. >main{
  282. padding: 1em 0;
  283. h5{
  284. margin: 0 0 1em 0;
  285. }
  286. }
  287. label{
  288. margin:0;
  289. padding:0 0 0.5em 0;
  290. }
  291. p{
  292. margin:0;
  293. padding:0 0 0.5em 0;
  294. }
  295. ul{
  296. // padding:0 0 0 1em;
  297. }
  298. .v-select{
  299. input.vs__search{
  300. display: none;
  301. }
  302. div.vs__dropdown-toggle{
  303. border-radius: 0;
  304. border: none;
  305. }
  306. div.vs__selected-options{
  307. padding: 0;
  308. span.vs__selected{
  309. padding: 0;
  310. margin: 0;
  311. font-weight: 400;
  312. font-size: 1.323em;
  313. color:inherit;
  314. line-height: 1.15;
  315. }
  316. }
  317. ul.vs__dropdown-menu{
  318. border-radius: 0;
  319. border: none;
  320. li.vs__dropdown-option{
  321. white-space:normal;
  322. padding:1em 1em 0 1em;
  323. &:last-of-type{
  324. padding:1em;
  325. }
  326. color: #aaa;
  327. transition: color 0.2s ease-in-out;
  328. &.vs__dropdown-option--highlight{
  329. color:#000;
  330. background-color: #fff;
  331. }
  332. }
  333. }
  334. }
  335. }
  336. }
  337. >footer{
  338. section.infos{
  339. >div{
  340. font-size: 0.882em;
  341. font-weight: 100;
  342. // white-space:nowrap;
  343. >span.label{
  344. font-weight: 100;
  345. }
  346. p{
  347. // display: inline-block;
  348. font-size: inherit;
  349. font-weight: inherit;
  350. }
  351. }
  352. }
  353. }
  354. h3{
  355. font-weight: 400;
  356. font-size: 1.2em;
  357. }
  358. h4{
  359. font-weight: 400;
  360. font-size: 1.2em;
  361. }
  362. h5{
  363. font-weight: 400;
  364. font-size: 1.1em;
  365. }
  366. section>div, p{
  367. font-size: 1em;
  368. font-weight: 300;
  369. }
  370. label{
  371. display: block;
  372. font-weight: 100;
  373. font-size: 0.882em;
  374. padding: 0 0 1em 0;
  375. }
  376. ul, li{
  377. padding:0; margin:0;
  378. list-style: none;
  379. }
  380. }
  381. }
  382. #map-popup{
  383. position: absolute;
  384. z-index: 10;
  385. pointer-events: none;
  386. // outline: 1px solid red;
  387. // top:0;
  388. // left: 0;
  389. .popup-content-wrapper{
  390. display: flex;
  391. flex-direction: row;
  392. align-items:center;
  393. .concernement-map-popup{
  394. background-color: white;
  395. padding: 1em;
  396. border-radius: 3px;
  397. max-width: 30em;
  398. ul.icons{
  399. display: flex;
  400. flex-direction: row;
  401. padding: 0;
  402. margin: 0;
  403. li{
  404. list-style:none;
  405. padding:0;
  406. margin:0 1em 0 0;
  407. }
  408. }
  409. }
  410. .concernement-map-popup-recit{
  411. padding-left: 0.8em;
  412. >svg{
  413. display: inline-block;
  414. $d: 55px;
  415. width:$d; height:$d;
  416. border-radius: $d * 0.5;
  417. background-color: #fff;
  418. padding: 10px;
  419. box-sizing: border-box;
  420. color: #333;
  421. // font-size: 2em;
  422. }
  423. }
  424. .entite-map-popup,
  425. .besoin-map-popup,
  426. .reponse-map-popup{
  427. background-color: white;
  428. padding: 1em;
  429. border-radius: 3px;
  430. max-width: 30em;
  431. >div{
  432. margin-bottom: 0.5em;
  433. label{
  434. display: block;
  435. font-weight: 100;
  436. font-size: 0.882em;
  437. }
  438. }
  439. }
  440. h1, div{
  441. font-size: 1em;
  442. font-weight: 400;
  443. }
  444. h1{
  445. padding-bottom: 0.5em;
  446. }
  447. }
  448. &:before{
  449. content: "";
  450. display: block;
  451. height: 0;
  452. width: 2.9em;
  453. border-top: 1px solid #01ffe2;
  454. position: absolute;
  455. }
  456. &[pos="top-right"]{
  457. padding: 0 0 2em 2em;
  458. &:before{
  459. bottom: 0;
  460. left: 0;
  461. transform-origin: 0 0;
  462. transform: rotate(-45deg);
  463. }
  464. }
  465. &[pos="bottom-right"]{
  466. padding: 2em 0 0 2em;
  467. &:before{
  468. top: 0;
  469. left: 0;
  470. transform-origin: 0 0;
  471. transform: rotate(45deg);
  472. }
  473. }
  474. &[pos="top-left"]{
  475. padding: 0 2em 2em 0;
  476. &:before{
  477. bottom: 0;
  478. right: 0;
  479. transform-origin: right bottom;
  480. transform: rotate(45deg);
  481. }
  482. .popup-content-wrapper{
  483. flex-direction:row-reverse;
  484. .concernement-map-popup-recit{
  485. padding-right: 0.8em;
  486. }
  487. }
  488. }
  489. &[pos="bottom-left"]{
  490. padding: 2em 2em 0 0;
  491. &:before{
  492. top: 0;
  493. right: 0;
  494. transform-origin: right top;
  495. transform: rotate(-45deg);
  496. }
  497. .popup-content-wrapper{
  498. flex-direction:row-reverse;
  499. .concernement-map-popup-recit{
  500. padding-right: 0.8em;
  501. }
  502. }
  503. }
  504. }
  505. }