Skip to content

Commit a1888b7

Browse files
Alan Ridlehoover and Fito von ZastrowFito
Alan Ridlehoover and Fito von Zastrow
andcommitted
Fixes media queries
Co-authored-by: Fito von Zastrow <[email protected]>
1 parent 59e730c commit a1888b7

File tree

4 files changed

+46
-21
lines changed

4 files changed

+46
-21
lines changed

_sass/about.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222

2323
.copyright {
2424
color: $color-blue-light;
25+
font-family: "MonoHand", sans-serif;
26+
font-size: 12px;
2527
padding-top: $padding;
2628
text-align: center;
29+
text-transform: uppercase;
2730
}
2831

2932
a {

_sass/intro.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
.software {
22
font-family: "MonoHand", sans-serif;
33
font-size: 20px;
4-
margin-top: 3em;
54
text-align: center;
65

76
ul {
87
list-style-type: none;
98

109
li {
1110
display: inline-block;
12-
padding: $padding;
11+
padding: $padding $padding 0;
1312
text-align: center;
1413
text-transform: uppercase;
1514

_sass/media.scss

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,53 @@
1515
@include max-query(1194px, $columns-wide, 12em, 2em, 5.5em, 1.75em, 1em, 3px, 2px, 6px, $max-width-narrow);
1616
@include max-query(1024px, $columns-wide, 12em, 2em, 5.5em, 1.75em, 1em, 3px, 2px, 6px, $max-width-narrow);
1717
@include max-query( 896px, $columns-wide, 8em, 1.5em, 4.5em, 1.5em, 1em, 3px, 1px, 4px, $max-width-narrow);
18-
@include max-query( 667px, $columns-narrow, 5em, 1em, 3em, 1.25em, 1em, 2px, 1px, 2px, $max-width-narrow);
18+
@include max-query( 812px, $columns-narrow, 5em, 1em, 3em, 1.25em, 1em, 2px, 1px, 2px, $max-width-narrow);
19+
@include max-query( 768px, $columns-narrow, 8em, 1.5em, 4.5em, 1.5em, 1em, 3px, 1px, 4px, $max-width-narrow);
20+
@include max-query( 736px, $columns-narrow, 5em, 1em, 3em, 1.25em, 1em, 2px, 1px, 2px, $max-width-narrow);
1921
@include max-query( 320px, $columns-narrow, 4em, 1em, 2em, 1.25em, 1em, 2px, 1px, 2px, $max-width-narrow);
2022

2123
// iPhone
22-
@media only screen and (max-width : 667px) and (orientation: landscape) {
24+
@media only screen and (max-width : 812px) and (orientation: landscape) {
2325
scroll-page {
2426
padding: $padding;
27+
28+
.software {
29+
font-size: 16px;
30+
padding: $page-padding $padding;
31+
}
2532
}
2633

2734
scroll-page:first-child {
28-
padding: $page-padding 0;
35+
min-height: calc(100vh - #{$page-padding} - #{$padding});
36+
padding: $padding $padding 0;
37+
38+
.oval {
39+
margin: 2vh auto 0;
40+
}
41+
2942
&.next {
3043
margin-bottom: 4em;
3144
}
3245
}
3346
}
3447

35-
@media only screen and (max-width : 667px) and (orientation: portrait) {
48+
@media only screen and (max-width : 768px) and (orientation: portrait) {
49+
3650
scroll-page {
3751
padding: $padding;
52+
53+
.software {
54+
font-size: 16px;
55+
}
3856
}
3957

4058
scroll-page:first-child {
41-
padding: 0;
59+
min-height: calc(100vh - #{$page-margins});
60+
padding: 0 $padding;
61+
62+
.oval {
63+
margin: 10vh auto 0;
64+
}
4265

4366
&.next {
4467
margin-bottom: 4em;

index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
<div class="oval">
88
<div class="title">{{ site.name }}</div>
99
<div class="tagline">{{ site.tagline }}</div>
10-
<div class="software">
11-
<ul>
12-
{% for pkg in site.data.software %}
13-
<li>
14-
<img class="lilbang" src="images/bang.png">
15-
{{ pkg.name }}<br>
16-
<span class="subtext">
17-
<a href="{{ pkg.source }}" target="top">{{ pkg.source_name }}</a> |
18-
<a href="{{ pkg.download }}" target="top">{{ pkg.download_name }}</a>
19-
</span>
20-
</li>
21-
{% endfor %}
22-
</ul>
23-
</div>
2410
</div>
11+
<article class="software">
12+
<ul>
13+
{% for pkg in site.data.software %}
14+
<li>
15+
<img class="lilbang" src="images/bang.png">
16+
{{ pkg.name }}<br>
17+
<span class="subtext">
18+
<a href="{{ pkg.source }}" target="top">{{ pkg.source_name }}</a> |
19+
<a href="{{ pkg.download }}" target="top">{{ pkg.download_name }}</a>
20+
</span>
21+
</li>
22+
{% endfor %}
23+
</ul>
24+
</article>
2525
<a class="arrow down bounce-5s" href="#{{ site.posts.first.slug }}"></a>
2626
</scroll-page>
2727

0 commit comments

Comments
 (0)