1
0

main.scss 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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. section.concernement{
  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. header, section{
  87. padding:0 0 2em 0;
  88. }
  89. label{
  90. display: block;
  91. font-weight: 100;
  92. font-size: 0.882em;
  93. padding: 0 0 1em 0;
  94. }
  95. ul, li{
  96. padding:0; margin:0;
  97. list-style: none;
  98. }
  99. >header{
  100. display: flex;
  101. // height: 8rem;
  102. flex-direction: column;
  103. justify-content: flex-end;
  104. div.pre-header{
  105. min-height: 10em;
  106. display: flex;
  107. flex-direction: column;
  108. justify-content: flex-end;
  109. label, h3{
  110. // height: 70px;
  111. box-sizing: border-box;
  112. // padding: 0 0 1em 0;
  113. // flex-grow: auto;
  114. }
  115. h3{
  116. font-weight: 400;
  117. font-size: 1.323em;
  118. }
  119. span.menacemaintient{
  120. display: block;
  121. font-weight: 100;
  122. font-size: 0.882em;
  123. padding: 1em 0 1em 0;
  124. }
  125. }
  126. div.concernement-cartouche{
  127. h2{
  128. font-weight: 400;
  129. font-size: 1.323em;
  130. // &.faded{
  131. // font-weight: 100;
  132. // }
  133. }
  134. nav.icons{
  135. ul{
  136. display: flex;
  137. flex-direction: row;
  138. li{
  139. margin: 0.4em 0.6em 0 0;
  140. >svg{
  141. display: inline-block;
  142. $d: 35px;
  143. width:$d; height:$d;
  144. border-radius: $d * 0.5;
  145. background-color: #fff;
  146. padding: 2px;
  147. box-sizing: border-box;
  148. color: #333;
  149. // font-size: 2em;
  150. }
  151. }
  152. }
  153. }
  154. }
  155. }
  156. h3{
  157. font-weight: 400;
  158. font-size: 1.2em;
  159. }
  160. h4{
  161. font-weight: 400;
  162. font-size: 1.2em;
  163. }
  164. h5{
  165. font-weight: 400;
  166. font-size: 1.1em;
  167. }
  168. section>div, p{
  169. font-size: 1em;
  170. font-weight: 300;
  171. }
  172. section.content-concernement{
  173. section.infos{
  174. >p{
  175. font-size: 0.882em;
  176. font-weight: 100;
  177. >span{
  178. >span{
  179. font-weight: 100;
  180. }
  181. }
  182. span.author{
  183. span{
  184. }
  185. }
  186. span.structure{
  187. span{
  188. }
  189. }
  190. span.lieu{
  191. span{
  192. }
  193. }
  194. span.created{
  195. span{
  196. }
  197. }
  198. span.changed{
  199. span{
  200. }
  201. }
  202. }
  203. }
  204. }
  205. // PUISSANCE D'AGIR
  206. section.content-besoins{
  207. li.besoin{
  208. position: relative;
  209. label.mdi:before{
  210. font-size: 0.8em;
  211. padding-right: 0.2em;
  212. }
  213. label.mdi:hover:before,
  214. label.mdi.hover:before{
  215. color:#01ffe2;
  216. }
  217. span.open-btn{
  218. position: absolute;
  219. right:0; top:0;
  220. cursor: pointer;
  221. }
  222. >header{
  223. padding: 0 0 0 0;
  224. >label{
  225. padding:0.5em 0 0.5em 0;
  226. cursor: pointer;
  227. }
  228. h4.besoin-description{
  229. font-weight: 400;
  230. font-size: 1.2em;
  231. padding: 0.5em 0;
  232. }
  233. a.contribute-link{
  234. display: block;
  235. text-align: right;
  236. font-weight: 100;
  237. font-size: 0.882em;
  238. }
  239. }
  240. ul.reponses{
  241. overflow: hidden;
  242. max-height: 1px;
  243. transition: all 0.7s ease-in-out;
  244. li.reponse{
  245. padding:1em 0;
  246. section{
  247. padding:0;
  248. label{ padding: 0 0 0 0; }
  249. p{margin: 0 0 1em 0;}
  250. }
  251. }
  252. }
  253. &.opened{
  254. ul.reponses{
  255. max-height: 1000px;
  256. }
  257. }
  258. padding-bottom: 0.5em;
  259. border-bottom: #aaa 1px solid;
  260. margin-bottom: 1em;
  261. }
  262. }
  263. section.content-doleances{
  264. label{
  265. margin:0;
  266. padding:0 0 0.5em 0;
  267. }
  268. p{
  269. margin:0;
  270. padding:0 0 0.5em 0;
  271. }
  272. ul{
  273. // padding:0 0 0 1em;
  274. }
  275. }
  276. }
  277. }
  278. #map-popup{
  279. position: absolute;
  280. z-index: 10;
  281. pointer-events: none;
  282. // outline: 1px solid red;
  283. // top:0;
  284. // left: 0;
  285. .popup-content-wrapper{
  286. display: flex;
  287. flex-direction: row;
  288. align-items:center;
  289. .concernement-map-popup{
  290. background-color: white;
  291. padding: 1em;
  292. border-radius: 3px;
  293. max-width: 30em;
  294. ul.icons{
  295. display: flex;
  296. flex-direction: row;
  297. padding: 0;
  298. margin: 0;
  299. li{
  300. list-style:none;
  301. padding:0;
  302. margin:0 1em 0 0;
  303. }
  304. }
  305. }
  306. .concernement-map-popup-recit{
  307. padding-left: 0.8em;
  308. >svg{
  309. display: inline-block;
  310. $d: 55px;
  311. width:$d; height:$d;
  312. border-radius: $d * 0.5;
  313. background-color: #fff;
  314. padding: 10px;
  315. box-sizing: border-box;
  316. color: #333;
  317. // font-size: 2em;
  318. }
  319. }
  320. .entite-map-popup,
  321. .besoin-map-popup,
  322. .reponse-map-popup{
  323. background-color: white;
  324. padding: 1em;
  325. border-radius: 3px;
  326. max-width: 30em;
  327. >div{
  328. margin-bottom: 0.5em;
  329. label{
  330. display: block;
  331. font-weight: 100;
  332. font-size: 0.882em;
  333. }
  334. }
  335. }
  336. h1, div{
  337. font-size: 1em;
  338. font-weight: 400;
  339. }
  340. h1{
  341. padding-bottom: 0.5em;
  342. }
  343. }
  344. &:before{
  345. content: "";
  346. display: block;
  347. height: 0;
  348. width: 2.9em;
  349. border-top: 1px solid #01ffe2;
  350. position: absolute;
  351. }
  352. &[pos="top-right"]{
  353. padding: 0 0 2em 2em;
  354. &:before{
  355. bottom: 0;
  356. left: 0;
  357. transform-origin: 0 0;
  358. transform: rotate(-45deg);
  359. }
  360. }
  361. &[pos="bottom-right"]{
  362. padding: 2em 0 0 2em;
  363. &:before{
  364. top: 0;
  365. left: 0;
  366. transform-origin: 0 0;
  367. transform: rotate(45deg);
  368. }
  369. }
  370. &[pos="top-left"]{
  371. padding: 0 2em 2em 0;
  372. &:before{
  373. bottom: 0;
  374. right: 0;
  375. transform-origin: right bottom;
  376. transform: rotate(45deg);
  377. }
  378. .popup-content-wrapper{
  379. flex-direction:row-reverse;
  380. .concernement-map-popup-recit{
  381. padding-right: 0.8em;
  382. }
  383. }
  384. }
  385. &[pos="bottom-left"]{
  386. padding: 2em 2em 0 0;
  387. &:before{
  388. top: 0;
  389. right: 0;
  390. transform-origin: right top;
  391. transform: rotate(-45deg);
  392. }
  393. .popup-content-wrapper{
  394. flex-direction:row-reverse;
  395. .concernement-map-popup-recit{
  396. padding-right: 0.8em;
  397. }
  398. }
  399. }
  400. }
  401. }