Skip to content

Commit d1240d8

Browse files
committed
adjust style
1 parent 5aed135 commit d1240d8

File tree

5 files changed

+26
-15
lines changed

5 files changed

+26
-15
lines changed
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

projects/www/src/app/components/contributor-card.component.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ import { Contributor } from '../services/contributors.service';
5353
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
5454
}
5555
.contributor-photo {
56-
width: 160px;
57-
height: 170px;
56+
width: 200px;
57+
height: 210px;
5858
display: flex;
5959
align-items: center;
6060
justify-content: center;
6161
overflow: hidden;
6262
background: #fff;
63-
border-bottom: solid 4px #9aadf6;
63+
border-bottom: solid 4px #cf8fc5;
6464
}
6565
.contributor-photo img {
6666
height: 100%;
@@ -69,20 +69,20 @@ import { Contributor } from '../services/contributors.service';
6969
display: block;
7070
}
7171
.contributor-info {
72-
width: 160px;
73-
padding: 16px 0 0;
72+
width: 200px;
73+
padding: 15px 0 0;
7474
text-align: center;
7575
background: #120c14;
7676
}
7777
.contributor-info h3 {
7878
margin-top: 0;
79-
margin-bottom: 5px;
80-
font-size: 14px;
79+
margin-bottom: 8px;
80+
font-size: 16px;
8181
font-weight: 500;
8282
}
8383
.view-bio {
84-
margin: 7px 0 0;
85-
color: #9d94ce;
84+
margin: 10px 0 0;
85+
color: #cf8fc5;
8686
font-size: 14px;
8787
cursor: pointer;
8888
background: #221925;
@@ -110,7 +110,7 @@ import { Contributor } from '../services/contributors.service';
110110
height: 100%;
111111
background: #120c14;
112112
color: #fff;
113-
padding: 10px;
113+
padding: 15px;
114114
overflow: hidden;
115115
display: flex;
116116
flex-direction: column;
@@ -132,7 +132,7 @@ import { Contributor } from '../services/contributors.service';
132132
margin: 0;
133133
color: #fff;
134134
font-size: 12px;
135-
line-height: 15px;
135+
line-height: 16px;
136136
}
137137
`,
138138
],

projects/www/src/app/components/contributor-list.component.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,21 @@ import { Contributor } from '../services/contributors.service';
2323
.contributor-list {
2424
margin-top: 30px;
2525
display: grid;
26-
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
26+
grid-template-columns: repeat(4, 1fr);
2727
gap: 24px;
2828
margin-bottom: 50px;
2929
justify-items: center;
30+
width: 900px;
31+
max-width: 100%;
32+
@media only screen and (max-width: 900px) {
33+
grid-template-columns: repeat(3, 1fr);
34+
}
35+
@media only screen and (max-width: 600px) {
36+
grid-template-columns: repeat(2, 1fr);
37+
}
38+
@media only screen and (max-width: 480px) {
39+
grid-template-columns: repeat(1, 1fr);
40+
}
3041
}
3142
`,
3243
],

0 commit comments

Comments
 (0)