aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/ReportManager.scss
diff options
context:
space:
mode:
authorSophie Zhang <sophie_zhang@brown.edu>2023-07-08 02:58:04 -0400
committerSophie Zhang <sophie_zhang@brown.edu>2023-07-08 02:58:04 -0400
commitc8eb4ac0242181744d3268b1052582b61dbaf477 (patch)
treeacf49f05715e9933c3d0aa13397220694aebd78b /src/client/util/ReportManager.scss
parent8e205268443f178a79526cf936fabf787691ec5d (diff)
feat: updated github key and ui
Diffstat (limited to 'src/client/util/ReportManager.scss')
-rw-r--r--src/client/util/ReportManager.scss383
1 files changed, 315 insertions, 68 deletions
diff --git a/src/client/util/ReportManager.scss b/src/client/util/ReportManager.scss
index 969e0de74..4ff86fd9c 100644
--- a/src/client/util/ReportManager.scss
+++ b/src/client/util/ReportManager.scss
@@ -1,102 +1,349 @@
@import '../views/global/globalCssVariables';
+// header
+
+.report-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ h2 {
+ margin: 0;
+ padding: 0;
+ font-size: 24px;
+ }
+}
+
+.report-header-vertical {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 4px;
+
+ h2 {
+ margin: 0;
+ padding: 0;
+ padding-bottom: 8px;
+ font-size: 24px;
+ }
+}
+
+// Report
+
.report-issue {
+ width: 45vw;
padding: 16px;
+ padding-top: 32px;
display: flex;
flex-direction: column;
- gap: 1rem;
+ gap: 16px;
background-color: #ffffff;
text-align: left;
+ position: relative;
- h2 {
- font-size: 24px;
+ .report-label {
+ font-size: 14px;
+ font-weight: 400;
+ color: #747474;
+ }
+
+ .report-section {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .report-textarea {
+ width: 100%;
+ height: 80px;
+ padding: 8px;
+ resize: none;
+ }
+
+ .report-selects {
+ display: flex;
+ gap: 16px;
+
+ .report-select {
+ flex: 1;
+ padding: 8px;
+ border-color: #c6c6c6;
+
+ .report-opt {
+ padding: 8px;
+ }
+ }
}
}
-// ---------------------------------------
-.issue-list-wrapper {
- position: relative;
- min-width: 250px;
- background-color: $light-blue;
- overflow-y: scroll;
+.report-input {
+ border: none;
+ outline: none;
+ border-bottom: 1px solid #c6c6c6;
+ padding: 8px;
+ padding-left: 0;
+ transition: all 0.2s ease;
+
+ &:hover {
+ border-bottom-color: #7f7f7f;
+ }
+ &:focus {
+ border-bottom-color: #4476f7;
+ }
}
-.issue-list {
+// View issues
+
+.view-issues {
+ width: 65vw;
+ min-width: 600px;
display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 5px;
- margin: 5px;
- border-radius: 5px;
- border: 1px solid grey;
- background-color: lightgoldenrodyellow;
+ gap: 16px;
+ height: 100%;
+
+ .left {
+ height: 100%;
+ flex: 1;
+ padding: 16px;
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ background-color: #ffffff;
+ text-align: left;
+ position: relative;
+
+ .issues {
+ position: relative;
+ flex-grow: 1;
+ overflow-y: auto;
+ overflow-x: hidden;
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ }
+ }
+
+ .right {
+ padding: 16px;
+ height: 100%;
+ overflow-y: auto;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ flex: 1;
+ }
}
-// issue should pop up when the user hover over the issue
-.issue-list:hover {
- box-shadow: 2px;
+// Issue
+
+.issue {
cursor: pointer;
- border: 3px solid #252b33;
+ padding: 16px;
+ background-color: #ffffff;
+ border: 1px solid #d3d3d3;
+ transition: all 0.1s ease;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ border-radius: 8px;
+ transition: all 0.2s ease;
+ // box-shadow: 0 0 8px #d0d0d07c;
+
+ .issue-label {
+ cursor: pointer;
+ font-size: 14px;
+ font-weight: 400;
+ letter-spacing: 1px;
+ color: #7f7f7f;
+ }
+
+ .issue-title {
+ font-size: 16px;
+ font-weight: 500;
+ padding: 0;
+ margin: 0;
+ color: #4476f7;
+ }
+
+ &:hover {
+ background-color: #4476f7;
+ border-color: #4476f7;
+ color: #ffffff;
+
+ .issue-label {
+ color: #ffffff;
+ }
+
+ .issue-title {
+ color: #ffffff;
+ }
+ }
}
-.issue-content {
- background-color: white;
- padding: 10px;
- flex: 1 1 auto;
- overflow-y: scroll;
+// Dropzone
+
+.dropzone {
+ padding: 2rem;
+ border-radius: 0.5rem;
+ border: 2px dashed #ebebeb;
+
+ .dropzone-instructions {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 16px;
+ color: #7f7f7f;
+
+ p {
+ text-align: center;
+ }
+ }
}
-.issue-title {
- font-size: 20px;
- font-weight: 600;
- color: black;
+.files {
+ font-size: 14px;
+ color: #7f7f7f;
+
+ .file-list {
+ width: 100%;
+ list-style-type: none;
+ display: flex;
+ overflow-x: auto;
+ gap: 16px;
+ margin: 0;
+ padding: 0;
+
+ .file-name {
+ padding: 8px 12px;
+ display: flex;
+ align-items: center;
+ gap: 16px;
+ white-space: nowrap;
+ }
+ }
}
-.issue-body {
- padding: 0 10px;
+// Detailed issue view
+
+.issue-view {
+ height: 100%;
width: 100%;
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ background-color: #ffffff;
text-align: left;
-}
+ position: relative;
+ overflow: auto;
-.issue-body > * {
- margin-top: 5px;
-}
+ .issue-label {
+ color: #7f7f7f;
-.issue-body img,
-.issue-body video {
- display: block;
- max-width: 100%;
-}
+ .issue-link {
+ cursor: pointer;
+ color: #4476f7;
+ }
+ }
-.report-issue-fab {
- position: fixed;
- bottom: 20px;
- right: 20px;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
-}
+ .issue-title {
+ font-size: 24px;
+ margin: 0;
+ padding: 0;
+ }
-.loading-center {
- margin: auto 0;
+ .issue-content {
+ font-size: 14px;
+ color: #7f7f7f;
+ }
}
-.settings-content label {
- margin-top: 10px;
-}
+// Old code
-.report-disclaimer {
- font-size: 8px;
- color: grey;
- padding-right: 50px;
- font-style: italic;
- text-align: left;
-}
+// <---------------------------------------------------------------------------->
-.flex-select {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 10px;
-}
+// .issue-list-wrapper {
+// position: relative;
+// min-width: 250px;
+// background-color: $light-blue;
+// overflow-y: scroll;
+// }
+
+// .issue-list {
+// display: flex;
+// align-items: center;
+// justify-content: space-between;
+// padding: 5px;
+// margin: 5px;
+// border-radius: 5px;
+// border: 1px solid grey;
+// background-color: lightgoldenrodyellow;
+// }
+
+// // issue should pop up when the user hover over the issue
+// .issue-list:hover {
+// box-shadow: 2px;
+// cursor: pointer;
+// border: 3px solid #252b33;
+// }
+
+// .issue-content {
+// background-color: white;
+// padding: 10px;
+// flex: 1 1 auto;
+// overflow-y: scroll;
+// }
+
+// .issue-title {
+// font-size: 20px;
+// font-weight: 600;
+// color: black;
+// }
+
+// .issue-body {
+// padding: 0 10px;
+// width: 100%;
+// text-align: left;
+// }
+
+// .issue-body > * {
+// margin-top: 5px;
+// }
+
+// .issue-body img,
+// .issue-body video {
+// display: block;
+// max-width: 100%;
+// }
+
+// .report-issue-fab {
+// position: fixed;
+// bottom: 20px;
+// right: 20px;
+// display: flex;
+// align-items: center;
+// justify-content: center;
+// cursor: pointer;
+// }
+
+// .loading-center {
+// margin: auto 0;
+// }
+
+// .settings-content label {
+// margin-top: 10px;
+// }
+
+// .report-disclaimer {
+// font-size: 8px;
+// color: grey;
+// padding-right: 50px;
+// font-style: italic;
+// text-align: left;
+// }
+
+// .flex-select {
+// display: flex;
+// align-items: center;
+// justify-content: center;
+// gap: 10px;
+// }