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.

215 lines
3.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
  1. #nav {
  2. max-height: 5vh;
  3. }
  4. .header {
  5. position: relative;
  6. width: 100%;
  7. display: flex;
  8. justify-content: space-between;
  9. align-items: center;
  10. background-color: transparent;
  11. }
  12. .logo a {
  13. display: block;
  14. position: sticky;
  15. z-index: 2;
  16. }
  17. .logo a img {
  18. display: block;
  19. height: 15vh;
  20. padding-top: 2vh;
  21. padding-left: 2vw;
  22. }
  23. .navigation {
  24. display: flex;
  25. justify-content: space-between;
  26. align-items: center;
  27. padding-right: 5vw;
  28. }
  29. .navigation input:checked ~ .menu {
  30. right: 0;
  31. z-index: 397;
  32. }
  33. .menu {
  34. display: flex;
  35. justify-content: start;
  36. flex-direction: column;
  37. align-items: center;
  38. position: fixed;
  39. top: 0;
  40. right: -90vw;
  41. background: #fff;
  42. opacity: 90%;
  43. width: 70vw;
  44. height: 100%;
  45. padding-top: 11vh;
  46. z-index: 1;
  47. transition: .5s;
  48. margin: 0;
  49. padding-right: 5vw;
  50. font-family: 'IBMPlexMono', sans-serif;
  51. }
  52. .menu li {
  53. list-style-type: none;
  54. width: 100%;
  55. }
  56. .menu li a {
  57. color: #000;
  58. text-decoration: none;
  59. display: block;
  60. padding: 1.3vh 0 2vh 0;
  61. line-height: 1;
  62. font-size: 2.35vh;
  63. text-align: right;
  64. box-shadow: 0 .5vw 0 -0.35vw #D8D8D8;
  65. text-transform: uppercase;
  66. transition: .3s;
  67. font-family: 'IBMPlexMono', sans-serif;
  68. }
  69. .hamburger {
  70. position: relative;
  71. width: 5vw;
  72. height: .5vh;
  73. background: #000;
  74. cursor: pointer;
  75. z-index: 2;
  76. transition: .3s;
  77. }
  78. .hamburger:before,
  79. .hamburger:after {
  80. content: "";
  81. position: absolute;
  82. height: 4px;
  83. right: 0;
  84. background: #000;
  85. transition: .3s;
  86. }
  87. .hamburger:before {
  88. top: -1vh;
  89. width: 5vw;
  90. }
  91. .hamburger:after {
  92. top: 1vh;
  93. width: 5vw;
  94. }
  95. .toggle_menu {
  96. position: absolute;
  97. width: 3.5vw;
  98. height: 5.5vh;
  99. z-index: 3;
  100. cursor: pointer;
  101. opacity: 0;
  102. top: unset;
  103. left: unset;
  104. z-index: 400;
  105. }
  106. .navigation input:checked ~ .hamburger {
  107. background: transparent;
  108. z-index: 398;
  109. }
  110. .navigation input:checked ~ .hamburger::before {
  111. top: 0;
  112. transform: rotate(-45deg);
  113. width: 5vw;
  114. background-image: linear-gradient(to bottom right, #fdfd96, #b0afd0, hsl(286,100%,91%));
  115. }
  116. .navigation input:checked ~ .hamburger::after {
  117. top: 0;
  118. transform: rotate(45deg);
  119. width: 5vw;
  120. }
  121. @media (min-width: 768px) {
  122. .menu {
  123. width: unset;
  124. }
  125. .menu li a {
  126. font-size: 4vh;
  127. }
  128. }
  129. @media (min-width: 1024px) {
  130. .navigation input:checked ~ .menu {
  131. right: 0;
  132. top: 5vh;
  133. }
  134. .navigation {
  135. top: 5vh;
  136. }
  137. }
  138. /* /1* @media (min-width: 1024px) { *1/ */
  139. /* /1* .header { *1/ */
  140. /* /1* position: relative; *1/ */
  141. /* width: 100%; */
  142. /* display: flex; */
  143. /* justify-content: flex-start; */
  144. /* align-items: center; */
  145. /* } */
  146. /* .hamburger, */
  147. /* .toggle_menu { */
  148. /* display: none; */
  149. /* } */
  150. /* .menu { */
  151. /* justify-content: center; */
  152. /* flex-direction: row; */
  153. /* position: sticky; */
  154. /* z-index: 1; */
  155. /* transition: .5s; */
  156. /* padding: 0; */
  157. /* width: unset; */
  158. /* margin-left: 10vw; */
  159. /* } */
  160. /* .menu li { */
  161. /* width: unset; */
  162. /* } */
  163. /* .menu li a { */
  164. /* color: #000; */
  165. /* text-decoration: none; */
  166. /* display: block; */
  167. /* padding: 2vh 1.5vw 1.5vh; */
  168. /* line-height: 1; */
  169. /* transition: .3s; */
  170. /* box-shadow: none; */
  171. /* } */
  172. /* .menu li a:hover { */
  173. /* box-shadow: 0 .5vw 0 -0.35vw #000; */
  174. /* } */
  175. /* .navigation { */
  176. /* display: flex; */
  177. /* justify-content: space-between; */
  178. /* align-items: center; */
  179. /* padding: 0; */
  180. /* } */
  181. /* } */