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
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
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_3 {
  103. margin-top: 4rem;
  104. }
  105. .desktop_navigation {
  106. display: none;
  107. }
  108. @media (min-width: 992px) {
  109. .main_bar {
  110. z-index: 1;
  111. display: flex;
  112. align-items: center;
  113. border-bottom: .25rem solid rgb(62, 190, 147);
  114. height: 7.5rem;
  115. }
  116. .main_bar #logo_container {
  117. margin-top: .5rem;
  118. }
  119. .logo {
  120. z-index:3;
  121. height: 10rem;
  122. width: auto;
  123. margin-left: 2.5rem;
  124. margin-top: .5rem;
  125. position: absolute;
  126. }
  127. .hamburger_wrapper {
  128. display: none;
  129. }
  130. .mobile_dropdown_container {
  131. display: none;
  132. }
  133. .desktop_navigation {
  134. z-index: 2;
  135. display:flex;
  136. align-items:center;
  137. position: relative;
  138. width: 100%;
  139. margin-left: 30%;
  140. padding-top: 4rem;
  141. }
  142. .desktop_navigation ul {
  143. list-style: none;
  144. position: relative;
  145. align-items: center;
  146. padding-top: 1rem;
  147. }
  148. .desktop_navigation ul li {
  149. position: relative;
  150. text-align: center;
  151. padding-right: 1.5rem;
  152. transition: ease .2s;
  153. }
  154. .desktop_navigation ul li:hover {
  155. opacity: 90%;
  156. }
  157. .desktop_navigation ul li a {
  158. color: #fff;
  159. text-decoration: none;
  160. justify-content: space-between;
  161. line-height: 50px;
  162. font-family: 'Lato' , sans-serif;
  163. font-weight: 300 !important;
  164. padding: 2vw;
  165. }
  166. .desktop_navigation ul ul {
  167. border-top: 3px solid rgb(62, 190, 147);
  168. position: absolute;
  169. top: 50%;
  170. opacity: 0;
  171. visibility: hidden;
  172. max-height: 10vh;
  173. }
  174. #broader {
  175. min-width: 15vw;
  176. z-index: 1;
  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. }