Skip to content

Commit b253094

Browse files
committed
Refactor button group styles in custom.css
- Updated the .button-group class to center content, enable wrapping, and adjust margins for better responsiveness. - Modified button styles to include a minimum width and improved padding, enhancing layout consistency across different screen sizes. - Removed outdated media queries to streamline CSS and improve maintainability. Signed-off-by: Pete Cheslock <[email protected]>
1 parent 3e05efb commit b253094

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

src/css/custom.css

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ img.llm-d-logo {
258258

259259
.button-group {
260260
display: flex;
261-
justify-content: space-between;
262-
margin: 0 10%;
263-
@media screen and (max-width: 1024px) {
264-
flex-direction: column;
265-
align-items: center;
266-
}
261+
justify-content: center;
262+
flex-wrap: wrap;
263+
gap: 1rem;
264+
margin: 0 auto;
265+
max-width: 100%;
266+
padding: 0 1rem;
267267
}
268268

269269
.static-button,
@@ -273,23 +273,18 @@ img.llm-d-logo {
273273
justify-content: center;
274274
border-radius: 15px;
275275
border: 1px solid transparent;
276-
margin: 12.5px 12.5px;
277-
padding: 1rem;
276+
padding: 1rem 1.5rem;
278277
font-size: 1rem;
279278
font-weight: 700;
280279
font-family: inherit;
281280
background-color: #7f317f;
282281
cursor: pointer;
283-
transition: border-color 0.25s;
284-
width: 100%;
282+
transition: border-color 0.25s, background-color 0.25s;
285283
text-decoration: none;
286284
color: #fff;
287-
@media screen and (max-width: 1024px) {
288-
margin: 5% 0;
289-
@media screen and (max-width: 768px) {
290-
padding: 5%;
291-
}
292-
}
285+
min-width: 160px;
286+
white-space: nowrap;
287+
flex: 0 1 auto;
293288
}
294289

295290
.static-button:hover {
@@ -505,7 +500,8 @@ img.llm-d-logo {
505500
}
506501

507502
.install-button {
508-
width: 100%;
503+
min-width: 160px;
504+
max-width: 280px;
509505
}
510506

511507
/* ul li {

0 commit comments

Comments
 (0)