Skip to content

Commit

Permalink
css toc
Browse files Browse the repository at this point in the history
  • Loading branch information
rphunt committed Feb 1, 2020
1 parent 1e3dad1 commit fc7f3d4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 40 deletions.
31 changes: 11 additions & 20 deletions dist/css/main.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
:root {
--clrlink: #336611;
--clrh2: ;
--clrh2: #336611;
--clrh2bg: #ccffbb;
--clrh3: ;
--clrh3: #000000;
--clrh3bg: #f0f0f0;
--clrcode: #333333;
--clrcodebg: #f0f0f0;
--clrsidebarbg: #558833;
--clrsidebartext: #ffffff;
--clrsidebartexthover: #0000000;
--clrsidebartexthover: #225500;
}

/* TODO: test this */
Expand Down Expand Up @@ -60,19 +60,17 @@ h1 {
font-size: 2em;
}

h1 a {
text-decoration: none;
}

h2 {
padding: .3em;
color: var(--clrh2);
background-color: var(--clrh2bg);
font-size: 1.7em;
}

h3 {
padding: .3em;
background-color: var(--clrh3bg);
color: var(--clrh3);
}

code, pre {
Expand All @@ -99,36 +97,29 @@ code, pre {
.tableofcontents a {
text-decoration: none;
color: var(--clrsidebartext);
display: block;
margin-bottom: .5em;
}

.tableofcontents a:hover {
color: var(--clrsidebartexthover);
}

.tableofcontents ul li {
margin-bottom: 1em;
list-style: none;
}

.tableofcontents ul li ul {
margin-bottom: 1em;
}

.tableofcontents ul li ul li {
margin-bottom: .5em;
}

.tableofcontents .pagename > a {
font-size: 1.2em;
}

.references {

}

.references ul {
list-style: none;
}

.references ul li {
padding: 0;
margin: 0;
}

.content {
Expand Down
31 changes: 11 additions & 20 deletions src/css/main.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
:root {
--clrlink: #336611;
--clrh2: ;
--clrh2: #336611;
--clrh2bg: #ccffbb;
--clrh3: ;
--clrh3: #000000;
--clrh3bg: #f0f0f0;
--clrcode: #333333;
--clrcodebg: #f0f0f0;
--clrsidebarbg: #558833;
--clrsidebartext: #ffffff;
--clrsidebartexthover: #0000000;
--clrsidebartexthover: #225500;
}

/* TODO: test this */
Expand Down Expand Up @@ -60,19 +60,17 @@ h1 {
font-size: 2em;
}

h1 a {
text-decoration: none;
}

h2 {
padding: .3em;
color: var(--clrh2);
background-color: var(--clrh2bg);
font-size: 1.7em;
}

h3 {
padding: .3em;
background-color: var(--clrh3bg);
color: var(--clrh3);
}

code, pre {
Expand All @@ -99,36 +97,29 @@ code, pre {
.tableofcontents a {
text-decoration: none;
color: var(--clrsidebartext);
display: block;
margin-bottom: .5em;
}

.tableofcontents a:hover {
color: var(--clrsidebartexthover);
}

.tableofcontents ul li {
margin-bottom: 1em;
list-style: none;
}

.tableofcontents ul li ul {
margin-bottom: 1em;
}

.tableofcontents ul li ul li {
margin-bottom: .5em;
}

.tableofcontents .pagename > a {
font-size: 1.2em;
}

.references {

}

.references ul {
list-style: none;
}

.references ul li {
padding: 0;
margin: 0;
}

.content {
Expand Down

0 comments on commit fc7f3d4

Please sign in to comment.