Skip to content

Commit 0e7b227

Browse files
authored
Merge pull request #1 from jbcm627/master
Some page styling tweaks: links inside li tags, improve pre behavior …
2 parents fee567f + b29aa70 commit 0e7b227

File tree

3 files changed

+49
-17
lines changed

3 files changed

+49
-17
lines changed

_includes/navbar.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
<ul>
33
{% for p in site.navbar_pages %}
44
{% if page.url == p.last %}
5-
<a href="{{p.last}}"> <li class="active_page">{{p.first}}</li> </a>
5+
<li class="active_page">
6+
<a href="{{p.last}}">{{p.first}}</a>
7+
</li>
68
{% else %}
7-
<a href="{{p.last}}"> <li>{{p.first}}</li> </a>
9+
<li>
10+
<a href="{{p.last}}">{{p.first}}</a>
11+
</li>
812
{% endif %}
913
{% endfor %}
1014
</ul>

_layouts/default.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
<!-- HEADER -->
1818
<div id="header_wrap" class="outer">
1919
<header class="inner">
20+
<div id="title">
21+
<h1 id="project_title">{{ site.title | default: site.github.repository_name }} </h1>
22+
<h2 id="project_tagline">{{ site.description | default: site.github.project_tagline }}</h2>
23+
</div>
2024
{% include navbar.html %}
21-
<h1 id="project_title">{{ site.title | default: site.github.repository_name }} </h1>
22-
<h2 id="project_tagline">{{ site.description | default: site.github.project_tagline }}</h2>
2325
</header>
2426

2527
{% if site.google_analytics and jekyll.environment == 'production' %}

assets/css/style.scss

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
max-width: 1024px;
88
}
99

10+
#header_wrap {
11+
overflow: hidden;
12+
}
13+
14+
#title {
15+
float: left;
16+
}
17+
1018
nav {
1119
float: right;
1220

@@ -17,27 +25,32 @@ nav {
1725
}
1826

1927
li {
20-
display: inline;
28+
display: inline-block;
2129
padding: 8px;
22-
margin: 2px;
30+
margin: 0 2px 2px;
2331
background: #fff;
2432

33+
height: 24px;
34+
line-height: 24px;
35+
2536
-moz-border-radius: 4px;
2637
-webkit-border-radius: 4px;
2738
-khtml-border-radius: 4px;
2839
border-radius: 4px;
40+
41+
a {
42+
font-size: 22px;
43+
line-height: 24px;
44+
color: black;
45+
}
46+
a:hover {
47+
text-decoration: none;
48+
}
49+
2950
}
3051
li:hover {
3152
background-color: grey;
3253
}
33-
34-
a {
35-
font-size: 22px;
36-
color: black;
37-
}
38-
a:hover {
39-
text-decoration: none;
40-
}
4154
}
4255

4356

@@ -57,9 +70,22 @@ nav {
5770
}
5871

5972
nav {
60-
a {
61-
font-size: 14px;
62-
color: black;
73+
li {
74+
height: 16px;
75+
line-height: 16px;
76+
77+
a {
78+
font-size: 14px;
79+
line-height: 16px;
80+
color: black;
81+
}
6382
}
6483
}
6584
}
85+
86+
/* adjust pre's so page doesn't pick up a horizontal scroll */
87+
#main_content pre {
88+
width: 98%;
89+
padding-right: 1%;
90+
padding-left: 1%;
91+
}

0 commit comments

Comments
 (0)