Skip to content

Commit cca7162

Browse files
authored
Merge pull request #420 from felipeelia/fix/mobile-styles
2 parents f16446e + f32b840 commit cca7162

File tree

2 files changed

+46
-13
lines changed

2 files changed

+46
-13
lines changed

assets/css/stylesheet.css

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,19 @@ header h1 {
288288
margin-bottom: 20px;
289289
}
290290

291+
@media (max-width: 970px) {
292+
header h1 {
293+
margin-left: 0;
294+
}
295+
}
296+
297+
@media (max-width: 690px) {
298+
/* Avoid collision with the language selector */
299+
header h1 {
300+
padding-top: 40px;
301+
}
302+
}
303+
291304
header h1 img {
292305
vertical-align: middle;
293306
}
@@ -438,6 +451,13 @@ body.display-global-parameters #main_content {
438451
-webkit-font-smoothing: antialiased;
439452
}
440453

454+
@media (max-width: 970px) {
455+
#main_content {
456+
padding: 0; /* parent .container will provide needed spacement */
457+
margin: 0;
458+
}
459+
}
460+
441461
#main_content h1 {
442462
font-size: 30px;
443463
}
@@ -707,14 +727,8 @@ hr:after,
707727
}
708728
}
709729

710-
@media (max-width: 970px) {
711-
header h1 {
712-
margin-left: 0;
713-
}
714-
}
715-
716730
@media (max-width: 690px) {
717-
.main-nav li a {
731+
.main-nav li:not(:nth-child(5)) a {
718732
padding-left: 0;
719733
}
720734

index.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,31 @@ WP-CLI
55

66
Ongoing maintenance is made possible by:
77

8-
<a href="https://automattic.com/" style="height:100px;width:49%;display:inline-block;position:relative;"><img src="https://make.wordpress.org/cli/files/2017/04/automattic-1.png" style="max-height:100%;max-width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;" alt="" width="320" height="70" class="aligncenter size-full wp-image-347" /></a>
9-
<a href="https://www.bluehost.com/" style="height:100px;width:49%;display:inline-block;position:relative;"><img class="aligncenter size-full wp-image-335" style="max-height:100%;max-width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;" src="https://make.wordpress.org/cli/files/2017/04/bluehost.png" alt="" width="320" height="52" /></a>
10-
<a href="https://pantheon.io/" style="height:100px;width:49%;display:inline-block;position:relative;"><img class="aligncenter size-full wp-image-333" style="max-height:100%;max-width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;" src="https://make.wordpress.org/cli/files/2019/06/pantheon.png" alt="" width="320" height="100" /></a>
11-
<a href="https://www.siteground.com/" style="height:100px;width:49%;display:inline-block;position:relative;"><img class="aligncenter size-full wp-image-332" style="max-height:100%;max-width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;" src="https://make.wordpress.org/cli/files/2019/06/SG_logo.png" alt="" width="320" height="66" /></a>
12-
<a href="https://wpengine.com/" style="height:100px;width:49%;display:inline-block;position:relative;"><img class="aligncenter size-full wp-image-333" style="max-height:100%;max-width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;" src="https://make.wordpress.org/cli/files/2017/04/wpengine.png" alt="" width="320" height="60" /></a>
13-
<a href="https://www.cloudways.com/" style="height:100px;width:49%;display:inline-block;position:relative;"><img class="aligncenter size-full wp-image-3229" style="max-height:100%;max-width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;" src="https://make.wordpress.org/cli/files/2021/02/Cloudways-Logo-e1612285267691.png" alt="" width="320" height="62" /></a>
8+
<div style="
9+
display: flex;
10+
flex-wrap: wrap;
11+
align-items: center;
12+
justify-content: space-between;
13+
text-align: center;">
14+
<a href="https://automattic.com/" style="width:49%; margin-bottom: 10px">
15+
<img src="https://make.wordpress.org/cli/files/2017/04/automattic-1.png" alt="Automattic" width="320" height="70" style="height: auto" />
16+
</a>
17+
<a href="https://www.bluehost.com/" style="width:49%; margin-bottom: 10px">
18+
<img style="height: auto" src="https://make.wordpress.org/cli/files/2017/04/bluehost.png" alt="Bluehost" width="320" height="52" />
19+
</a>
20+
<a href="https://pantheon.io/" style="width:49%; margin-bottom: 10px">
21+
<img style="height: auto" src="https://make.wordpress.org/cli/files/2019/06/pantheon.png" alt="Pantheon" width="320" height="100" />
22+
</a>
23+
<a href="https://www.siteground.com/" style="width:49%; margin-bottom: 10px">
24+
<img style="height: auto" src="https://make.wordpress.org/cli/files/2019/06/SG_logo.png" alt="SiteGround" width="320" height="66" />
25+
</a>
26+
<a href="https://wpengine.com/" style="width:49%; margin-bottom: 10px">
27+
<img style="height: auto" src="https://make.wordpress.org/cli/files/2017/04/wpengine.png" alt="WP Engine" width="320" height="60" />
28+
</a>
29+
<a href="https://www.cloudways.com/" style="width:49%; margin-bottom: 10px">
30+
<img style="height: auto" src="https://make.wordpress.org/cli/files/2021/02/Cloudways-Logo-e1612285267691.png" alt="Cloudways" width="320" height="62" />
31+
</a>
32+
</div>
1433

1534
The current stable release is [version 2.5.0](https://make.wordpress.org/cli/2021/05/19/wp-cli-v2-5-0-release-notes/). For announcements, follow [@wpcli on Twitter](https://twitter.com/wpcli) or [sign up for email updates](https://make.wordpress.org/cli/subscribe/). [Check out the roadmap](https://make.wordpress.org/cli/handbook/roadmap/) for an overview of what's planned for upcoming releases.
1635

0 commit comments

Comments
 (0)