Skip to content

Commit 38151d1

Browse files
authored
Merge pull request #6 from eeholmes/eeholmes-patch-1
Implement logo styles for sponsors section
2 parents a4136db + f1be884 commit 38151d1

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

  • {{ cookiecutter.repo_directory }}/assets/css

{{ cookiecutter.repo_directory }}/assets/css/main.css

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
letter-spacing: 0.02em;
1010
}
1111

12+
/* Hide top navigation bar completely for OceanForge for now */
13+
header.header {
14+
display: none !important;
15+
}
16+
1217

1318
/* =========================================================
1419
Hero / Carousel base layout
@@ -178,6 +183,41 @@
178183
}
179184
}
180185

181-
/* NOTE: Removed the old rule that hid images on tiny phones */
186+
/* =========================================================
187+
Sponsors / Partners logos
188+
Make all logos the same visual height
189+
========================================================= */
190+
191+
/* The theme uses .logo-item around each image */
192+
.sponsors-section .logo-item {
193+
display: flex;
194+
align-items: center;
195+
justify-content: center;
196+
padding: 1rem;
197+
}
198+
199+
/* Force consistent logo height; width scales automatically */
200+
.sponsors-section .logo-item img {
201+
height: 70px; /* tweak: 60–90px depending on taste */
202+
width: auto;
203+
max-width: 100%;
204+
object-fit: contain;
205+
display: block;
206+
}
207+
208+
/* Optional: keep anchor from affecting layout */
209+
.sponsors-section .logo-item a {
210+
display: inline-flex;
211+
align-items: center;
212+
justify-content: center;
213+
}
214+
215+
/* Optional: if you want a little more breathing room on small screens */
216+
@media (max-width: 768px) {
217+
.sponsors-section .logo-item img {
218+
height: 56px;
219+
}
220+
}
221+
182222

183223

0 commit comments

Comments
 (0)