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.

193 lines
3.1 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 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. top: unset;
  98. left: unset;
  99. }
  100. .navigation input:checked ~ .hamburger {
  101. background: transparent;
  102. }
  103. .navigation input:checked ~ .hamburger::before {
  104. top: 0;
  105. transform: rotate(-45deg);
  106. width: 5vw;
  107. }
  108. .navigation input:checked ~ .hamburger::after {
  109. top: 0;
  110. transform: rotate(45deg);
  111. width: 5vw;
  112. }
  113. @media (min-width: 768px) {
  114. .menu {
  115. width: unset;
  116. }
  117. .menu li a {
  118. font-size: 1.85vh;
  119. }
  120. }
  121. @media (min-width: 1024px) {
  122. .header {
  123. position: relative;
  124. width: 100%;
  125. display: flex;
  126. justify-content: flex-start;
  127. align-items: center;
  128. }
  129. .hamburger,
  130. .toggle_menu {
  131. display: none;
  132. }
  133. .menu {
  134. justify-content: center;
  135. flex-direction: row;
  136. position: sticky;
  137. z-index: 1;
  138. transition: .5s;
  139. padding: 0;
  140. width: unset;
  141. margin-left: 10vw;
  142. }
  143. .menu li {
  144. width: unset;
  145. }
  146. .menu li a {
  147. color: #000;
  148. text-decoration: none;
  149. display: block;
  150. padding: 2vh 1.5vw 1.5vh;
  151. line-height: 1;
  152. transition: .3s;
  153. box-shadow: none;
  154. }
  155. .menu li a:hover {
  156. box-shadow: 0 .5vw 0 -0.35vw #000;
  157. }
  158. .navigation {
  159. display: flex;
  160. justify-content: space-between;
  161. align-items: center;
  162. padding: 0;
  163. }
  164. }