aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeireann Lindfield Roberts <geireann_lindfield_roberts@brown.edu>2024-12-30 20:41:20 -0800
committerGeireann Lindfield Roberts <geireann_lindfield_roberts@brown.edu>2024-12-30 20:41:20 -0800
commit96aff4f0c900a9e13a1a4916c6d4d945c544060c (patch)
tree9d45f1db6f280b07c1ea9178db167582f33d9620 /src
parentc314477466a96171e5365463ca24d12fc8421bcf (diff)
minor cleanup for dashboard view
Diffstat (limited to 'src')
-rw-r--r--src/client/views/DashboardView.scss33
1 files changed, 20 insertions, 13 deletions
diff --git a/src/client/views/DashboardView.scss b/src/client/views/DashboardView.scss
index 90f64b393..25feca7bf 100644
--- a/src/client/views/DashboardView.scss
+++ b/src/client/views/DashboardView.scss
@@ -1,31 +1,39 @@
@import './global/globalCssVariables.module';
+$dashboard-left-menu-width: 250px;
+$dashboard-view-padding: 20px;
+$dashboard-container-height: 200px;
+$dashboard-container-width: 250px;
+
.dashboard-view {
- padding: 50px;
display: flex;
flex-direction: row;
width: 100%;
- position: absolute;
height: 100%;
- width: 100%;
- padding-right: 0px;
+ position: absolute;
overflow: auto;
.left-menu {
display: flex;
justify-content: flex-start;
flex-direction: column;
- width: 250px;
- min-width: 250px;
+ position: fixed;
+ min-width: $dashboard-left-menu-width;
gap: 5px;
+ padding: $dashboard-view-padding;
}
.all-dashboards {
display: flex;
flex-direction: row;
flex-wrap: wrap;
- overflow-y: auto;
width: 100%;
+ height: fit-content;
+ justify-content: flex-start;
+ align-items: flex-start;
+ padding: $dashboard-view-padding 0px 0px $dashboard-left-menu-width;
+ gap: 10px;
+ margin-bottom: 60px;
}
}
@@ -48,13 +56,12 @@
.dashboard-container-new {
border-radius: 10px;
- width: 250px;
- height: 200px;
+ width: $dashboard-container-width;
+ height: $dashboard-container-height;
font-size: 120px;
font-weight: 100;
text-align: center;
border: solid 2px $light-gray;
- margin: 0 0px 30px 30px;
cursor: pointer;
color: $light-gray;
display: flex;
@@ -82,12 +89,12 @@
border-radius: 10px;
position: relative;
cursor: pointer;
- width: 250px;
- height: 200px;
+ width: $dashboard-container-width;
+ height: $dashboard-container-height;
outline: solid 2px $light-gray;
+ outline-offset: -2px;
display: flex;
flex-direction: column;
- margin: 0 0px 30px 30px;
overflow: hidden;
&:hover {