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.

182 lines
2.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
  1. /* Test */
  2. /* only load with child template */
  3. .mobile_placeholder {
  4. display: flex;
  5. justify-content: center;
  6. }
  7. .open {
  8. position: fixed;
  9. height: 70vh;
  10. width: 90vw;
  11. background-color: #fff;
  12. top: 25vh;
  13. display: grid;
  14. grid-template-rows: repeat(4, 1fr);
  15. border-style: solid;
  16. border-image: linear-gradient(#BDD4E7, #8693AB) 30;
  17. }
  18. .open .box {
  19. /* background-image: url('/assets/img/spider_out_bw.webp'); */
  20. background-size: cover;
  21. background-repeat: no-repeat;
  22. height: inherit;
  23. width: inherit;
  24. opacity: 20%;
  25. grid-row: 1/5;
  26. }
  27. .content {
  28. height: inherit;
  29. width: inherit;
  30. display: grid;
  31. grid-template-rows: .5fr .25fr 1fr .45fr;
  32. max-width: 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-top: 2vh;
  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. }
  83. .close {
  84. height: 10vh;
  85. width: auto;
  86. align-self: flex-start;
  87. color: #e5e7e6;
  88. position: fixed;
  89. top: 15vh;
  90. left: 80vw;
  91. }
  92. input {
  93. height: 20vw;
  94. width: 20vh;
  95. z-index: 200;
  96. opacity: 0%;
  97. cursor: pointer;
  98. position: fixed;
  99. top: 15vh;
  100. left: 80vw;
  101. }
  102. input:checked ~ .open {
  103. display: none;
  104. }
  105. input:checked ~ .close {
  106. display: none;
  107. }
  108. input:hover ~ .close {
  109. animation: shine 4s ease-in forwards;
  110. }
  111. @keyframes shine {
  112. 0% {
  113. stroke: url('#myGradient');
  114. }
  115. 50% {
  116. stroke: url('#myGradient2');
  117. }
  118. 100% {
  119. stroke: url('#myGradient');
  120. }
  121. }
  122. @media (min-height: 750px) {
  123. .open {
  124. max-height: 60vh;
  125. }
  126. }
  127. @media (min-height: 800px) {
  128. .open {
  129. max-height: 55vh;
  130. }
  131. }
  132. @media (min-height: 880px) {
  133. .open {
  134. max-height: 45vh;
  135. }
  136. }
  137. @media (min-height: 1000px) {
  138. .open {
  139. max-height: 40vh;
  140. }
  141. }
  142. @media (min-height: 1070px) {
  143. .open {
  144. max-height: 35vh;
  145. }
  146. }
  147. #small {
  148. font-size: 4.9vh;
  149. max-width: inherit;
  150. }