Skip to content

Commit

Permalink
more changes for smaller phones
Browse files Browse the repository at this point in the history
  • Loading branch information
Niclas Timle authored and Niclas Timle committed Sep 10, 2024
1 parent 1939a91 commit 15fbd3d
Showing 1 changed file with 35 additions and 24 deletions.
59 changes: 35 additions & 24 deletions src/app/component/cardlayoutcomponent/cardlayout.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ button {
.card{
position: relative;
height: 210px;
border:2px solid greenyellow;
}
}

Expand All @@ -106,12 +105,14 @@ button {
}
}

/**--IPhoneSE--**/
@media screen and (max-width: 375px),
screen and (max-height: 667px) {
.card-group{
width: 100%;
height: 100%;
margin: auto;
margin-bottom: 30px;
}
.card{
height: 150px;
Expand All @@ -136,51 +137,61 @@ button {

}

@media (max-width: 350px) {
.card-header > h4{
font-size: 10px;
}
.card-body > h2
{
font-size: 14px;
}
.card-body > p
{
font-size: 8px;
}
.tag{
font-size: 6.5px;
}
}

/**--IPhone 5/4 --**/
@media screen and (max-width: 320px),
screen and (max-height: 568px) {
.card-group{
margin: auto;
width: 200px;
height: 100%;
margin: auto;
margin-bottom: 30px;
}
.card{
height: 160px;
width: 100%;
height: 140px;
width: 80%;
margin: auto;
margin-top: 10px;
margin-top: 4px;
}
.card-header{
height: 25px;
}

.card-header > h4{
font-size: 10px;
font-size: 8px;
}
.card-body > h2
{
font-size: 14px;
}
.card-body > p
{
margin-top: -1em;
font-size: 8px;
}
.card-body > h2 > i
{
display: none;
}
.tag{
font-size: 6.5px;
}

}

@media (max-width: 350px) {
.card-header > h4{
font-size: 10px;
}
.card-body > h2
{
font-size: 14px;
}
.card-body > p
{
font-size: 8px;
}
.tag{
font-size: 6.5px;
}


}

0 comments on commit 15fbd3d

Please sign in to comment.