Skip to content

Commit 39415ca

Browse files
committed
added scrolling for user dashboard
1 parent 88cc3e5 commit 39415ca

File tree

1 file changed

+44
-49
lines changed

1 file changed

+44
-49
lines changed

app/src/Dashboard/styles.css

Lines changed: 44 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,72 @@
11
/* @import url('https://fonts.googleapis.com/css2?family=Cabin&family=Oswald&display=swap');
22
33
4+
45
$primary-black: #22292f;
56
$secondary-black: #606f7b;
67
$teriary-grey: #f0f0f0;
78
$light-grey: #bfcbd4;
89
$light-blue: #759cc9;
910
$button-blue: #24BCFF; */
10-
11+
body, html {
12+
position: relative;
13+
height: 100%;
14+
}
1115
.form , .project{
12-
display: flex;
13-
flex-direction: column;
14-
background-color: white;
15-
border: 1px solid #f0f0f0;
16-
box-shadow: 0 0 5px rgba(0,0,0,0.3);
17-
margin: 5px;
16+
width: 22vw;
17+
height: 38vh;
18+
background:white;
19+
margin: 1% 1%;
1820
border-radius: 5px;
19-
color: #606f7b;
20-
align-items: center;
21-
height: 35vh;
22-
/* justify-content: min; */
23-
width: 15%;
24-
overflow: scroll;
21+
box-shadow: 0 0 5px rgba(0,0,0,0.3);
22+
text-align: center;
23+
position: relative;
24+
border: 1px solid #f0f0f0;
25+
overflow: auto;
26+
/* border: 2px solid blue; */
2527
}
2628

27-
/* .dashboardContainer {
28-
display: grid;
29-
grid-template: auto / repeat(2, 1fr);
30-
} */
31-
3229
.formContainer , .projectContainer{
30+
border-radius: 5px;
31+
width: 100vw;
32+
height: 40vh;
33+
position: relative;
34+
margin: 0 auto;
35+
overflow-y: scroll;
36+
z-index: 5;
3337
display: flex;
38+
flex-direction: column-reverse;
3439
flex-flow: row wrap;
40+
justify-content: flex-start;
41+
/* border: 2px solid red; */
3542
}
3643

37-
.project {
38-
position: relative;
39-
}
40-
41-
.projectInfo {
42-
text-align: center;
44+
.headers {
45+
border: 1px solid black;
4346
}
4447

4548
.commentArea {
46-
/* position: absolute; */
47-
bottom: 0;
48-
display: inline-block;
4949
width: 100%;
50-
height: 100%;
50+
position: relative;
5151
text-align: center;
52-
/* height: 25%; */
53-
overflow: scroll;
5452
overflow-x: hidden;
53+
overflow-y: scroll;
54+
55+
/* border: 2px solid purple; */
5556
}
5657

5758
.commentBox {
5859
padding: 5%;
5960
width: 100%;
60-
border: 1px solid transparent;
61-
/* vertical-align: middle; */
61+
border: 1px solid #f0f0f0;
6262
}
6363

6464
.commentButton{
65-
/* float: right; */
66-
top: 22%;
65+
top: 25%;
6766
right: 5%;
6867
position: absolute;
69-
padding-top: 2%;
70-
padding-bottom: 2%;
68+
border: 1px solid transparent;
69+
background-color: white;
7170
}
7271

7372
.renderedCom {
@@ -78,7 +77,7 @@ $button-blue: #24BCFF; */
7877
position: absolute;
7978
bottom: 0;
8079
width: 100%;
81-
border: 1px solid #f0f0f0;
80+
/* border: 2px solid green; */
8281
}
8382

8483
.icons {
@@ -88,17 +87,13 @@ $button-blue: #24BCFF; */
8887
align-items: center;
8988
}
9089

91-
/* .formContainer {
92-
display: flex;
93-
flex-direction: row;
94-
width: 100%;
95-
height: 100%;
90+
h1 {
91+
text-align: center;
9692
}
9793

98-
.projectContainer {
99-
display: flex;
100-
flex-direction: row;
101-
align-items: center;
102-
justify-content: center;
103-
width: 100%;
104-
} */
94+
.deleteProject {
95+
background-color: transparent;
96+
position: absolute;
97+
right: 0;
98+
border: 1px solid transparent;
99+
}

0 commit comments

Comments
 (0)