Skip to content

Commit

Permalink
adjust breakpoint logic for section
Browse files Browse the repository at this point in the history
  • Loading branch information
AKCodez committed Nov 20, 2024
1 parent a4681ae commit 18ef3e0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion static/css/devportal2024-v1.css

Large diffs are not rendered by default.

32 changes: 20 additions & 12 deletions styles/_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1835,14 +1835,6 @@ html.light {
color: #e0e0e1;
}

.feature-grid {
display: flex;
flex-wrap: wrap;
gap: 40px;
justify-content: center;
margin-bottom: 40px;
}

.cta-container {
display: flex;
justify-content: center;
Expand Down Expand Up @@ -1884,12 +1876,28 @@ html.light {
align-items: center;
}
}

.feature-grid {
display: flex;
flex-wrap: wrap;
gap: 40px;
justify-content: center;
margin-bottom: 20px;
.feature-card {
flex: 1 1 240px;
max-width: 300px;
cursor: pointer;
flex: 1 0 100%;
max-width: 100%;
margin-bottom: 20px;

@media (min-width: 768px) {
flex: 1 0 calc(50% - 40px);
max-width: calc(50% - 40px);
}

@media (min-width: 1200px) {
flex: 1 0 calc(25% - 30px);
max-width: calc(25% - 30px);
}
}
}

.feature-card:hover .right-arrow-item::after {
transform: translateX(4px);
Expand Down

0 comments on commit 18ef3e0

Please sign in to comment.