Skip to content

Commit b34883b

Browse files
committed
Fix card gap colors: use borders instead of grid gap background
- Remove gap:1px + background:var(--rule) from grid (caused contrasting light lines in dark mode and dark lines in light mode) - Add border-bottom and border-right on cards using var(--rule) instead - Remove border-right on mobile (single column) - Add flex:1 to card-content, remove margin-top:auto from card-footer - This eliminates the visible dark/white space below cards
1 parent 9bef5c8 commit b34883b

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

src/app/globals.css

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -848,11 +848,10 @@ html, body {
848848
.projects-grid {
849849
display: grid;
850850
grid-template-columns: 1fr;
851-
gap: 1px;
852-
background: var(--rule);
851+
gap: 0;
852+
background: transparent;
853853
width: 100%;
854854
max-width: 100%;
855-
align-items: stretch;
856855
}
857856

858857
@media (min-width: 769px) {
@@ -888,11 +887,17 @@ html, body {
888887
position: relative;
889888
overflow: hidden;
890889
border: none;
890+
border-bottom: 1px solid var(--rule);
891+
border-right: 1px solid var(--rule);
891892
border-radius: 0;
892893
display: flex;
893894
flex-direction: column;
894-
height: 100%;
895-
min-height: 100%;
895+
}
896+
897+
@media (max-width: 768px) {
898+
.project-card {
899+
border-right: none;
900+
}
896901
}
897902

898903
.project-card::before {
@@ -917,6 +922,11 @@ html, body {
917922
}
918923

919924
/* Card internal layout */
925+
.card-content {
926+
flex: 1;
927+
min-height: 0;
928+
}
929+
920930
.card-header {
921931
display: flex;
922932
justify-content: space-between;
@@ -1119,7 +1129,6 @@ html, body {
11191129
align-items: center;
11201130
padding-top: 0.75rem;
11211131
border-top: 1px solid var(--rule);
1122-
margin-top: auto;
11231132
}
11241133

11251134
.card-links {

0 commit comments

Comments
 (0)