Skip to content

Commit a7ad833

Browse files
committed
Make stuff look better on medium-width devices and phones
1 parent 611aac0 commit a7ad833

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

Diff for: _layouts/home.html

+6-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
layout: default
33
---
44

5-
<!-- site title, logo and description -->
6-
<!-- to update, edit the global site config.yaml -->
75
<section>
6+
<!-- site title, logo and description -->
7+
<!-- to update, edit the global site config.yaml -->
88
<div class="w-100 m-auto mt-2">
99
<div class="d-md-flex justify-center">
1010
<div class="d-sm-none"><img class="logo" src="{{site.baseurl}}/assets/img/rust-python-logo.svg"
1111
alt="RustPython Logo">
1212
</div>
13-
<div class="w-md-25 pl-2">
13+
<div class="w-md-50 w-lg-25 pl-2">
1414
<div class="title">{{ site.title }}</div>
1515
<div class="">
1616
<p>
@@ -20,12 +20,10 @@
2020
</div>
2121
</div>
2222
</div>
23-
</section>
2423

25-
<!-- explainer image, paragraph and links to demos -->
26-
<!-- to update, edit index.markdown file in the root folder -->
27-
<section>
28-
<div class="m-auto w-md-25 mt-2">
24+
<!-- explainer table + paragraph and links to demos -->
25+
<!-- to update, edit index.markdown file in the root folder -->
26+
<div class="m-auto w-md-50 w-lg-25 mt-2">
2927
<table class="w-100">
3028
<tr>
3129
<td class="valign-center vpad-small">

Diff for: assets/media.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636

37-
/* desktop , tablets */
37+
/* smaller laptops, tablets */
3838
@media (min-width: 768px) {
3939
.mt-md-4 {
4040
margin-top: 4em;
@@ -85,6 +85,12 @@
8585
}
8686
}
8787

88+
@media (min-width: 1366px) {
89+
.w-lg-25 {
90+
width: 25%;
91+
}
92+
}
93+
8894
/* fixes for ipad */
8995
@media (min-width: 992px) {
9096

0 commit comments

Comments
 (0)