Skip to content

Commit

Permalink
Update styling to address issues in #20
Browse files Browse the repository at this point in the history
- Add some table styling
- Make columns slightly wider
- Reduce size of <hr> in the sidebar
  • Loading branch information
gchp committed Feb 13, 2018
1 parent c8bef47 commit 5ef4d9a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _layouts/docs.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<li><a {% if page.data.route == "directory"%}class="active"{%endif%} href="/docs/directory.html">Directory Structure</a></li>
<li><a {% if page.data.route == "config"%}class="active"{%endif%} href="/docs/config.html">Configuration</a></li>
</ul>
<hr>
<hr align="left">
<p>Content</p>
<ul>
<li><a {% if page.data.route == "pages"%}class="active"{%endif%} href="/docs/pages.html">Pages</a></li>
Expand All @@ -30,7 +30,7 @@
<li><a {% if page.data.route == "assets"%}class="active"{%endif%} href="/docs/assets.html">Assets</a></li>
<li><a {% if page.data.route == "data"%}class="active"{%endif%} href="/docs/data.html">Data files</a></li>
</ul>
<hr>
<hr align="left">
<p>Misc</p>
<ul>
<li><a {% if page.data.route == "rss"%}class="active"{%endif%} href="/docs/rss.html">RSS</a></li>
Expand Down
30 changes: 27 additions & 3 deletions public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

--font-stack: helvetica, arial, sans-serif;

--breakpoint: 41em;
--breakpoint: 45em;
}

html {
Expand All @@ -55,6 +55,11 @@ a {
color: var(--orange);
}

hr {
color: #ccc;
width: 75%;
}

header {
text-align: center;
padding-top: 1em;
Expand Down Expand Up @@ -112,7 +117,7 @@ header nav .button > span {
@media (min-width: 41em) {
header .inner {
display: flex;
justtify-content: center;
justify-content: center;
}

header .primary {
Expand Down Expand Up @@ -304,7 +309,7 @@ pre code {
background: var(--med-grey);
}

@media (min-width: 41em) {
@media (min-width: 45em) {
.columns {
display: flex;
}
Expand Down Expand Up @@ -333,3 +338,22 @@ footer p {
margin: 0;
padding: 1em 0;
}

table {
border-collapse: collapse;
}

table thead {
background-color: var(--blue);
color: var(--white);
}

table thead th {
border: 1px solid var(--dark-blue);
padding: 0.5em;
}

table tbody td {
border: 1px solid #ccc;
padding: 0.5em;
}

0 comments on commit 5ef4d9a

Please sign in to comment.