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.

233 lines
4.3 KiB

3 years ago
  1. @font-face {
  2. font-family: 'Lato', sans-serif;
  3. src: url('fonts/Lato-Thin.ttf') format('truetype');
  4. font-style: normal;
  5. font-weight: 100;
  6. }
  7. .main_bar {
  8. background-color: #000;
  9. display: flex;
  10. flex-direction: row;
  11. justify-content: space-between;
  12. height: 5rem;
  13. border-bottom: .2rem solid hsl(160, 51%, 49%);
  14. }
  15. .logo {
  16. width: auto;
  17. height: 4.5rem;
  18. margin: .25rem 0 0 .25rem;
  19. }
  20. .hamburger_wrapper {
  21. display: flex;
  22. align-items: center;
  23. }
  24. .hamburger_wrapper #icon {
  25. color: #fff;
  26. height: 2.5rem;
  27. width: 2.5rem;
  28. cursor: pointer;
  29. margin-right: .5rem;
  30. }
  31. .mobile_dropdown_container {
  32. background-color: rgb(0, 255, 170);
  33. opacity: 95%;
  34. position: absolute;
  35. margin-top: 5rem;
  36. width: 100%;
  37. display: none;
  38. justify-content: center;
  39. z-index: 3;
  40. }
  41. .mobile_dropdown_container #mobile_dropdown {
  42. display: flex;
  43. flex-direction: column;
  44. align-items: center;
  45. margin-top: 2rem;
  46. }
  47. #mobile_dropdown ul {
  48. list-style: none;
  49. max-height: 16vh;
  50. }
  51. #mobile_dropdown ul li {
  52. display: flex;
  53. flex-direction: column;
  54. margin-top: .75rem;
  55. max-height: 5vh;
  56. }
  57. #mobile_dropdown ul li a {
  58. color:#000;
  59. text-decoration: none;
  60. font-family: 'Lato', sans-serif;
  61. font-size: 1.15rem;
  62. line-height: 1.8em;
  63. font-weight: 300;
  64. margin-bottom: .25rem;
  65. letter-spacing: .2rem;
  66. display: flex;
  67. align-items: center;
  68. }
  69. #mobile_dropdown ul li li a {
  70. font-weight: 400;
  71. }
  72. #mobile_dropdown ul li a:active {
  73. opacity: 50%;
  74. color: rgb(0, 255, 170);
  75. transition: all ease-in-out;
  76. }
  77. .drop {
  78. display: flex;
  79. justify-content: center;
  80. }
  81. .chevron {
  82. height: 1.5rem;
  83. width: 1.5rem;
  84. cursor: pointer;
  85. }
  86. .down {
  87. display: none;
  88. flex-direction: column;
  89. align-items: center;
  90. z-index: 200;
  91. position: fixed;
  92. background-color: hsl(300, 100%, 50%);
  93. max-height: 30vh;
  94. margin-top: 5rem;
  95. min-width: 80%;
  96. right: 10%;
  97. border-radius: .2rem;
  98. box-shadow:.1rem .1rem #888;
  99. opacity: 85%;
  100. transition: all .7 ease;
  101. }
  102. #down_5 {
  103. bottom: 24%;
  104. max-height: 40vh !important;
  105. }
  106. .desktop_navigation {
  107. display: none;
  108. }
  109. @media (min-width:768px) {
  110. .main_bar {
  111. z-index: 1;
  112. display: flex;
  113. align-items: center;
  114. border-bottom: .25rem solid rgb(62, 190, 147);
  115. height: 7.5rem;
  116. }
  117. .main_bar #logo_container {
  118. margin-top: .5rem;
  119. }
  120. .logo {
  121. z-index:3;
  122. height: 10rem;
  123. width: auto;
  124. margin-left: 2.5rem;
  125. margin-top: .5rem;
  126. position: absolute;
  127. }
  128. .hamburger_wrapper {
  129. display: none;
  130. }
  131. .mobile_dropdown_container {
  132. display: none;
  133. }
  134. .desktop_navigation {
  135. z-index: 2;
  136. display:flex;
  137. align-items:center;
  138. position: relative;
  139. width: 100%;
  140. margin-left: 30%;
  141. padding-top: 4rem;
  142. }
  143. .desktop_navigation ul {
  144. list-style: none;
  145. position: relative;
  146. align-items: center;
  147. padding-top: 1rem;
  148. }
  149. .desktop_navigation ul li {
  150. position: relative;
  151. text-align: center;
  152. padding-right: 1.5rem;
  153. transition: ease .2s;
  154. }
  155. .desktop_navigation ul li:hover {
  156. opacity: 90%;
  157. }
  158. .desktop_navigation ul li a {
  159. color: #fff;
  160. text-decoration: none;
  161. justify-content: space-between;
  162. line-height: 50px;
  163. font-family: 'Lato' , sans-serif;
  164. font-weight: 300 !important;
  165. padding: 2vw;
  166. }
  167. .desktop_navigation ul ul {
  168. border-top: 3px solid rgb(62, 190, 147);
  169. position: absolute;
  170. top: 50%;
  171. opacity: 0;
  172. visibility: hidden;
  173. max-height: 10vh;
  174. }
  175. #broader {
  176. min-width: 15vw;
  177. }
  178. .desktop_navigation ul li li {
  179. position: relative;
  180. display: list-item;
  181. background-color: #000;
  182. opacity: 95%;
  183. padding-top: 1rem;
  184. }
  185. .desktop_navigation #fix {
  186. padding: 0;
  187. }
  188. .desktop_navigation ul li #fix {
  189. padding: 0 .6rem 0 .475rem;
  190. }
  191. .desktop_navigation ul li li a {
  192. font-size: 1.15rem;
  193. }
  194. .desktop_navigation ul li:hover > ul {
  195. opacity: 1;
  196. visibility: visible;
  197. }
  198. }