styles.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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: center;
  149. background-color: white;
  150. margin: 0;
  151. margin-right: 14px;
  152. padding: 7px 15px;
  153. padding-left: 10px;
  154. border-radius: 50px;
  155. cursor: pointer;
  156. border: solid 0.8px $grey_inactive;
  157. color: rgba(0, 0, 0, 0.5);
  158. transition: border 0.1s ease-out, color 0.1s ease-out;
  159. font-weight: 300;
  160. font-size: 1rem;
  161. svg {
  162. width: 28px;
  163. height: auto;
  164. margin-right: 10px;
  165. .thick {
  166. transition: stroke-width 0.2s ease-out, fill 0.2s ease-out, stroke 0.2s ease-out;
  167. stroke-width: 0.8;
  168. stroke: $grey_inactive;
  169. }
  170. .thin {
  171. transition: stroke-width 0.2s ease-out, fill 0.2s ease-out, stroke 0.2s ease-out;
  172. stroke-width: 0.5;
  173. stroke: $grey_inactive;
  174. }
  175. .circle-fill {
  176. fill: $grey_inactive;
  177. }
  178. }
  179. p {
  180. height: fit-content;
  181. margin-bottom: 3px;
  182. }
  183. }
  184. .mode.active {
  185. font-weight: 400;
  186. border: solid $buttons_border_width rgba(0, 0, 0, 1);
  187. color: rgba(0, 0, 0, 1);
  188. svg .thick {
  189. stroke-width: 1.2;
  190. stroke: rgba(0, 0, 0, 1);
  191. }
  192. svg .thin {
  193. stroke-width: 0.6;
  194. stroke: rgba(0, 0, 0, 1);
  195. }
  196. svg .circle-fill {
  197. fill: rgba(0, 0, 0, 1);
  198. }
  199. }
  200. .mode:hover {
  201. color: $grey_hover;
  202. border-color: $grey_hover;
  203. svg .thick, svg .thin {
  204. stroke: $grey_hover;
  205. }
  206. svg .circle-fill {
  207. fill: $grey_hover;
  208. }
  209. }
  210. }
  211. #global_nav {
  212. position: fixed;
  213. bottom: 0;
  214. left: 0;
  215. margin: $global_margins;
  216. z-index: 1;
  217. h1 {
  218. font-family: 'Ortica';
  219. font-size: 1.7em;
  220. margin-bottom: 10px;
  221. margin-left: 5px;
  222. }
  223. #menu {
  224. display: flex;
  225. #search {
  226. display: flex;
  227. align-items: center;
  228. input[type="search"] {
  229. height: 34px;
  230. width: 10vw;
  231. padding-left: 13px;
  232. padding-right: 30px;
  233. padding-bottom: 2px;
  234. font-family: 'Public';
  235. font-size: 1em;
  236. font-weight: 300;
  237. border-radius: 20px;
  238. border: solid $grey_inactive $buttons_border_width;
  239. color: $grey_inactive;
  240. transition: color 0.2s ease-out;
  241. }
  242. input[type="search"]:hover {
  243. color: $grey_hover;
  244. }
  245. input[type="search"]:active {
  246. color: black;
  247. }
  248. button {
  249. background: none;
  250. border: none;
  251. cursor: pointer;
  252. svg {
  253. margin-top: 3px;
  254. margin-left: -45px;
  255. height: 24px;
  256. fill: $grey_inactive;
  257. transition: fill 0.2s ease-out;
  258. }
  259. svg:hover {
  260. fill: $grey_hover;
  261. }
  262. }
  263. }
  264. .menu_item {
  265. font-weight: 300;
  266. display: flex;
  267. align-items: center;
  268. cursor: pointer;
  269. margin: 0 10px;
  270. padding-bottom: 2px;
  271. svg {
  272. height: 24px;
  273. margin-right: -5px;
  274. }
  275. }
  276. .menu_item:hover {
  277. font-weight: 400;
  278. }
  279. }
  280. }