Skip to content

Commit 24273d4

Browse files
committed
mobile work on home page and other padding and margin adjustments
1 parent 10108e5 commit 24273d4

5 files changed

Lines changed: 50 additions & 9 deletions

File tree

assets/sass/layout/_grid.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.common-layout {
2-
padding: 20px 0 200px 0;
2+
padding-bottom: 20px;
33

44
display: grid;
55
grid-template-columns:
6-
[full-start] minmax(1em, 1fr)
7-
[main-start] minmax(0, 80em) [main-end]
8-
minmax(1em, 1fr) [full-end];
6+
[full-start] minmax(1em, 1fr)
7+
[main-start] minmax(0, 80em) [main-end]
8+
minmax(1em, 1fr) [full-end];
99
grid-row-gap: 1em;
1010

11-
&> * {
11+
& > * {
1212
grid-column: main;
1313
}
1414

@@ -17,6 +17,5 @@
1717
border: 1px solid #cecece;
1818
border-radius: 5px;
1919
padding: 40px;
20-
2120
}
2221
}

assets/sass/layout/_header_mobile.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
.header-contents {
77
padding: 9px 5px 5px 8px;
8+
margin-bottom: 20px;
89
}
910

1011
/* screen reader only */

assets/sass/pages/_downloads.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@use "../base/variables";
44

55
#downloads-page {
6-
padding: 20px 0 200px 0;
6+
padding-bottom: 200px;
77
display: grid;
88
grid-template-columns:
99
[full-start] minmax(1em, 1fr)

assets/sass/pages/_home.scss

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858

5959
span {
6060
align-self: flex-end;
61+
padding-right: 20px;
6162

6263
p {
6364
vertical-align: bottom;
@@ -121,13 +122,53 @@
121122
}
122123
}
123124
}
124-
125125
@media only screen and (max-width: variables.$screen-md-max) {
126126
#home-page {
127+
.two-column-content {
128+
.text {
129+
h1 {
130+
font-size: 2.5em;
131+
}
132+
}
133+
}
134+
}
135+
}
136+
137+
@media only screen and (max-width: variables.$screen-md) {
138+
#home-page {
139+
.two-column-content {
140+
.text {
141+
padding: 20px;
142+
143+
h1 {
144+
font-size: 1.5em;
145+
margin: 0;
146+
padding: 0;
147+
}
148+
}
149+
.image .image-title img {
150+
display: none;
151+
}
152+
}
127153
}
128154
}
129155

130156
@media only screen and (max-width: variables.$screen-xs-max) {
131157
#home-page {
158+
.two-column-content {
159+
grid-template-columns: 1fr;
160+
161+
.text {
162+
aspect-ratio: auto;
163+
}
164+
}
165+
166+
.one-column-content {
167+
section {
168+
display: grid;
169+
grid-template-columns: 1fr 2fr;
170+
column-gap: 20px;
171+
}
172+
}
132173
}
133174
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>The easiest way to program microcontrollers</h1>
2424
/>
2525
<span class="image-title">
2626
<span>
27-
<p>Sketch Drawing Toy by Ruiz Brothers</p>
27+
<p>Sketch Drawing Toy that is really cool and wraps by Ruiz Brothers</p>
2828
</span>
2929
<img alt="Made with CircuitPython Logo"
3030
src="{{ "assets/images/made_with_circuitpython.svg" |

0 commit comments

Comments
 (0)