Skip to content

Commit 27deeb9

Browse files
authored
fix: host name display out of alignment with graphic (#1977)
1 parent 2947744 commit 27deeb9

File tree

2 files changed

+39
-12
lines changed

2 files changed

+39
-12
lines changed

public/assets/styles/transition-page/transition-page.css

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ body {
4949
background-repeat: no-repeat;
5050
background-position: center;
5151
background-size: contain;
52-
max-width: 100%;
52+
width: 433px;
5353
height: 140px;
5454
text-align: left;
5555
margin-left: auto;
@@ -61,10 +61,20 @@ body {
6161
width: 100%;
6262
height: 140px;
6363
padding-top: 75px;
64-
padding-left: 165px;
64+
padding-left: 167px;
6565
color: var(--transition-links-color);
6666
}
6767

68+
.links-health {
69+
padding-top: 77px;
70+
padding-left: 167px;
71+
}
72+
73+
.links-edu {
74+
padding-top: 77px;
75+
padding-left: 172px;
76+
}
77+
6878
.bottom-half {
6979
text-align: center;
7080
min-height: 250px;
@@ -121,8 +131,22 @@ body {
121131

122132
@media only screen and (max-width: 768px) {
123133
.links {
134+
padding-top: 71px;
135+
padding-left: 134px;
136+
}
137+
138+
.links-health {
124139
padding-top: 73px;
125-
padding-left: 148px;
140+
padding-left: 133px;
141+
}
142+
143+
.links-edu {
144+
padding-top: 74px;
145+
padding-left: 139px;
146+
}
147+
148+
.browser-image {
149+
width: 350px;
126150
}
127151
}
128152

@@ -152,12 +176,22 @@ body {
152176

153177
.links {
154178
padding-top: 73px;
155-
padding-left: 115px;
179+
padding-left: 116px;
156180
font-size: 12px;
157181
height: 120px;
158182
box-sizing: border-box;
159183
}
160184

185+
.links-health {
186+
padding-top: 74px;
187+
padding-left: 114px;
188+
}
189+
190+
.links-edu {
191+
padding-top: 75px;
192+
padding-left: 119px;
193+
}
194+
161195
.top-half-content a {
162196
line-height: 20px;
163197
}
@@ -194,11 +228,4 @@ body {
194228
.browser-image {
195229
width: 300px;
196230
}
197-
198-
.links {
199-
padding-top: 73px;
200-
padding-left: 115px;
201-
font-size: 12px;
202-
box-sizing: border-box;
203-
}
204231
}

src/server/views/transition-page.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<p id="url" data-href="<%- escapedLongUrl %>">You will be redirected in <span id="countdown-seconds">6</span> second<span id="s">s</span></p>
2727
<img id="spinner" src="/assets/<%- assetVariant %>/transition-page/images/spinner.gif" alt="loading" />
2828
<div class="browser-image" style="background-image: url('/assets/<%- assetVariant %>/transition-page/images/browser.svg');">
29-
<div class="links" <% if(assetVariant !== 'gov') { %> <%-"style=padding-left:169px;"%> <% } %>><%- displayHostname.toLowerCase() %>/</div>
29+
<div class="links links-<%- assetVariant %>" ><%- displayHostname.toLowerCase() %>/</div>
3030
</div>
3131
</div>
3232
</div>

0 commit comments

Comments
 (0)