Skip to content

Commit f9a5093

Browse files
committed
Mobile styling for GitHub pages site.
1 parent 9ddcdbf commit f9a5093

File tree

2 files changed

+40
-10
lines changed

2 files changed

+40
-10
lines changed

gh-pages/_includes/navigation.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<nav class="main-nav">
22
<div class="block">
3+
<ul>
34
{% for link in site.links %}
4-
<a target="{% if link.external %}_blank{% else %}_top{% endif %}"
5-
class="main cta"
6-
href="{% unless link.external %}{{ site.url }}{% endunless %}{{ link.url }}">
7-
{{ link.name }}
8-
</a>
5+
<li>
6+
<a target="{% if link.external %}_blank{% else %}_top{% endif %}"
7+
class="main cta"
8+
href="{% unless link.external %}{{ site.url }}{% endunless %}{{ link.url }}">
9+
{{ link.name }}
10+
</a>
11+
</li>
912
{% endfor %}
13+
</ul>
1014
</div>
1115
</nav>

gh-pages/assets/css/style.css

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ h2 {
4646

4747
.profile #header {
4848
border-bottom: 1px solid #eee;
49-
margin-bottom: 40px;
50-
padding-bottom: 40px;
49+
margin-bottom: 28px;
50+
padding-bottom: 32px;
5151
text-align: center;
5252
position: relative;
5353
}
@@ -104,7 +104,7 @@ nav.main-nav a {
104104
nav.main-nav a.cta {
105105
background: #5badf0;
106106
color: #fff;
107-
margin-left: 12px;
107+
/*margin-left: 12px;*/
108108
}
109109

110110
#wrapper {
@@ -229,9 +229,16 @@ em, i { font-style: italic; }
229229

230230
.block {
231231
text-align: center;
232+
padding-top: 8px;
233+
padding-bottom: 8px;
234+
}
235+
236+
.block ul li {
237+
list-style: none;
238+
padding: 12px 12px;
232239
}
233240

234-
.block a .main {
241+
.block ul li a .main {
235242
padding: 2px 2px;
236243
margin-right: 12px;
237244
margin-bottom: 6px;
@@ -635,4 +642,23 @@ h2.month {
635642
.post h2.headline { font-size: 13px; }
636643
.post h1 { font-size:24px; }
637644
.post h2 { font-size:20px; }
638-
}
645+
646+
.block ul li a.cta {
647+
display: block;
648+
width: 100%;
649+
}
650+
nav.main-nav a{
651+
font-size: 18px;
652+
padding-top: 14px;
653+
padding-bottom: 14px;
654+
}
655+
.profile #wrapper {
656+
padding: 60px 40px 0px;
657+
}
658+
}
659+
660+
@media screen and (min-width:540px) {
661+
.block ul li {
662+
display: inline;
663+
}
664+
}

0 commit comments

Comments
 (0)