styles.scss 7.9 KB

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