Skip to content

Commit 3cc84ce

Browse files
committed
improve title centering
1 parent fbf8a91 commit 3cc84ce

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

_sass/_splash.scss

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
$size: 350px;
22

33
.splash {
4-
height: $size;
5-
text-align: center;
6-
& h1 {
7-
width: 100%;
8-
height: 100%;
9-
background: url('#{$CSHPUBSITE_ASSETS_URL}/hallway_blurred.jpg') 30% 30% no-repeat;
10-
background-size: cover;
11-
line-height: calc(#{$size} + 50px);
12-
text-align: center;
13-
color: white;
14-
font-size: 3em;
15-
vertical-align: bottom;
16-
}
4+
height: $size;
5+
display: flex;
6+
align-items: center;
7+
justify-content: center;
8+
text-align: center;
9+
background: url('#{$CSHPUBSITE_ASSETS_URL}/hallway_blurred.jpg') 30% 30% no-repeat;
10+
background-size: cover;
11+
12+
h1 {
13+
color: white;
14+
font-size: 3em;
15+
margin: 0;
16+
padding: 0 1rem;
17+
max-width: 100%;
18+
word-wrap: break-word;
19+
}
20+
21+
@media (max-width: 992px) {
22+
height: 400px;
1723

18-
@media(max-width: 992px) {
19-
height: 400px;
20-
& h1 {
21-
font-size: 2em;
22-
line-height: 1.2;
23-
padding-top: 50%;
24-
}
24+
h1 {
25+
font-size: 2em;
26+
padding: 0 1rem;
2527
}
28+
}
2629
}

0 commit comments

Comments
 (0)