diff options
Diffstat (limited to 'services/blog/public/style.css')
| -rw-r--r-- | services/blog/public/style.css | 50 |
1 files changed, 45 insertions, 5 deletions
diff --git a/services/blog/public/style.css b/services/blog/public/style.css index a1f2370b..ccbcb685 100644 --- a/services/blog/public/style.css +++ b/services/blog/public/style.css @@ -50,13 +50,13 @@ body > footer { color: #fff; } -nav { +.nav { padding: 0; margin: 0.5rem 0 0; width: 100%; } -nav ul { +.nav ul { list-style-type: none; padding: 0; margin: 0; @@ -65,7 +65,7 @@ nav ul { justify-content: center; } -nav ul li { +.nav ul li { text-transform: uppercase; font-size: 1.1rem; margin: 0 1rem; @@ -73,7 +73,7 @@ nav ul li { align-items: center; } -nav ul li a { +.nav ul li a { border: none; color: #fff; } @@ -305,7 +305,7 @@ img { padding: 1rem 0; } - nav ul { + .nav ul { display: none; } } @@ -378,3 +378,43 @@ img { min-width: 0; } } + +/* Table of Contents */ +.toc { + background-color: #f5f5f5; + border: 1px solid #ddd; + border-radius: 4px; + padding: 1.5rem; + margin: 2rem 0; +} + +.toc h2 { + font-size: 1.2rem; + margin: 0 0 1rem 0; +} + +.toc ul { + list-style: none; + padding-left: 0; + margin: 0; +} + +.toc ul ul { + padding-left: 1.5rem; + margin-top: 0.25rem; +} + +.toc li { + margin: 0.25rem 0; +} + +.toc a { + color: #333; + text-decoration: none; + border-bottom: 1px dotted #999; +} + +.toc a:hover { + color: #000; + border-bottom-color: #000; +} |
