server actix for cannabinieri website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

315 lines
4.2 KiB

2 years ago
  1. svg {
  2. height: 100vh;
  3. width: 100%;
  4. position: relative;
  5. z-index: 100;
  6. top: 10vh;
  7. }
  8. path {
  9. stroke: #8693AB;
  10. stroke-width: 0.3%;
  11. }
  12. #node1 {
  13. transform: translate(-0.7%, -4%);
  14. }
  15. #edge9 {
  16. transform: translate(8%, 4%);
  17. }
  18. #edge12 {
  19. stroke-dasharray: 100;
  20. animation: draw_multi 3s forwards !important;
  21. animation-delay: 0s;
  22. }
  23. #edge13 {
  24. stroke-dasharray: 100;
  25. animation: draw_multix 3s forwards;
  26. animation-delay: 0s;
  27. }
  28. .group1 .node , .group1 .edge{
  29. stroke-dasharray: 100;
  30. animation: draw 3s forwards;
  31. animation-delay: 0s;
  32. }
  33. .group2 .node, .group2 .edge{
  34. stroke-dasharray: 100;
  35. animation: draw_pink 3s forwards;
  36. animation-delay: 0s;
  37. }
  38. .group3 .node , .group3 .edge{
  39. stroke-dasharray: 100;
  40. animation: draw_green 3s forwards;
  41. animation-delay: 0s;
  42. }
  43. .group4 .node , .group4 .edge{
  44. stroke-dasharray: 100;
  45. animation: draw_purple 3s forwards;
  46. animation-delay: 0s;
  47. }
  48. .group5 .node , .group5 .edge{
  49. stroke-dasharray: 100;
  50. animation: draw_yellow 3s forwards;
  51. animation-delay: 0s;
  52. }
  53. .group6 .node , .group6 .edge{
  54. stroke-dasharray: 100;
  55. animation: draw_peach 3s forwards;
  56. animation-delay: 0s;
  57. }
  58. .group7 .node , .group7 .edge{
  59. stroke-dasharray: 100;
  60. animation: draw_red 3s forwards;
  61. animation-delay: 0s;
  62. }
  63. .group8 .node {
  64. stroke-dasharray: 100;
  65. animation: draw_rainbow 3s forwards;
  66. animation-timing-function: ease-in-out;
  67. animation-delay: 0s;
  68. }
  69. .node {
  70. cursor: pointer;
  71. }
  72. @keyframes draw {
  73. from {
  74. stroke-dashoffset: 100;
  75. stroke: #8693AB;
  76. }
  77. to {
  78. stroke-dashoffset: 0;
  79. stroke: hsl(207,47%,82%);
  80. }
  81. }
  82. @keyframes draw_pink {
  83. from {
  84. stroke-dashoffset: 100;
  85. stroke: #8693AB;
  86. }
  87. to {
  88. stroke-dashoffset: 0;
  89. stroke: hsl(286,100%,91%);
  90. }
  91. }
  92. @keyframes draw_green{
  93. from {
  94. stroke-dashoffset: 100;
  95. stroke: #8693AB;
  96. }
  97. to {
  98. stroke-dashoffset: 0;
  99. stroke: hsl(150,69%,75%);
  100. }
  101. }
  102. @keyframes draw_purple {
  103. from {
  104. stroke-dashoffset: 100;
  105. stroke: #8693AB;
  106. }
  107. to {
  108. stroke-dashoffset: 0;
  109. stroke: hsl(243,26%,75%);
  110. }
  111. }
  112. @keyframes draw_yellow{
  113. from {
  114. stroke-dashoffset: 100;
  115. stroke: #8693AB;
  116. }
  117. to {
  118. stroke-dashoffset: 0;
  119. stroke: hsl(60,96%,79%);
  120. }
  121. }
  122. @keyframes draw_peach {
  123. from {
  124. stroke-dashoffset: 100;
  125. stroke: #8693AB;
  126. }
  127. to {
  128. stroke-dashoffset: 0;
  129. stroke: hsl(40,100%,75%);
  130. }
  131. }
  132. @keyframes draw_red {
  133. from {
  134. stroke-dashoffset: 100;
  135. stroke: #8693AB;
  136. }
  137. to {
  138. stroke-dashoffset: 0;
  139. stroke: hsl(335,74%,80%);
  140. }
  141. }
  142. @keyframes draw_rainbow {
  143. from {
  144. stroke-dashoffset: 100;
  145. stroke: #8693AB;
  146. }
  147. to {
  148. stroke-dashoffset: 0;
  149. stroke: url(#myGradient);
  150. }
  151. }
  152. @keyframes draw_multi {
  153. from {
  154. stroke-dashoffset: 100;
  155. stroke: #8693AB;
  156. }
  157. 50% {
  158. stroke: hsl(243,26%,75%);
  159. }
  160. to {
  161. stroke-dashoffset: 0;
  162. stroke: hsl(207,47%,82%);
  163. }
  164. }
  165. @keyframes draw_multix {
  166. from {
  167. stroke-dashoffset: 100;
  168. stroke: #8693AB;
  169. }
  170. 50% {
  171. stroke: hsl(150,69%,75%);
  172. }
  173. to {
  174. stroke-dashoffset: 0;
  175. stroke: hsl(207,47%,82%);
  176. }
  177. }
  178. #banner {
  179. position: fixed;
  180. height: 100vh;
  181. width: 50vw;
  182. top: 0;
  183. background: black;
  184. opacity: 80%;
  185. display: flex;
  186. justify-content: center;
  187. align-items: center;
  188. }
  189. #text {
  190. width: 90vw;
  191. text-align: left;
  192. font-size: 2.5vh !important;
  193. top: 20vh;
  194. line-height: 5vh !important;
  195. z-index: 200;
  196. background-image: linear-gradient(to right, rgba(255,255,255,0), rgba(1,1,1,1));
  197. margin: 0 3vw;
  198. padding: 0 2vw;
  199. color: hsl(150,69%,75%);
  200. position: absolute;
  201. left: 3vw;
  202. text-transform: uppercase;
  203. letter-spacing: 0.08vw;
  204. }
  205. @media ( min-width: 1024px ) {
  206. svg {
  207. left: 5vw;
  208. top: 0;
  209. }
  210. #text
  211. {
  212. max-width: 20vw;
  213. height: 50vh;
  214. color: hsl(150,69%,75%);
  215. position: absolute;
  216. top: 25vh;
  217. font-size: 5vh;
  218. z-index: 400;
  219. margin: 0;
  220. left: 3vw;
  221. line-height: 9vh;
  222. text-transform: uppercase;
  223. letter-spacing: 0.08vw;
  224. display: flex;
  225. justify-content: center;
  226. align-items: flex-start;
  227. }
  228. }
  229. @media ( min-width: 768px) and ( max-width: 1023px) {
  230. svg {
  231. top: 8vh;
  232. }
  233. #text {
  234. font-size: 2.5vh !important;
  235. top: 18vh;
  236. line-height: 5vh !important;
  237. z-index: 200;
  238. background-image: linear-gradient(to right, rgba(255,255,255,0), rgba(1,1,1,1));
  239. margin: 0 3vw;
  240. padding: 0 2vw;
  241. color: hsl(150,69%,75%);
  242. position: absolute;
  243. left: 3vw;
  244. text-transform: uppercase;
  245. letter-spacing: 0.08vw;
  246. }
  247. #text br {
  248. display: none;
  249. }
  250. }