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.

191 lines
3.0 KiB

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