Skip to content

Commit 18ef3e0

Browse files
committed
adjust breakpoint logic for section
1 parent a4681ae commit 18ef3e0

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

static/css/devportal2024-v1.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/_pages.scss

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,14 +1835,6 @@ html.light {
18351835
color: #e0e0e1;
18361836
}
18371837

1838-
.feature-grid {
1839-
display: flex;
1840-
flex-wrap: wrap;
1841-
gap: 40px;
1842-
justify-content: center;
1843-
margin-bottom: 40px;
1844-
}
1845-
18461838
.cta-container {
18471839
display: flex;
18481840
justify-content: center;
@@ -1884,12 +1876,28 @@ html.light {
18841876
align-items: center;
18851877
}
18861878
}
1887-
1879+
.feature-grid {
1880+
display: flex;
1881+
flex-wrap: wrap;
1882+
gap: 40px;
1883+
justify-content: center;
1884+
margin-bottom: 20px;
18881885
.feature-card {
1889-
flex: 1 1 240px;
1890-
max-width: 300px;
1891-
cursor: pointer;
1886+
flex: 1 0 100%;
1887+
max-width: 100%;
1888+
margin-bottom: 20px;
1889+
1890+
@media (min-width: 768px) {
1891+
flex: 1 0 calc(50% - 40px);
1892+
max-width: calc(50% - 40px);
1893+
}
1894+
1895+
@media (min-width: 1200px) {
1896+
flex: 1 0 calc(25% - 30px);
1897+
max-width: calc(25% - 30px);
1898+
}
18921899
}
1900+
}
18931901

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

0 commit comments

Comments
 (0)