-
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 #156 from makeopensource/85-edit-assignment-page
Updated the Assignment Edit page
- Loading branch information
Showing
10 changed files
with
446 additions
and
177 deletions.
There are no files selected for viewing
Empty file.
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
129 changes: 129 additions & 0 deletions
129
devU-client/src/components/pages/forms/assignments/assignmentUpdatePage.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 |
---|---|---|
@@ -0,0 +1,129 @@ | ||
@import 'variables'; | ||
|
||
.grid { | ||
display: grid; | ||
grid-template-columns: 0.3fr 1fr 0.5fr; | ||
grid-template-rows: 1fr 0.75fr; | ||
grid-column-gap: 10px; | ||
grid-row-gap: 10px; | ||
width: 100%; | ||
} | ||
|
||
.assignmentsList, .form, .problemsList, .attachments {background-color: $list-item-background;} | ||
.assignmentsList {grid-area: 1 / 1 / 3 / 2;} | ||
.form {grid-area: 1 / 2 / 2 / 3;} | ||
.problemsList {grid-area: 1 / 3 / 2 / 4;} | ||
.attachments {grid-area: 2 / 2 / 3 / 4;} | ||
|
||
|
||
.textFieldContainer { | ||
display:flex; | ||
width: 100%; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.textField { | ||
align-items: center; | ||
} | ||
|
||
.datepickerContainer { | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
grid-template-rows: 1fr; | ||
grid-column-gap: 10px; | ||
grid-row-gap: 0px; | ||
width: 100%; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
|
||
.datepicker_start {grid-area: 1 / 1 / 2 / 2;} | ||
.datepicker_due {grid-area: 1 / 2 / 2 / 3;} | ||
.datepicker_end {grid-area: 1 / 3 / 2 / 4;} | ||
} | ||
|
||
|
||
input[type='date'] { | ||
height: 20px; | ||
background-color: $input-field-background; | ||
color: $input-field-label; | ||
padding: 0.625rem 1rem; | ||
border: none; | ||
border-radius: 100px; | ||
} | ||
|
||
.problemsList, .assignmentsList { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
|
||
.assignment { | ||
padding: 10px; | ||
font-weight: bold; | ||
cursor: pointer; | ||
:hover { | ||
padding: 10px; | ||
background-color: $list-item-background-hover; | ||
border-radius: 10px; | ||
} | ||
} | ||
|
||
.problem, .fileList{ | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.header { | ||
text-align: center; | ||
} | ||
|
||
.editProblem { | ||
margin-right: 10px; | ||
background-color: $background; | ||
border : 2px solid $primary; | ||
} | ||
|
||
.deleteButton { | ||
background-color: $background; | ||
border : 2px solid red; | ||
} | ||
|
||
@media (max-width:1000px) { | ||
.grid { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
grid-template-rows: repeat(4, 1fr); | ||
grid-column-gap: 0px; | ||
grid-row-gap: 10px; | ||
width: 100%; | ||
} | ||
|
||
.assignmentsList, .form, .problemsList, .attachments {background-color: $list-item-background;} | ||
.assignmentsList { display: none; } | ||
.form { grid-area: 1 / 1 / 2 / 2; } | ||
.problemsList { grid-area: 2 / 1 / 3 / 2; } | ||
.attachments { grid-area: 3 / 1 / 4 / 2; } | ||
} | ||
|
||
@media (max-width:450px) { | ||
.datepickerContainer { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
grid-template-rows: repeat(3, 1fr); | ||
grid-column-gap: 0px; | ||
grid-row-gap: 30px; | ||
width: 100%; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
} | ||
|
||
.datepicker_start { grid-area: 1 / 1 / 2 / 2; } | ||
.datepicker_due { grid-area: 2 / 1 / 3 / 2; } | ||
.datepicker_end { grid-area: 3 / 1 / 4 / 2; } | ||
} |
Oops, something went wrong.