Skip to content

Commit f7fb8c4

Browse files
chore(css): consolidate duplicate max-width 768px media queries
1 parent 22fc908 commit f7fb8c4

1 file changed

Lines changed: 22 additions & 47 deletions

File tree

web-app/css/styles.css

Lines changed: 22 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,27 +1770,28 @@ body {
17701770
}
17711771

17721772
.hero-section {
1773-
padding: 5rem 0;
1773+
padding: 7rem 0;
1774+
min-height: 400px;
17741775
}
17751776

17761777
.hero-title {
1777-
font-size: 2.6rem;
1778+
font-size: 2.3rem;
17781779
margin-bottom: 1rem;
17791780
}
17801781

17811782
.hero-subtitle {
17821783
font-size: 1rem;
1783-
margin-bottom: 1rem;
1784+
margin-bottom: 2rem;
17841785
}
17851786

17861787
.hero-features {
1787-
gap: 0.9rem;
1788-
margin-bottom: 1rem;
1788+
gap: 1rem;
1789+
margin-bottom: 2rem;
17891790
}
17901791

17911792
.feature-badge {
1792-
padding: 0.15rem 0 0.35rem;
1793-
font-size: 0.8rem;
1793+
padding: 0.6rem 1.2rem;
1794+
font-size: 0.95rem;
17941795
}
17951796

17961797
.feature-icon {
@@ -1802,10 +1803,6 @@ body {
18021803
font-size: 1rem;
18031804
}
18041805

1805-
.hero-subtitle {
1806-
font-size: 1.05rem;
1807-
}
1808-
18091806
.hero-badges {
18101807
gap: 0.6rem;
18111808
}
@@ -1816,7 +1813,7 @@ body {
18161813
}
18171814

18181815
.tabs-section {
1819-
padding: 2rem 0 1.5rem 0;
1816+
padding: 2rem 0 1.5rem;
18201817
}
18211818

18221819
.tabs-section .container {
@@ -1846,28 +1843,33 @@ body {
18461843
}
18471844

18481845
.btn-random-project {
1849-
width: auto;
1850-
justify-content: flex-start;
1851-
padding: 0.25rem 0;
1852-
font-size: 0.84rem;
1846+
width: 100%;
1847+
justify-content: center;
1848+
padding: 0.75rem 1.25rem;
1849+
font-size: 0.95rem;
18531850
}
18541851

18551852
.projects-section {
18561853
padding: 2.5rem 0;
18571854
}
18581855

18591856
.projects-grid {
1860-
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
1861-
gap: 0.85rem;
1857+
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
1858+
gap: 1.5rem;
18621859
margin-top: 1.5rem;
18631860
}
18641861

18651862
.project-card {
1866-
padding: 0.95rem 1rem;
1863+
padding: 1.75rem 1.5rem;
1864+
}
1865+
1866+
.card-icon {
1867+
font-size: 3.25rem;
1868+
margin-bottom: 0.85rem;
18671869
}
18681870

18691871
.project-card h3 {
1870-
font-size: 0.98rem;
1872+
font-size: 1.15rem;
18711873
}
18721874

18731875
.search-wrapper {
@@ -2377,34 +2379,7 @@ body {
23772379
.footer-brand { flex: 1 1 100%; max-width: 600px; }
23782380
}
23792381

2380-
@media (max-width: 768px) {
2381-
.hero-section { padding: 7rem 0; min-height: 400px; }
2382-
.hero-title { font-size: 2.3rem; }
2383-
.hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
2384-
.hero-features { gap: 1rem; margin-bottom: 2rem; }
2385-
.feature-badge { padding: 0.6rem 1.2rem; font-size: 0.95rem; }
23862382

2387-
.tabs-section { padding: 2rem 0 1.5rem; }
2388-
.tabs-section .container { gap: 1.5rem; }
2389-
.tabs-wrapper { flex-direction: column; gap: 1rem; align-items: stretch; }
2390-
.tabs-wrapper .tabs { min-width: unset; width: 100%; }
2391-
.tabs { gap: 0.6rem; margin-top: 0; justify-content: flex-start; }
2392-
.tab { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
2393-
2394-
.btn-random-project { width: 100%; justify-content: center; padding: 0.75rem 1.25rem; font-size: 0.95rem; }
2395-
2396-
.projects-section { padding: 2.5rem 0; }
2397-
.projects-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
2398-
.project-card { padding: 1.75rem 1.5rem; }
2399-
.card-icon { font-size: 3.25rem; margin-bottom: 0.85rem; }
2400-
.project-card h3 { font-size: 1.15rem; }
2401-
2402-
.search-wrapper { height: 50px; padding: 0 1.1rem; }
2403-
.search-input { font-size: 0.95rem; }
2404-
.search-shortcut { display: none; }
2405-
2406-
.modal-content { padding: 1.5rem; border-radius: 16px; }
2407-
}
24082383

24092384
@media (max-width: 576px) {
24102385
.footer-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }

0 commit comments

Comments
 (0)