Refactor ProspectGrid styles: update card width variables and adjust grid layout for improved responsiveness
All checks were successful
Build And Push Dev Docker Image / docker (push) Successful in 1m26s
All checks were successful
Build And Push Dev Docker Image / docker (push) Successful in 1m26s
This commit is contained in:
@@ -1,12 +1,17 @@
|
|||||||
.prospect-grid {
|
.prospect-grid {
|
||||||
/* Default card width range. Override via a modifier class on ProspectGrid. */
|
/* Default card width range. Override via a modifier class on ProspectGrid. */
|
||||||
--pc-min-width: 200px;
|
--pc-min-width: 320px;
|
||||||
--pc-max-width: 350px;
|
--pc-max-width: 320px;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--pc-min-width)), var(--pc-max-width)));
|
grid-template-columns: repeat(auto-fit, minmax(var(--pc-min-width), 1fr));
|
||||||
justify-content: center;
|
justify-items: center;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prospect-grid > * {
|
||||||
|
width: 100%;
|
||||||
|
max-width: var(--pc-max-width);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user