main.scss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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. // PUISSANCE D'AGIR
  173. section.content-besoins{
  174. li.besoin{
  175. position: relative;
  176. label.mdi:before{
  177. font-size: 0.8em;
  178. padding-right: 0.2em;
  179. }
  180. label.mdi:hover:before,
  181. label.mdi.hover:before{
  182. color:#01ffe2;
  183. }
  184. span.open-btn{
  185. position: absolute;
  186. right:0; top:0;
  187. cursor: pointer;
  188. }
  189. >header{
  190. padding: 0 0 0 0;
  191. >label{
  192. padding:0.5em 0 0.5em 0;
  193. cursor: pointer;
  194. }
  195. h4.besoin-description{
  196. font-weight: 400;
  197. font-size: 1.2em;
  198. padding: 0.5em 0;
  199. }
  200. a.contribute-link{
  201. display: block;
  202. text-align: right;
  203. font-weight: 100;
  204. font-size: 0.882em;
  205. }
  206. }
  207. ul.reponses{
  208. overflow: hidden;
  209. max-height: 1px;
  210. transition: all 0.7s ease-in-out;
  211. li.reponse{
  212. padding:1em 0;
  213. section{
  214. padding:0;
  215. label{ padding: 0 0 0 0; }
  216. p{margin: 0 0 1em 0;}
  217. }
  218. }
  219. }
  220. &.opened{
  221. ul.reponses{
  222. max-height: 1000px;
  223. }
  224. }
  225. padding-bottom: 0.5em;
  226. border-bottom: #aaa 1px solid;
  227. margin-bottom: 1em;
  228. }
  229. }
  230. section.content-doleances{
  231. label{
  232. margin:0;
  233. padding:0 0 0.5em 0;
  234. }
  235. p{
  236. margin:0;
  237. padding:0 0 0.5em 0;
  238. }
  239. ul{
  240. // padding:0 0 0 1em;
  241. }
  242. }
  243. }
  244. }
  245. #map-popup{
  246. position: absolute;
  247. z-index: 10;
  248. pointer-events: none;
  249. // outline: 1px solid red;
  250. // top:0;
  251. // left: 0;
  252. .popup-content-wrapper{
  253. display: flex;
  254. flex-direction: row;
  255. align-items:center;
  256. .concernement-map-popup{
  257. background-color: white;
  258. padding: 1em;
  259. border-radius: 3px;
  260. max-width: 30em;
  261. ul.icons{
  262. display: flex;
  263. flex-direction: row;
  264. padding: 0;
  265. margin: 0;
  266. li{
  267. list-style:none;
  268. padding:0;
  269. margin:0 1em 0 0;
  270. }
  271. }
  272. }
  273. .concernement-map-popup-recit{
  274. padding-left: 0.8em;
  275. >svg{
  276. display: inline-block;
  277. $d: 55px;
  278. width:$d; height:$d;
  279. border-radius: $d * 0.5;
  280. background-color: #fff;
  281. padding: 10px;
  282. box-sizing: border-box;
  283. color: #333;
  284. // font-size: 2em;
  285. }
  286. }
  287. .entite-map-popup,
  288. .besoin-map-popup,
  289. .reponse-map-popup{
  290. background-color: white;
  291. padding: 1em;
  292. border-radius: 3px;
  293. max-width: 30em;
  294. >div{
  295. margin-bottom: 0.5em;
  296. label{
  297. display: block;
  298. font-weight: 100;
  299. font-size: 0.882em;
  300. }
  301. }
  302. }
  303. h1, div{
  304. font-size: 1em;
  305. font-weight: 400;
  306. }
  307. h1{
  308. padding-bottom: 0.5em;
  309. }
  310. }
  311. &:before{
  312. content: "";
  313. display: block;
  314. height: 0;
  315. width: 2.9em;
  316. border-top: 1px solid #01ffe2;
  317. position: absolute;
  318. }
  319. &[pos="top-right"]{
  320. padding: 0 0 2em 2em;
  321. &:before{
  322. bottom: 0;
  323. left: 0;
  324. transform-origin: 0 0;
  325. transform: rotate(-45deg);
  326. }
  327. }
  328. &[pos="bottom-right"]{
  329. padding: 2em 0 0 2em;
  330. &:before{
  331. top: 0;
  332. left: 0;
  333. transform-origin: 0 0;
  334. transform: rotate(45deg);
  335. }
  336. }
  337. &[pos="top-left"]{
  338. padding: 0 2em 2em 0;
  339. &:before{
  340. bottom: 0;
  341. right: 0;
  342. transform-origin: right bottom;
  343. transform: rotate(45deg);
  344. }
  345. .popup-content-wrapper{
  346. flex-direction:row-reverse;
  347. .concernement-map-popup-recit{
  348. padding-right: 0.8em;
  349. }
  350. }
  351. }
  352. &[pos="bottom-left"]{
  353. padding: 2em 2em 0 0;
  354. &:before{
  355. top: 0;
  356. right: 0;
  357. transform-origin: right top;
  358. transform: rotate(-45deg);
  359. }
  360. .popup-content-wrapper{
  361. flex-direction:row-reverse;
  362. .concernement-map-popup-recit{
  363. padding-right: 0.8em;
  364. }
  365. }
  366. }
  367. }
  368. }