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.

333 lines
4.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. .mobile_placeholder {
  2. display: flex;
  3. justify-content: center;
  4. box-sizing: border-box;
  5. }
  6. .open {
  7. position: fixed;
  8. height: 70vh;
  9. width: 90vw;
  10. background-color: #fff;
  11. top: 25vh;
  12. display: grid;
  13. grid-template-rows: repeat(4, 1fr);
  14. border-style: solid;
  15. border-image: linear-gradient(#BDD4E7, #8693AB) 30;
  16. }
  17. /* .open .box {
  18. background-image: url('/assets/img/spider_out_bw.webp');
  19. background-size: cover;
  20. background-repeat: no-repeat;
  21. height: inherit;
  22. width: inherit;
  23. opacity: 20%;
  24. grid-row: 1/5;
  25. } */
  26. .content {
  27. height: inherit;
  28. width: inherit;
  29. display: grid;
  30. grid-template-rows: .35fr .25fr 1fr .45fr;
  31. max-width: inherit;
  32. max-height: inherit;
  33. }
  34. .content h2 {
  35. grid-row: 1;
  36. display: grid;
  37. justify-content: center;
  38. align-items: center;
  39. text-transform: uppercase;
  40. font-size: 6.5vh;
  41. margin: 6vh 0 4vh 0;
  42. }
  43. .content h3 {
  44. grid-row: 2;
  45. display: grid;
  46. text-transform: uppercase;
  47. font-size: 3vh;
  48. margin: 0;
  49. line-height: 5vh;
  50. text-align: center;
  51. }
  52. .content p {
  53. font-size: 1.5vh;
  54. text-align: center;
  55. line-height: 3.5vh;
  56. margin: 2vh 2vw;
  57. }
  58. .content a {
  59. grid-row: 4;
  60. display: grid;
  61. justify-items: center;
  62. align-items: center;
  63. height: 4vh;
  64. width: 10vw;
  65. width: 30vw;
  66. border: .5vw solid #000;
  67. justify-self: center;
  68. align-self: center;
  69. margin-top: 2vh;
  70. color: #000;
  71. font-size: 1.95vh;
  72. cursor: pointer;
  73. z-index: 2;
  74. background-position: right bottom;
  75. transition: all .75s ease-out;
  76. }
  77. .content a:hover {
  78. background: linear-gradient(to right, #8693AB 5%, #BDD4E7 95%);
  79. background-size: 200% 100%;
  80. background-position: left bottom;
  81. border: .5vw solid #8693AB;
  82. color: #BDD4E7;
  83. }
  84. .content a:active {
  85. background: linear-gradient(to right, #8693AB 5%, #BDD4E7 95%);
  86. background-size: 100% 120%;
  87. background-position: left bottom;
  88. border: .25vw solid #8693AB;
  89. color: #BDD4E7;
  90. }
  91. .close {
  92. height: 10vh;
  93. width: auto;
  94. align-self: flex-start;
  95. color: #e5e7e6;
  96. position: fixed;
  97. top: 15vh;
  98. left: 70vw;
  99. }
  100. input {
  101. height: 20vw;
  102. width: 20vh;
  103. z-index: 200;
  104. opacity: 0%;
  105. cursor: pointer;
  106. position: fixed;
  107. top: 15vh;
  108. left: 70vw;
  109. }
  110. @keyframes shine {
  111. 0% {
  112. stroke: url('#myGradient');
  113. }
  114. 50% {
  115. stroke: url('#myGradient2');
  116. }
  117. 100% {
  118. stroke: url('#myGradient');
  119. }
  120. }
  121. input:hover ~ .close {
  122. animation: shine 4s ease-in forwards;
  123. }
  124. input:active ~ .close {
  125. animation: shine 4s ease-in forwards;
  126. }
  127. /* test */
  128. @keyframes shine2 {
  129. 0% {
  130. stroke: #8693AB;
  131. }
  132. 25% {
  133. stroke:#BDD4E7;
  134. }
  135. 50% {
  136. stroke: #8693AB;
  137. }
  138. 75% {
  139. stroke:#BDD4E7;
  140. }
  141. 100% {
  142. stroke: #8693AB
  143. }
  144. }
  145. @media (min-height: 750px) {
  146. .open {
  147. max-height: 60vh;
  148. }
  149. }
  150. @media (min-height: 800px) {
  151. .open {
  152. max-height: 55vh;
  153. }
  154. }
  155. @media (min-height: 750px) and (max-width: 768px) {
  156. .open {
  157. max-height: 45vh;
  158. }
  159. h2 {
  160. font-size: 3.25vh !important;
  161. margin: 3vh 0 2vh 0 !important;
  162. }
  163. h3 {
  164. font-size: 1.5vh !important;
  165. line-height: 2.5vh !important;
  166. }
  167. p {
  168. font-size: 1.05vh !important;
  169. line-height: 2.5vh !important;
  170. }
  171. a {
  172. font-size: 1.45vh !important;
  173. }
  174. }
  175. @media (min-height: 840px) and (max-width: 1080px) {
  176. h2 {
  177. font-size: 3.25vh !important;
  178. margin: 3vh 0 2vh 0 !important;
  179. }
  180. h3 {
  181. font-size: 1.5vh !important;
  182. line-height: 2.5vh !important;
  183. }
  184. p {
  185. font-size: 1.05vh !important;
  186. line-height: 2.5vh !important;
  187. }
  188. .content a {
  189. font-size: 1.45vh !important;
  190. margin: 0 !important;
  191. width: 15vw !important;
  192. height: 3.5vh !important;
  193. border: .25vw solid #000;
  194. }
  195. }
  196. @media (min-height: 1020px) and (max-width: 768px) {
  197. p {
  198. font-size: 1.25vh !important;
  199. }
  200. a {
  201. margin-top: 0 !important;
  202. }
  203. }
  204. @media (min-height: 1000px) {
  205. .open {
  206. max-height: 40vh;
  207. }
  208. }
  209. @media (min-height: 1070px) {
  210. .open {
  211. max-height: 35vh;
  212. }
  213. }
  214. #small {
  215. font-size: 4.9vh;
  216. max-width: inherit;
  217. }
  218. @media (min-width: 768px) {
  219. input:hover ~ .close {
  220. animation: shine2 3s ease-in forwards;
  221. }
  222. }
  223. @media (min-width: 1000px) {
  224. .open {
  225. max-width: 35vw;
  226. top: 20vh;
  227. right: 5vw;
  228. max-height: 50vh;
  229. }
  230. .close {
  231. top: 10vh;
  232. left: 75vw;
  233. }
  234. input {
  235. height: 10vh;
  236. top: 10vh;
  237. left: 80vw;
  238. }
  239. .content h2 {
  240. font-size: 3.25vh;
  241. margin: 3vh 0 2vh 0;
  242. }
  243. .content h3 {
  244. font-size: 1.75vh;
  245. line-height: 3vh;
  246. }
  247. .content p {
  248. font-size: 1.35vh;
  249. line-height: 2.5vh;
  250. }
  251. .content a {
  252. width: 15vw;
  253. border: .25vw solid #000;
  254. }
  255. .content a:hover {
  256. border: .1vw solid #8693AB;
  257. }
  258. .content a:active {
  259. border: .1vw solid #8693AB;
  260. }
  261. }