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.

229 lines
3.3 KiB

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