Skip to content

Commit 040bed3

Browse files
authored
Merge pull request #3346 from DSouzaM/master
Fix #2961: Scale logo size on home page with screen size
2 parents 0c7aa9d + b512bcd commit 040bed3

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

docs/css/default.css

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,10 @@ div#header li.nav-item > a.nav-link {
143143
}
144144

145145
div.scala-logo-container {
146-
width: 232px;
147-
height: calc(400px + 13em);
146+
height: calc(100vh - 80px);
148147
margin: auto;
149148
position: absolute;
150-
top: 0; right: 0; bottom: 0; left: 0;
149+
top: 80px; right: 0; bottom: 0; left: 0;
151150
}
152151

153152
div.scala-logo-container > p {
@@ -158,21 +157,25 @@ div.scala-logo-container > p {
158157
}
159158

160159
div.scala-logo-container > p > img {
161-
width: 100%;
162-
height: auto;
160+
max-width: 100%;
161+
height: 60%;
162+
display: block;
163163
}
164164

165165
h1#dotty {
166166
font-family: 'Source Sans Pro', sans-serif;
167167
font-weight: 700;
168168
text-align: center;
169-
font-size: 3.5em;
169+
font-size: 10vh;
170170
margin-top: 20px;
171171
}
172172

173173
div.centered-subtitle {
174174
text-align: center;
175175
font-family: 'Source Sans Pro', sans-serif;
176+
position: absolute;
177+
bottom: 0;
178+
width: 100%;
176179
}
177180

178181
div.centered-subtitle > a {
@@ -183,6 +186,10 @@ div.centered-subtitle > a > i#scroll-down-arrow {
183186
font-size: 3em;
184187
}
185188

189+
div.centered-subtitle > p {
190+
font-size: 3vh;
191+
}
192+
186193
pre {
187194
background-color: #efefef;
188195
border-radius: 4px;
@@ -446,6 +453,10 @@ screen /* Most mobile devices */
446453
and (max-device-width: 480px)
447454
and (orientation: portrait)
448455
,
456+
screen /* Most mobile devices, landscape */
457+
and (max-device-height: 450px)
458+
and (orientation: landscape)
459+
,
449460
only screen /* iPhone 6 */
450461
and (max-device-width: 667px)
451462
and (-webkit-device-pixel-ratio: 2)
@@ -510,13 +521,12 @@ and (-webkit-device-pixel-ratio: 2)
510521
}
511522

512523
div.scala-logo-container {
513-
width: 40%;
514524
height: 84%;
515525
top: 70px;
516526
}
517527

518-
#content > div.page.red.exactly-one-page > div.scala-logo-container > div > p {
519-
font-size: 0.8em;
528+
div.scala-logo-container > p > img {
529+
height: 50%;
520530
}
521531

522532
/* Feature */

0 commit comments

Comments
 (0)