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.

176 lines
2.6 KiB

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. }
  33. .content h2 {
  34. grid-row: 1;
  35. display: grid;
  36. justify-content: center;
  37. align-items: center;
  38. text-transform: uppercase;
  39. font-size: 6.5vh;
  40. margin: 6vh 0 4vh 0;
  41. }
  42. .content h3 {
  43. grid-row: 2;
  44. display: grid;
  45. text-transform: uppercase;
  46. font-size: 3vh;
  47. margin: 0;
  48. line-height: 5vh;
  49. text-align: center;
  50. }
  51. .content p {
  52. font-size: 1.5vh;
  53. text-align: center;
  54. line-height: 3.5vh;
  55. margin-top: 2vh;
  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. border: .5vw solid #000;
  66. justify-self: center;
  67. align-self: center;
  68. margin-top: 2vh;
  69. color: #000;
  70. font-size: 1.95vh;
  71. cursor: pointer;
  72. z-index: 2;
  73. background-position: right bottom;
  74. transition: all .75s ease-out;
  75. }
  76. .content a:hover {
  77. background: linear-gradient(to right, #8693AB 5%, #BDD4E7 95%);
  78. background-size: 200% 100%;
  79. background-position: left bottom;
  80. border: .5vw solid #8693AB;
  81. }
  82. .close {
  83. height: 10vh;
  84. width: auto;
  85. align-self: flex-start;
  86. color: #e5e7e6;
  87. position: fixed;
  88. top: 15vh;
  89. left: 80vw;
  90. }
  91. input {
  92. height: 20vw;
  93. width: 20vh;
  94. z-index: 200;
  95. opacity: 0%;
  96. cursor: pointer;
  97. position: fixed;
  98. top: 15vh;
  99. left: 80vw;
  100. }
  101. input:checked ~ .open {
  102. display: none;
  103. }
  104. input:checked ~ .close {
  105. display: none;
  106. }
  107. input:hover ~ .close {
  108. animation: shine 4s ease-in forwards;
  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. @media (min-height: 750px) {
  122. .open {
  123. max-height: 60vh;
  124. }
  125. }
  126. @media (min-height: 800px) {
  127. .open {
  128. max-height: 55vh;
  129. }
  130. }
  131. @media (min-height: 880px) {
  132. .open {
  133. max-height: 45vh;
  134. }
  135. }
  136. @media (min-height: 1000px) {
  137. .open {
  138. max-height: 40vh;
  139. }
  140. }
  141. @media (min-height: 1070px) {
  142. .open {
  143. max-height: 35vh;
  144. }
  145. }