Skip to content

Commit

Permalink
Merge pull request #5768 from krishkumar84/community-handbook-page-cards
Browse files Browse the repository at this point in the history
Solve issue with cards not fitting on smaller screens in Community Ha…
  • Loading branch information
sudhanshutech authored Aug 26, 2024
2 parents 2981f34 + e50a365 commit a3751ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/AdventuresVol/adventures-vol.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const AdventuresVolWrapper = styled.div`
.handbook__card {
border-radius: 5px;
width: 25rem;
width: 100%;
max-width: 25rem;
box-shadow: 0 5px 10px ${props => props.theme.green00D3A9ToGreyE6E6E6};
overflow: hidden;
height: 19rem;
Expand Down
6 changes: 5 additions & 1 deletion src/components/HandbookCard/HandbookCard.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const HandbookCardWrapper = styled.div`
.handbook__card {
border-radius: 5px;
width: 25rem;
width: 100%;
max-width: 25rem;
box-shadow: 0 5px 10px ${props => props.theme.green00D3A9ToGreyE6E6E6};
overflow: hidden;
height: 19rem;
Expand Down Expand Up @@ -55,6 +56,9 @@ export const HandbookCardWrapper = styled.div`
font-weight: 400;
font-size: 1.1rem;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
@media (max-width: 420px) {
font-size: 1rem;
}
}
.handbook__card--lm__container {
Expand Down

0 comments on commit a3751ba

Please sign in to comment.