Skip to content

Commit dc91f65

Browse files
committed
Fix download widget form wrapping
JAVA-1695
1 parent 4b5f563 commit dc91f65

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

docs/landing/layouts/partials/quickStart.html

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ <h2 id="quickStart">Quick Start</h2>
1212
{{$currentReleasedVersion := $.Scratch.Get "qs.currentReleasedVersion"}}
1313

1414
<div id="downloadWidget">
15-
<form class="form-inline">
16-
<a id="downloadLink" href="https://oss.sonatype.org/content/repositories/releases/org/mongodb/mongodb-driver/{{$currentReleasedVersion.version}}/"
17-
class="btn btn-large btn-dark btn-download" target="_blank">Download</a>
15+
<div class="container">
16+
<div class="row downloadForm">
17+
<form>
18+
<div class="col-xs-5 col-lg-4 col-lg-push-2 ">
1819
{{ $.Scratch.Set "qs.pos" 0 }}
1920
{{ $.Scratch.Set "qs.firstDriver" false }}
2021
{{ with $.Site.Data.releases.drivers }}
@@ -26,7 +27,8 @@ <h2 id="quickStart">Quick Start</h2>
2627
{{ end }}
2728
</select>
2829
{{ end }}
29-
30+
</div>
31+
<div class="col-xs-5 col-lg-4 col-lg-push-2 ">
3032
{{ $.Scratch.Set "qs.pos" 0 }}
3133
{{ $firstDriver := $.Scratch.Get "qs.firstDriver"}}
3234
{{ with $.Site.Data.releases.versions }}
@@ -37,8 +39,19 @@ <h2 id="quickStart">Quick Start</h2>
3739
{{ end }}
3840
</select>
3941
{{ end }}
42+
</div>
43+
<div class="col-lg-2 col-lg-push-2 ">
4044
<input type="checkbox" checked class="distroPicker" data-toggle="toggle" data-on="Maven" data-off="Gradle" data-offstyle="success">
45+
</div>
4146
</form>
47+
<div class="hidden-md hidden-sm hidden-xs col-lg-2 col-lg-pull-10 downloadLink">
48+
<a href="https://oss.sonatype.org/content/repositories/releases/org/mongodb/mongodb-driver/{{$currentReleasedVersion.version}}/"
49+
class="btn btn-dark btn-download" target="_blank">Download</a>
50+
</div>
51+
</div>
52+
53+
54+
<div class="row">
4255
<div class="clipboard" title="copy">
4356
<button class="btn btn-dark"><i class="fa fa-clipboard fa-2"></i></button>
4457
</div>
@@ -88,4 +101,6 @@ <h2 id="quickStart">Quick Start</h2>
88101
{{ $.Scratch.Add "qs.driverPos" 1 }}
89102
{{ end }}
90103
{{ end }}
91-
</div>
104+
</div>
105+
</div>
106+
</div>

docs/landing/static/s/css/frontpage.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,8 @@ input.gsc-search-button[title], input.gsc-search-button:hover[title], input.gsc-
274274
}
275275

276276
.btn-download, .btn-download:visited, .btn-download:active {
277-
font-size: 14px;
278-
font-weight: 800;
279-
line-height: 14px;
280-
margin: 0px;
281-
padding: 20px 60px;
277+
margin-top: -10px;
278+
padding: 15px 10px;
282279
text-shadow: none;
283280
text-transform: uppercase;
284281
}
@@ -314,6 +311,15 @@ input.gsc-search-button[title], input.gsc-search-button:hover[title], input.gsc-
314311
border: 1px solid #3b291f;
315312
}
316313

314+
#downloadWidget .downloadForm {
315+
margin-top: 10px;
316+
}
317+
318+
#downloadWidget .downloadLink {
319+
padding-left: 0;
320+
padding-right: 5px;
321+
}
322+
317323
#downloadWidget .description {
318324
border-top: 1px solid #3b291f;
319325
padding: 10px;
@@ -328,8 +334,9 @@ input.gsc-search-button[title], input.gsc-search-button:hover[title], input.gsc-
328334
padding: 0;
329335
}
330336

331-
#downloadWidget code {
332-
padding: 0 10px;
337+
#downloadWidget pre code {
338+
padding: 10px;
339+
min-height: 65px;
333340
}
334341

335342
#downloadWidget .clipboard {

0 commit comments

Comments
 (0)