-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
.course-list { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, 14rem); | ||
gap: 1rem; /* Adds some space between the cards */ | ||
gap: 1rem; | ||
} | ||
|
||
.card { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; /* Ensures consistent card height */ | ||
padding: 1rem; | ||
box-sizing: border-box; /* Includes padding in height calculation */ | ||
height: 100%; | ||
padding: 0; /* Remove internal padding if necessary */ | ||
box-sizing: border-box; | ||
border: 1px solid #ddd; /* Set a border to make unselected cards visible */ | ||
transition: background-color 0.3s; /* Smooth transition for color change */ | ||
} | ||
|
||
.card.selected { | ||
background-color: rgb(64, 165, 241); | ||
color: rgb(255, 255, 255); | ||
border: 1px solid rgb(64, 165, 241); /* Match border color with background */ | ||
} | ||
|
||
.card-body { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
flex-grow: 1; | ||
height: 100%; /* Ensures the card body takes full height of the card */ | ||
} | ||
|
||
.course-info-divider { | ||
display: flex; | ||
flex-direction: column; | ||
margin-top: auto; /* Pushes this section to the bottom of the card-body */ | ||
margin-top: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters