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.

190 lines
3.0 KiB

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