1
0

responsive design

This commit is contained in:
2023-11-24 00:46:26 +01:00
parent 6e3992f756
commit bf050186fa
4 changed files with 107 additions and 4 deletions

View File

@ -9,9 +9,15 @@ nav {
align-items: center;
gap: 2rem;
}
.nav-right > a {
display: flex;
}
.nav-btn {
display: none;
}
a {
text-decoration: none;
font-size: 1.5rem;
@ -26,4 +32,30 @@ nav {
.nav-left img {
height: 4rem;
}
}
@media only screen and (max-width: 768px) {
nav {
flex-wrap: wrap;
}
.nav-right {
display: none !important;
}
.mobile-visible {
display: flex !important;
flex-direction: column;
justify-content: center;
width: 100%;
margin-top: 2rem;
}
.nav-btn {
display: flex !important;
align-items: center;
img {
height: 3rem;
cursor: pointer;
}
}
}

View File

@ -16,6 +16,8 @@ main {
padding: 2rem;
background-color: var(--clr-cards);
border-radius: 15px;
position: sticky;
top: 0;
section#vstupenky-wrapper {
display: flex;
@ -75,3 +77,54 @@ main {
}
}
}
@media only screen and (max-width: 500px) {
#vstupenky-wrapper {
width: 100vw !important;
}
.vstupenky {
font-size: 1.5rem !important;
}
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
aside, main section#news {
width: 95vw !important;
}
body {
background-color: red;
}
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 768px) {
aside, main section#news {
width: 90vw !important;
}
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
aside, main section#news {
width: 60vw !important;
}
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
main {
flex-direction: column;
align-items: center;
}
.aside-wrapper {
order: -1;
}
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (max-width: 1200px) {
}