Jaką właściwością mogę odnieść się do ikonki bar ( będzie to menu rozwijane ) tak aby po kliknięciu wysuwała się nawigacja na urządzeniach mobilnych która jest schowana.
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/d1c838dcd7.js"></script>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
</head>
<body>
<header>
<div class="logo"><img src="img/moneypl.png"> </div>
<div class="ikonka"> <a href="#"> <i class="fas fa-bars"></i></a></div>
<div class="nav">
<li>
<a href="#">biznes mówi</a>
<a href="#">giełda</a>
<a href="#">waluty</a>
<a href="#">gospodarka</a>
<a href="#">firma</a>
<a href="#">podatki</a>
<a href="#">twoje finanse</a>
<a href="#">praca</a>
<a href="#">więcej</a>
</li>
<input type="text" placeholder="Szukaj...">
<i class="fas fa-user-alt"></i>
</div>
</header>
<div class="ad"></div>
<main>
<div class="leftimg"><a href="#"><img src="img/leftimg.jpg">
</a>
<div class="content">
<h1>Mateusz Madejewski</h1>
</div>
<div class="content2">
<p><span>Wojsko polskie </span> /byłem żołnierzem przez jeden dzień. Armia chce żebym już wrócił</p>
</div>
</div>
<div class="ul">
<li> <a href="#"><span>LINIE LOTNICZE</span>/ Strajki w liniach lotniczych. Nie jest pewne, czy dolecisz na urlop</a> </li>
<li><a href="#"><span>E-DOWÓD</span> / Do pociągu bez dowodu. Minister: nowinki wymagają przełamania bariery mentalnej</a></li>
<li><a href="#"><span>GOSPODARKA</span> / List z ZUS lepiej zostaw w szufladzie. Nie wyrzucaj go do kosza</a></li>
<li><a href="#"><span>SUSZA</span> / Brakuje owoców i warzyw, a ceny wysokie. Alarmujące wieści z rynku</a></li>
<li><a href="#"><span>SENIORZY W POLSCE</span> / Waloryzacja rent i emerytur w 2020 roku warta 7 mld zł. Tyle trafi do seniorów</a></li>
</div>
<aside>
<div class="naglowek">
<h1>NOTOWANIA</h1>
<button>giełda</button>
<button>giełda</button>
<button>giełda</button>
</div>
<form>
<input type="text" placeholder="wpisz nazwę waloru lub symbol">
</form>
</aside>
<article>
</article>
</main>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 500vh;
}
header {
height: 130px;
width: 100%;
}
.ikonka {
display: none;
}
.logo {
height: 80px;
background-color: darkblue;
}
.logo img {
width: 12%;
margin: 20px;
margin-left: 60px;
}
.nav {
height: 50px;
background-color: darkblue;
}
.nav li {
list-style: none;
margin-left: 60px;
display: inline-block;
}
.nav li a {
text-transform: uppercase;
text-decoration: none;
color: white;
line-height: 50px;
margin-right: 20px;
display: inline-block;
font-size: 18px;
}
.nav li a:hover {
text-decoration: underline;
}
.nav input {
height: 30px;
width: 130px;
border-radius: 20px;
padding-left: 10px;
margin-left: 50px;
}
.nav i {
margin-left: 20px;
font-size: 20px;
}
.nav i:hover {
color: white;
}
.ad {
background-image: url(img/ad.png);
width: 100%;
height: 500px;
background-size: cover;
background-position: center;
}
main {
margin: 20px 0 0 20px;
}
.leftimg {
height: 360px;
width: 320px;
position: relative;
overflow: hidden;
margin-top: 40px;
float: left;
}
.content {
position: absolute;
top: 50%;
background-color: darkblue;
}
.content h1 {
font-size: 16px;
text-transform: uppercase;
color: white;
}
.content2 {
top: 55%;
position: absolute;
height: 200px;
background-color: darkblue;
text-align: center;
}
.content2 p {
color: white;
font-size: 22px;
text-transform: uppercase;
margin-top: 30px;
}
.content2 p span {
color: gray;
}
.ul {
float: left;
margin: 40px 0 0 20px
}
.ul li {
width: 370px;
list-style: none;
margin-bottom: 15px;
}
.ul a {
display: block;
color: black;
text-decoration: none;
font-size: 20px;
}
.ul li a span {
color: red;
}
.ul a:hover {
text-decoration: underline;
}
aside {
height: 500px;
width: 300px;
background-color: aqua;
float: left;
margin-left: 50px;
}
.naglowek {
background-color: darkblue;
height: 60px;
width: 100%;
}
.naglowek h1 {
color: white;
font-size: 17px;
padding: 5px 0 0 5px;
}
.naglowek button {
border-radius: 20px;
border: 1px solid white;
width: 60px;
background-color: transparent;
color: white;
text-align: center;
margin-left: 10px;
margin-top: 5px;
cursor: pointer;
}
aside form {
text-align: center;
height: 60px;
width: 100%;
background-color: blueviolet
}
aside form input {
height: 30px;
width: 250px;
border-radius: 20px;
margin-top: 15px;
}
@media(min-width:360px) and (orientation:portrait) {
body {}
.logo {
width: 100%;
position: relative;
}
.logo img {
width: 50%;
}
.ikonka {
display: flex;
position: absolute;
top: 0;
left: 86%;
margin-top: 30px;
}
.ikonka i {
font-size: 25px;
color: White;
}
.nav {
left: 200%;
position: relative;
background-color: transparent;
}
.nav:hover {
left: 100%;
}
.ikonka:focus: > .nav {
left: 100%;
}
.nav li {
display: block;
background-color: darkblue;
}
.nav li a {
margin-left: 10px;
display: block;
}
.nav input {
display: none;
}
.nav i {
display: none;
}
.ul {
margin: 20px 0;
}
.ul li {
width: 320px
}
aside {
height: 500px;
width: 320px;
background-color: aqua;
float: left;
margin: 0;
}
}