Skip to content

Commit 02e6bf0

Browse files
committed
optimise for mobile
1 parent 38e0716 commit 02e6bf0

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

assets/css/style.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,19 @@ body {
190190
/* Approach image */
191191
.approach-image {
192192
margin-bottom: 20px;
193+
max-width: 400px;
194+
margin-left: auto;
195+
margin-right: auto;
193196
}
194197

195198
.approach-image img {
196199
width: 100%;
197200
height: auto;
201+
max-height: 300px;
198202
border-radius: var(--border-radius);
199203
box-shadow: var(--shadow);
200-
object-fit: cover;
204+
object-fit: contain;
205+
background: #f8f8f8;
201206
}
202207

203208
/* Research area tags */
@@ -1094,6 +1099,15 @@ body {
10941099
margin: 0 auto;
10951100
}
10961101

1102+
.approach-image {
1103+
max-width: 300px;
1104+
margin: 0 auto 20px auto;
1105+
}
1106+
1107+
.approach-image img {
1108+
max-height: 200px;
1109+
}
1110+
10971111
.hiring-content {
10981112
flex-direction: column;
10991113
gap: 20px;

0 commit comments

Comments
 (0)