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.

374 lines
7.1 KiB

3 years ago
  1. @font-face {
  2. font-family: 'Fira Sans Thin', sans-serif;
  3. src: url('fonts/FiraSans-Thin.ttf') format('truetype');
  4. font-style: normal;
  5. font-weight: 100;
  6. }
  7. @font-face {
  8. font-family: 'Lato', sans-serif;
  9. src: url('fonts/Lato-Thin.ttf') format('truetype');
  10. font-style: normal;
  11. font-weight: 100;
  12. }
  13. *{
  14. margin:0;
  15. padding:0;
  16. box-sizing:border-box;
  17. }
  18. :root{
  19. --top_padding:5px;
  20. }
  21. html,
  22. body {
  23. width: 100%;
  24. height: 100%;
  25. }
  26. @media (min-width: 1024px){
  27. body {
  28. background-color:white;
  29. }
  30. #main-nav {
  31. z-index:3;
  32. }
  33. .top-bar {
  34. background-color:white;
  35. grid-area: top-bar;
  36. display: flex;
  37. align-items: center;
  38. font-family: 'Fira Sans', sans-serif;
  39. }
  40. .languages {
  41. display: flex;
  42. align-items: center;
  43. margin-left: 2vh;
  44. }
  45. .languages a {
  46. text-decoration: none !important;
  47. color: #555;
  48. cursor: pointer;
  49. margin: 1vh;
  50. font-weight: 100;
  51. font-size: 1.95vh;
  52. transition: ease .2s;
  53. }
  54. .languages a:hover {
  55. color: hsl(160, 51%, 60%);
  56. }
  57. #main-bar {
  58. background-color: black;
  59. grid-area: main-bar;
  60. z-index:1;
  61. display: flex;
  62. align-items: center;
  63. border-top: 1px solid rgb(62, 190, 147);
  64. border-bottom: 3px solid rgb(62, 190, 147);
  65. box-sizing: border-box;
  66. min-width: 100vw;
  67. height: 80%;
  68. font-weight: 100;
  69. }
  70. #logo-container {
  71. margin-top:6em;
  72. }
  73. .logo {
  74. z-index:3;
  75. width: 30vh;
  76. margin-left: 7.5vh;
  77. margin-top: 2.5vh;
  78. }
  79. .main-navigation-bar {
  80. z-index: 2;
  81. display:flex;
  82. align-items:center;
  83. position: relative;
  84. margin-left: 10vw;
  85. }
  86. .main-navigation-bar ul {
  87. list-style:none;
  88. position:relative;
  89. align-items:center;
  90. padding-top: 2%;
  91. }
  92. .main-navigation-bar a {
  93. align-items:center;
  94. justify-content: center;
  95. height: 50px;
  96. font-size: 2.55vh;
  97. font-weight: 100;
  98. }
  99. .main-navigation-bar ul li {
  100. position:relative;
  101. width:100%;
  102. text-align: center;
  103. padding-right: 4%;
  104. transition: ease .2s;
  105. }
  106. .main-navigation-bar ul li a:hover {
  107. color: rgb(0, 255, 170);
  108. }
  109. .main-navigation-bar ul #learn {
  110. width:10em;
  111. }
  112. .main-navigation-bar ul li a {
  113. color:white;
  114. text-decoration: none;
  115. justify-content: space-between;
  116. line-height: 50px;
  117. font-family: 'Lato' , sans-serif;
  118. font-weight: 300 !important;
  119. padding: 2vw;
  120. }
  121. .main-navigation-bar ul li #edit {
  122. padding-right:0;
  123. }
  124. .main-navigation-bar ul li .pc {
  125. padding-left:1.5em;
  126. }
  127. .main-navigation-bar ul ul {
  128. border-top: 3px solid rgb(62, 190, 147);
  129. position: absolute;
  130. top: 90%;
  131. opacity: 0;
  132. visibility: hidden;
  133. }
  134. .main-navigation-bar ul li li {
  135. position: relative;
  136. float:left;
  137. display: list-item;
  138. background-color: #000;
  139. opacity: 95%;
  140. padding: 1.75vh 0;
  141. }
  142. .main-navigation-bar ul li .lastItem {
  143. padding-bottom: 2.25vh;
  144. }
  145. .main-navigation-bar ul li li a {
  146. font-size: 2.65vh;
  147. }
  148. .main-navigation-bar ul li:hover > ul {
  149. opacity: 1;
  150. visibility: visible;
  151. }
  152. #name {
  153. display: none;
  154. }
  155. }
  156. @media (max-width: 1023px) {
  157. body{
  158. background-color: white;
  159. }
  160. .top-bar {
  161. display: none;
  162. }
  163. .main-navigation-bar {
  164. display: none;
  165. }
  166. .button {
  167. display: none !important;
  168. }
  169. #main-bar {
  170. grid-area: main-bar;
  171. background-color: black;
  172. display:flex;
  173. border-bottom: 6px solid hsl(160, 51%, 49%);
  174. padding: 0 0;
  175. }
  176. .logo {
  177. width: auto;
  178. height: 17.5vh;
  179. padding: 1vh 0 0 .5vh;
  180. }
  181. #main-bar h3 {
  182. display:none;
  183. color: white;
  184. text-transform: uppercase;
  185. padding-top:0;
  186. font-size: 13px;
  187. margin-left:10%;
  188. margin-bottom: 10%;
  189. font-weight: 300;
  190. }
  191. .hamburger-wrap {
  192. align-self: center;
  193. }
  194. .hamburger {
  195. padding: 0 0 0 55vw;
  196. display: flex;
  197. cursor:pointer;
  198. transition: all .2s ease;
  199. }
  200. .hamburger .hamburger-icon {
  201. width: 7.5vw;
  202. height: 2.5px;
  203. background-color:white;
  204. display: block;
  205. position:relative;
  206. }
  207. .hamburger .hamburger-icon::before,
  208. .hamburger .hamburger-icon::after {
  209. content:'';
  210. width:100%;
  211. height:100%;
  212. background-color: white;
  213. display: block;
  214. position:absolute;
  215. }
  216. .hamburger .hamburger-icon::after{
  217. top: -7px;
  218. }
  219. .hamburger .hamburger-icon::before{
  220. top: 7px;
  221. }
  222. .ham-btn {
  223. display:none;
  224. }
  225. .ham-btn:checked .hamburger .hamburger-icon {
  226. transform: rotate(45deg);
  227. }
  228. #mobile-dropdown-container {
  229. background-color: black;
  230. position: absolute;
  231. margin-top: 18.5vh;
  232. width: 100%;
  233. z-index: 2;
  234. padding-bottom: 0;
  235. display: flex;
  236. justify-content: center;
  237. opacity: 90%;
  238. }
  239. #mobile-dropdown {
  240. margin: 1em;
  241. display: none;
  242. }
  243. #mobile-dropdown ul {
  244. list-style:none;
  245. }
  246. #mobile-dropdown ul li {
  247. margin: 2vh 0 5vh 0;
  248. display:flex;
  249. flex-direction: column;
  250. }
  251. #mobile-dropdown ul li a {
  252. color :white;
  253. text-decoration:none;
  254. font-size: 3vh;
  255. font-weight: 700;
  256. line-height: 1.8em;
  257. justify-self: center;
  258. align-self: center;
  259. margin-bottom: 1vh;
  260. font-family: 'Lato', sans-serif;
  261. font-weight: 300;
  262. }
  263. #mobile-dropdown ul li a:hover ,#mobile-dropdown ul li a:active{
  264. color: rgb(0, 255, 170);
  265. }
  266. #mobile-dropdown ul li ul li a {
  267. color: white;
  268. }
  269. .drop {
  270. display: flex;
  271. justify-content: center;
  272. align-self: center;
  273. }
  274. #down, #down1, #down2, #down3, #down4 {
  275. background-color: black;
  276. display: none;
  277. border: 1px solid rgb(0, 255, 170);
  278. border-radius: 25px;
  279. margin-top: 3vh;
  280. padding: 1vh 5vh;
  281. }
  282. #down li {
  283. margin: 1vh 0 2vh 0 !important;
  284. }
  285. #down li a {
  286. margin-bottom: 0 !important;
  287. }
  288. .drop .arrow {
  289. border: solid rgb(0, 255, 170);
  290. border-width: 0 2px 2px 0;
  291. display: inline-block;
  292. padding: 1.25vw;
  293. transition: .1s ease;
  294. }
  295. .drop .arrow:active {
  296. color: #906090;
  297. }
  298. .arrow:active{
  299. color:pink;
  300. }
  301. .down {
  302. transform: rotate(45deg);
  303. }
  304. #trigger {
  305. background-color:pink;
  306. }
  307. }