styles.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /* mix blend mode est dépendant du stacking context */
  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. * {
  15. margin: 0;
  16. padding: 0;
  17. }
  18. body {
  19. font-family: 'Public', sans-serif;
  20. font-weight: 400;
  21. }
  22. #content {
  23. position: fixed;
  24. width: 100vw;
  25. height: 100vh;
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. z-index: 1;
  30. svg {
  31. width: 30%;
  32. height: auto;
  33. path {
  34. cursor: pointer;
  35. }
  36. }
  37. svg#fill {
  38. fill: white;
  39. mix-blend-mode: overlay;
  40. opacity: 0.6;
  41. }
  42. svg#stroke {
  43. position: absolute;
  44. fill: none;
  45. stroke: black;
  46. stroke-width: 1px;
  47. }
  48. #buttons_container {
  49. position: absolute;
  50. bottom: 5vh;
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. z-index: 1;
  55. .mode {
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. background-color: white;
  60. margin: 0px 10px;
  61. padding: 7px 15px;
  62. padding-left: 10px;
  63. border-radius: 50px;
  64. cursor: pointer;
  65. border: solid 0.8px rgba(0, 0, 0, 0.5);
  66. transition: border 0.4s ease-in-out;
  67. font-weight: 300;
  68. font-size: 1rem;
  69. svg {
  70. width: 28px;
  71. height: auto;
  72. margin-right: 10px;
  73. .thick {
  74. transition: stroke-width 0.2s ease-in-out;
  75. stroke-width: 0.8;
  76. stroke: black;
  77. }
  78. .thin {
  79. transition: stroke-width 0.2s ease-in-out;
  80. stroke-width: 0.5;
  81. stroke: black;
  82. }
  83. }
  84. p {
  85. height: fit-content;
  86. margin-bottom: 3px;
  87. }
  88. }
  89. .mode.active {
  90. font-weight: 400;
  91. border: solid 1.2px rgba(0, 0, 0, 1);
  92. svg .thick {
  93. stroke-width: 1.2;
  94. stroke: black;
  95. }
  96. svg .thin {
  97. stroke-width: 0.6;
  98. stroke: black;
  99. }
  100. }
  101. }
  102. #BG_BG_BG {
  103. position: absolute;
  104. width: 100vw;
  105. height: 100vh;
  106. background-size: 100% 100%;
  107. background-repeat: no-repeat;
  108. z-index: -1;
  109. opacity: 1;
  110. transition: opacity 0.5s ease-in-out;
  111. }
  112. #BG_BG_BG_tmp {
  113. position: absolute;
  114. width: 100vw;
  115. height: 100vh;
  116. background-size: 100% 100%;
  117. background-repeat: no-repeat;
  118. z-index: -2;
  119. opacity: 0;
  120. transition: opacity 0.5s ease-in-out;
  121. }
  122. }
  123. #grain-bg {
  124. position: absolute !important;
  125. width: 100vw;
  126. height: 100vh;
  127. }
  128. #grain-bg > * {
  129. position: relative;
  130. }