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.

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