styles.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. @charset "UTF-8";
  2. @font-face {
  3. font-family: "Public";
  4. font-style: normal;
  5. font-weight: 400;
  6. src: url("assets/fonts/PublicSans-Regular.ttf") format("TrueType");
  7. }
  8. @font-face {
  9. font-family: "Public";
  10. font-style: normal;
  11. font-weight: 300;
  12. src: url("assets/fonts/PublicSans-Light.ttf") format("TrueType");
  13. }
  14. @font-face {
  15. font-family: "Ortica";
  16. font-style: bold;
  17. font-weight: 300;
  18. src: url("assets/fonts/Ortica-Bold.woff2") format("woff2");
  19. }
  20. * {
  21. margin: 0;
  22. padding: 0;
  23. }
  24. button {
  25. all: initial;
  26. }
  27. body {
  28. font-family: "Public", sans-serif;
  29. font-weight: 400;
  30. color: rgb(0, 0, 0);
  31. overflow: hidden;
  32. }
  33. #content {
  34. padding: 1.5vh 1vw 2vh 1vw;
  35. position: fixed;
  36. top: 0;
  37. left: 0;
  38. width: 100vw;
  39. height: 100vh;
  40. display: flex;
  41. justify-content: center;
  42. align-items: center;
  43. z-index: 1;
  44. }
  45. #content svg {
  46. position: absolute;
  47. height: 50%;
  48. }
  49. #content svg path {
  50. cursor: pointer;
  51. }
  52. #content svg#fill {
  53. fill: rgb(255, 255, 255);
  54. /* mix blend mode est dépendant du stacking context */
  55. mix-blend-mode: overlay;
  56. opacity: 0.4;
  57. }
  58. #content svg#stroke {
  59. position: absolute;
  60. fill: none;
  61. stroke: rgb(0, 0, 0);
  62. stroke-width: 1px;
  63. }
  64. #buttons_container {
  65. position: fixed;
  66. top: 0;
  67. left: 0;
  68. z-index: 1;
  69. display: flex;
  70. align-items: center;
  71. margin: 1.5vh 1vw 2vh 1vw;
  72. font-size: 1rem;
  73. mix-blend-mode: multiply;
  74. flex-wrap: wrap;
  75. }
  76. #buttons_container .mode {
  77. display: flex;
  78. align-items: center;
  79. justify-content: space-around;
  80. margin: 0;
  81. margin-right: 14px;
  82. padding: 10px 12px;
  83. cursor: pointer;
  84. color: rgba(0, 0, 0, 0.5);
  85. transition: border 0.1s ease-out, color 0.1s ease-out, padding 0.3s ease-out;
  86. font-weight: 300;
  87. }
  88. #buttons_container .mode svg {
  89. height: 2rem;
  90. }
  91. #buttons_container .mode svg .thick {
  92. transition: stroke-width 0.3s ease-out, fill 0.3s ease-out, stroke 0.3s ease-out;
  93. stroke-width: 0.8;
  94. stroke: rgb(110, 110, 110);
  95. }
  96. #buttons_container .mode svg .thin {
  97. transition: stroke-width 0.3s ease-out, fill 0.3s ease-out, stroke 0.3s ease-out;
  98. stroke-width: 0.5;
  99. stroke: rgb(110, 110, 110);
  100. }
  101. #buttons_container .mode svg .circle-fill {
  102. fill: rgb(110, 110, 110);
  103. }
  104. #buttons_container .mode .mode_container {
  105. overflow: hidden;
  106. width: auto;
  107. transition: max-width 0.4s ease-out, margin-left 0.4s ease-out, margin-right 0.4s ease-out;
  108. max-width: 0px;
  109. margin: 0px 5px 0px 10px;
  110. max-width: 200px;
  111. }
  112. #buttons_container .mode .mode_container p {
  113. white-space: nowrap;
  114. height: fit-content;
  115. margin-bottom: 1.5px;
  116. }
  117. #buttons_container .mode.active {
  118. padding: 10px 12px !important;
  119. font-weight: 400;
  120. color: rgb(0, 0, 0);
  121. }
  122. #buttons_container .mode.active svg .thick {
  123. stroke-width: 1.2;
  124. stroke: rgb(0, 0, 0);
  125. }
  126. #buttons_container .mode.active svg .thin {
  127. stroke-width: 0.6;
  128. stroke: rgb(0, 0, 0);
  129. }
  130. #buttons_container .mode.active svg .circle-fill {
  131. fill: rgb(0, 0, 0);
  132. }
  133. #buttons_container .mode.active .mode_container {
  134. max-width: 200px !important;
  135. margin: 0px 5px 0px 10px !important;
  136. }
  137. #buttons_container .mode:hover {
  138. padding: 10px 12px !important;
  139. color: rgb(50, 50, 50);
  140. }
  141. #buttons_container .mode:hover svg .thick, #buttons_container .mode:hover svg .thin {
  142. stroke: rgb(50, 50, 50);
  143. }
  144. #buttons_container .mode:hover svg .circle-fill {
  145. fill: rgb(50, 50, 50);
  146. }
  147. #buttons_container .mode:hover .mode_container {
  148. max-width: 200px !important;
  149. margin: 0px 5px 0px 10px !important;
  150. }
  151. #buttons_container .mode.collapsed {
  152. padding: 10px 10px;
  153. }
  154. #buttons_container .mode.collapsed .mode_container {
  155. max-width: 0px;
  156. margin-left: 0px;
  157. margin-right: 0px;
  158. }
  159. #buttons_container .mode:last-of-type {
  160. margin-right: 0;
  161. }
  162. #global_nav {
  163. position: fixed;
  164. bottom: 0;
  165. left: 0;
  166. margin: 1.5vh 1vw 2vh 1vw;
  167. z-index: 1;
  168. font-size: 1rem;
  169. }
  170. #global_nav h1 {
  171. font-family: "Ortica";
  172. font-size: 1.5em;
  173. margin: 0px 0px 17px 5px;
  174. }
  175. #global_nav h1 span {
  176. font-size: 1.9em;
  177. }
  178. #global_nav #menu {
  179. display: flex;
  180. align-items: center;
  181. }
  182. #global_nav #menu #search {
  183. display: flex;
  184. align-items: center;
  185. }
  186. #global_nav #menu #search input[type=search] {
  187. height: 2rem;
  188. width: 10vw;
  189. padding-left: 13px;
  190. padding-right: 30px;
  191. padding-bottom: 1px;
  192. font-family: "Public";
  193. font-weight: 300;
  194. border-radius: 20px;
  195. border: solid rgb(110, 110, 110) 1.2px;
  196. color: rgb(110, 110, 110);
  197. background-color: rgb(255, 255, 255);
  198. transition: color 0.3s ease-out;
  199. }
  200. #global_nav #menu #search input[type=search]:hover {
  201. color: rgb(50, 50, 50);
  202. }
  203. #global_nav #menu #search input[type=search]:active {
  204. color: rgb(0, 0, 0);
  205. }
  206. #global_nav #menu #search button {
  207. background: none;
  208. border: none;
  209. cursor: pointer;
  210. }
  211. #global_nav #menu #search button svg {
  212. margin-top: 5px;
  213. margin-left: -45px;
  214. height: 1.3rem;
  215. fill: rgb(110, 110, 110);
  216. transition: fill 0.3s ease-out;
  217. }
  218. #global_nav #menu #search button svg:hover {
  219. fill: rgb(50, 50, 50);
  220. }
  221. #global_nav #menu .menu_item {
  222. font-weight: 300;
  223. color: rgb(110, 110, 110);
  224. display: flex;
  225. align-items: center;
  226. cursor: pointer;
  227. margin: 0 10px;
  228. padding-bottom: 2px;
  229. transition: color 0.3s ease-out;
  230. }
  231. #global_nav #menu .menu_item svg {
  232. width: 1.3rem;
  233. height: 1.3rem;
  234. margin-right: 3px;
  235. fill: rgb(110, 110, 110);
  236. transition: fill 0.3s ease-out;
  237. }
  238. #global_nav #menu .menu_item:hover {
  239. color: rgb(50, 50, 50);
  240. }
  241. #global_nav #menu .menu_item:hover svg {
  242. fill: rgb(50, 50, 50);
  243. }
  244. @media only screen and (max-width: 1440px) {
  245. #buttons_container, #global_nav {
  246. font-size: 0.7rem;
  247. }
  248. #buttons_container .arrow svg {
  249. height: 1.2rem;
  250. }
  251. #buttons_container .mode {
  252. padding: 8px 10px 8px 7px;
  253. }
  254. #buttons_container .mode svg {
  255. height: 1.2rem;
  256. }
  257. #buttons_container .mode .mode_container {
  258. margin: 0px 3px 0px 5px;
  259. }
  260. #buttons_container .mode.active {
  261. padding: 8px 10px 8px 7px !important;
  262. }
  263. #buttons_container .mode.active .mode_container {
  264. margin: 0px 3px 0px 5px !important;
  265. }
  266. #buttons_container .mode:hover {
  267. padding: 8px 10px 8px 7px !important;
  268. }
  269. #buttons_container .mode:hover .mode_container {
  270. margin: 0px 3px 0px 5px !important;
  271. }
  272. #buttons_container .mode.collapsed {
  273. padding: 8px 2px;
  274. }
  275. #global_nav h1 {
  276. margin: 0px 0px 8px 5px;
  277. }
  278. #global_nav #menu #search input[type=search] {
  279. height: 1.5rem;
  280. font-size: 0.7rem;
  281. }
  282. #global_nav #menu #search button svg {
  283. margin-left: -23px;
  284. width: 1rem;
  285. }
  286. #global_nav #menu .menu_item svg {
  287. width: 1rem;
  288. height: 1rem;
  289. }
  290. }
  291. /*# sourceMappingURL=styles.css.map */