Skip to content

Commit

Permalink
Update styling to address issues in cobalt-org#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 1d5038b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 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
37 changes: 32 additions & 5 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 @@ -200,11 +205,14 @@ section.docs aside ul li a:focus {
}

section.docs aside {
flex: 0 1 30%;
order: 1;
flex: 1;
flex-basis: auto;
}

section.docs main {
flex: 0 1 70%;
order: 1;
flex: 5;
}
}

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

@media (min-width: 41em) {
@media (min-width: 45em) {
.columns {
display: flex;
}
Expand Down Expand Up @@ -333,3 +341,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 1d5038b

Please sign in to comment.