-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from makeopensource/Gradebook-Page-styling-Ca…
…rds#78&82 Gradebook page styling cards#78&82
- Loading branch information
Showing
9 changed files
with
451 additions
and
202 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
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
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
154 changes: 134 additions & 20 deletions
154
devU-client/src/components/pages/courses/courseDetailPage.scss
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,36 +1,150 @@ | ||
@import 'variables'; | ||
|
||
.courseFormWrapper { | ||
display: flex; | ||
margin: 16px 50px; | ||
gap: 30px; | ||
} | ||
|
||
.categoriesContainer { | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
gap: 20px; /* adjust this value to set the space between the cards */ | ||
grid-template-rows: repeat(3, 1fr); | ||
gap: 200px; /* adjust this value to set the space between the cards */ | ||
margin-bottom: 20px; | ||
min-height: 200px; | ||
max-height: 500px; | ||
} | ||
|
||
|
||
.color{ | ||
background-color: $purple; | ||
color: $text-color2; | ||
width: 100%; | ||
padding: 20px; | ||
text-align: center; | ||
font-size: 1.2em; | ||
|
||
} | ||
.coursesContainer { | ||
display: flex; | ||
flex-wrap: wrap; | ||
//flex-direction: row; | ||
gap: 20px; | ||
margin-top:20px; | ||
} | ||
.courseCard { | ||
display: flex; | ||
flex:1 0 250px; | ||
max-width: 350px; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: stretch; | ||
height: 100%; | ||
padding: 0; | ||
background-color: #D9D9D9; | ||
border-radius: 5px; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
overflow: hidden; | ||
margin-bottom: 20px; | ||
|
||
.MuiList-root { | ||
padding: 20px; | ||
|
||
|
||
|
||
.MuiListItemText-primary { | ||
text-align: center; // Center the assignment name | ||
} | ||
|
||
.MuiListItemText-secondary { | ||
text-align: center; // Center the dates | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
.courseDetailPage{ | ||
padding: 20px; | ||
|
||
|
||
.header { | ||
display: flex; | ||
align-items: center; | ||
} | ||
flex-direction: column; | ||
//justify-content: flex-start; | ||
//grid-template-columns: 2fr 1fr; | ||
justify-content: space-between; | ||
align-items: flex-start; | ||
background-color: $secondary; | ||
// padding: 30px 60px; | ||
padding: 20px; | ||
//border-radius: 10px; | ||
color: $text-color; | ||
width: 70%; | ||
h1{ | ||
margin: 0 0 10px 0; | ||
font-size: 2.5rem; | ||
} | ||
h2{ | ||
margin: 0 0 20px 0; | ||
font-size: 1.5rem; | ||
} | ||
.buttons-container { | ||
display: flex; | ||
// flex-wrap: wrap; | ||
flex-direction: row; | ||
justify-content: space-around; | ||
|
||
.smallLine { | ||
width: 50px; /* adjust this value to set the length of the small line */ | ||
border-top: 3px solid $text-color; /* adjust this value to set the color and thickness of the line */ | ||
margin-right: 10px; /* adjust this value to set the space between the line and the text */ | ||
.actual_button { | ||
display: flex; | ||
flex-direction: row; | ||
border: 0; /* Primary button color */ | ||
/* Button text color */ | ||
padding: 10px 20px; /* Padding for button */ | ||
border-radius: 5px; | ||
text-decoration: none; | ||
font-weight: 600; | ||
transition: background-color 0.3s ease; | ||
//margin : 0 10px; | ||
background-color: $purple; | ||
color: white; | ||
border: none; | ||
|
||
&:hover { // Add a hover effect | ||
background-color: darken(purple, 10%); // Slightly darken on hover | ||
cursor: pointer; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.largeLine { | ||
flex-grow: 1; | ||
border-top: 3px solid $text-color; /* adjust this value to set the color and thickness of the line */ | ||
margin-left: 10px; /* adjust this value to set the space between the line and the text */ | ||
margin-right: 10px; /* add this line to create some space between the line and the button */ | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.input { | ||
width: 400px; | ||
padding: 8px; | ||
border-radius: 5px; | ||
border: none; | ||
} | ||
|
||
.buttons { | ||
margin : 0 10px; | ||
|
||
.assignment_card { | ||
flex: 1; | ||
color: $text-color2; | ||
align-items: start; | ||
text-align: center; | ||
border-radius: 10px; | ||
min-width : 200px; | ||
|
||
} | ||
|
||
.color{ | ||
background-color: $list-item-background; | ||
color: $text-color; | ||
max-width : 345px; | ||
} | ||
.assignment-card:hover { | ||
transform: scale(1.05); | ||
} |
Oops, something went wrong.