Skip to content

Commit

Permalink
added design for mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
Aswinth24 committed Jun 26, 2023
1 parent 566dceb commit f7c4f64
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

92 changes: 91 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ body{
gap:0.9rem;
position:sticky;
}
.nav-con.change-color{
color:rgb(208, 60, 64);
}

.store-name>h1{
font-weight: 500;
font-size:2.3rem;
Expand Down Expand Up @@ -210,7 +214,6 @@ footer>a{
gap:2.5rem;
}
.main{
width:100%;
flex-direction: column-reverse;
gap:20px;
}
Expand Down Expand Up @@ -240,5 +243,92 @@ footer>a{
{
font-size:12px;
}
}
@media screen and (max-width:39rem)
{

.main>.content>h1{
font-size: 1.3rem;
}
.main>.content>h4{
font-size: 0.8rem;
}
.container{
width:28rem;
height:15rem;
}

.item{
flex-direction: column;
width:100%;
height:30rem;
}
.img>img{
border-radius: 10px;
width:280px;
height: 230px;
}
.contact-page>.timing p{
font-size: 0.9rem;

}
}
@media screen and (max-width:300px)
{
.header>div>h1{
font-size: 1.2rem;
}
.header>.nav>.nav-bar>li{
font-size: 0.9rem;
}
.main>.content>h1{
font-size: 1rem;
}
.main>.content>h4{
font-size: 0.5rem;
}
.item{
flex-direction: column;
width:100%;
height:30rem;
}
.img>img
{
border-radius: 10px;
width:250px;
height: 170px;
}
.container{
width:15rem;
height:10rem;
}
.contact-page{
gap:10px;
}
.contact-page h1{
font-size: 1.4rem;
}
.contact-page>div p{
font-size:0.75rem ;
}
.contact-page>.timing{
gap:10px;
}
.contact-page>.timing div{
width:8rem;
line-height: 1.3;

}
.contact-page>.timing p{
font-size: 0.6rem;
padding-bottom: 5px;

}
.item>.content>h1{
font-size: 1.5rem;;
}
.item>.content>p
{
font-size:12px;
}
}

0 comments on commit f7c4f64

Please sign in to comment.