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.

361 lines
5.1 KiB

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