Skip to content

Commit b1d9076

Browse files
committed
Restructured Introduction Card to be responsive without media query
1 parent e78a219 commit b1d9076

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

src/LinkDotNet.Blog.Web/Shared/IntroductionCard.razor.css

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
.introduction-container {
88
height: 438px;
99
display: grid;
10-
grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
11-
grid-template-rows: 1fr 1fr 1fr;
10+
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
11+
grid-template-rows: 0.5fr 1fr 1fr 1fr;
1212
gap: 10px;
13-
grid-template-areas: ". . . . . ." ". profile-picture profile-text profile-text profile-text ." ". . . . . .";
13+
grid-template-areas:
14+
". . . . ."
15+
". . profile-picture . ."
16+
". profile-text profile-text profile-text ."
17+
". profile-text profile-text profile-text .";
1418
}
1519

1620
.profile-picture {
@@ -33,21 +37,5 @@
3337
font-size: clamp(0.9rem, 0.6479rem + 1.1268vw, 1.5rem);
3438
color: var(--text-color-inverted);
3539
line-height: clamp(1.5em, 0.6479rem + 1.1268vw, 2.25em);
36-
}
37-
38-
@media only screen and (max-width: 700px) {
39-
.introduction-container {
40-
grid-template-columns: .5fr 1fr 1fr 1fr 1fr .5fr;
41-
grid-template-rows: 1fr 1fr 1fr 1fr;
42-
grid-template-areas:
43-
". . . . ."
44-
". . profile-picture profile-picture . ."
45-
". profile-text profile-text profile-text profile-text ."
46-
". profile-text profile-text profile-text profile-text .";
47-
}
48-
49-
.introduction-container .profile-picture {
50-
margin-block: auto;
51-
margin-left: 0;
52-
}
40+
text-align: center
5341
}

0 commit comments

Comments
 (0)