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.

188 lines
3.0 KiB

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