Responzívnosť

Dokončil som responzívnosť na stránke.
Pravdepodobne sa bude ešte meniť keď popridávam ďalšie veci
This commit is contained in:
JustSteel 2021-03-21 20:39:58 +01:00
parent 3a34e50432
commit a78ac22510
2 changed files with 100 additions and 33 deletions

@ -25,14 +25,15 @@
<tr><td><a href="#" class="expandable">CONTACT</a></td></tr> <tr><td><a href="#" class="expandable">CONTACT</a></td></tr>
</table> </table>
</div> </div>
</nav>
</header> </header>
<article> <!--<article>
<div class="an" class="next" id="android"><a href="http://localhost:8000/files/0/PQ.apk">Android</a></div> <div class="an" class="next" id="android"><a href="http://localhost:8000/files/0/PQ.apk">Android</a></div>
</article> </article>
<section> <section>
<div id="phone" class="next"></div> <div id="phone" class="next"></div>
<div id="ref"></div> <div id="ref"></div>
<div id="ref2"></div> <div id="ref2"></div>
</section> </section>-->
</body> </body>
</html> </html>

@ -1,7 +1,24 @@
/* elements */
body{
background-color: #00B4D8;
margin: 0;
}
header{
background-color:#0077B6;
padding-bottom: 23px;
}
img{
padding-top: 25px;
padding-left: 25px;
}
nav{ nav{
float: right; float: right;
position: sticky; position: sticky;
} }
ul{
margin: 0;
margin-left: 280px;
}
li{ li{
padding-top: 50px; padding-top: 50px;
padding-bottom: 48px; padding-bottom: 48px;
@ -14,32 +31,24 @@ li{
transition: background-color 0.5s; transition: background-color 0.5s;
position: relative; position: relative;
} }
header{ #contact{
background-color:#0077B6;
padding-bottom: 23px;
}
body{
background-color: #00B4D8;
margin: 0; margin: 0;
} }
img{
padding-top: 25px;
padding-left: 25px;
}
li:hover{ li:hover{
background-color: rgba(79, 80, 80, 0.356); background-color: rgba(79, 80, 80, 0.356);
transition: ease-in-out; transition: ease-in-out;
transition: background-color 0.5s; transition: background-color 0.5s;
} }
ul{ a{
margin: 0; text-decoration: none;
margin-left: 280px; color: #FFFFFF;
} }
label{ label{
visibility: collapse; visibility: collapse;
user-select: none; user-select: none;
} }
/* classes */
.expandable{ .expandable{
visibility: collapse; visibility: collapse;
display: block; display: block;
@ -60,6 +69,7 @@ label{
margin-top: 340px; margin-top: 340px;
margin-left: 150px; margin-left: 150px;
} }
/* IDs */
#here{ #here{
margin-top: 150px; margin-top: 150px;
} }
@ -92,34 +102,31 @@ label{
border-radius: 50%; border-radius: 50%;
} }
#phone, #ref, #ref2, #android{ #phone, #ref, #ref2, #android{
display: inline-block; display: inline;
float: left; float: left;
} }
a{ #check{
text-decoration: none; display: none;
color: #FFFFFF;
} }
/* responsive */
@media (max-width: 1250px){ @media (max-width: 1250px){
li{
font-size: 15px;
padding-top: 52px;
padding-bottom: 50.5px;
}
ul{ ul{
margin-top: -98px; margin-top: 0px;
margin-left: 353.5px; margin-left: 0px;
} }
} }
@media (max-width: 825px){ @media (max-width: 955px){
#check:checked ~ * .expandable{
visibility: visible;
}
ul{ ul{
visibility: collapse; visibility: collapse;
padding: 0; padding: 0;
} }
label{ label{
font-size: 40px; font-size: 40px;
float: right; float: right;
margin-top: -86px; margin-top: -90px;
margin-right: 45px; margin-right: 45px;
position: relative; position: relative;
visibility: visible; visibility: visible;
@ -135,10 +142,69 @@ a{
font-size: 20px; font-size: 20px;
text-align: center; text-align: center;
} }
.menu{
position: relative;
margin-left: -12em;
} }
#check{
display: none; }
@media (max-width: 914px){
label{
font-size: 40px;
float: right;
margin-top: -90px;
margin-right: 45px;
position: relative;
}
.menu{
margin-top: -97px;
}
}
@media (max-width: 860px){
label{
font-size: 40px;
float: right;
margin-top: -90px;
margin-right: 45px;
position: relative;
}
}
@media (max-width: 840px){
label{
font-size: 40px;
float: right;
margin-top: -90px;
margin-right: 45px;
position: relative;
}
}
@media (max-width: 692px){
label{
font-size: 40px;
float: right;
margin-top: -90px;
margin-right: 45px;
position: relative;
}
.menu{
margin-top: -217px;
}
}
@media (max-width: 635px){
label{
font-size: 40px;
float: right;
margin-top: -90px;
margin-right: 45px;
position: relative;
}
}
@media (max-width: 618px){
label{
font-size: 40px;
float: right;
margin-top: -90px;
margin-right: 45px;
position: relative;
} }
#check:checked ~ * .expandable{
visibility: visible;
} }