From 4e3e9845187e6aae6746e491831848a6c16e68e3 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Sat, 24 Jul 2010 00:42:04 +0200 Subject: added style for h2, h3 and h4 --- fugitive.css | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/fugitive.css b/fugitive.css index 826fe97..d26a304 100644 --- a/fugitive.css +++ b/fugitive.css @@ -56,6 +56,8 @@ article { text-align: left; counter-reset: code; counter-reset: figure; + counter-reset: section; + counter-reset: subsection; } article header { display: block; @@ -66,7 +68,7 @@ article header { } article header h1 { margin: 0; - padding: 0 0 0.2em 0; + padding: 0 0 0.1em 0; font-size: 1.5em; font-weight: bold; } @@ -85,8 +87,35 @@ article > div { line-height: 1.5em; font-size: 1.1em; } +article > div a { + color: #08f; + text-decoration: none; +} article > div a:hover { text-decoration: underline; } article > div a:visited { color: #048; } +article > div h2 { + margin: 1em 0 0.5em 0; + padding: 0; + font-size: 1.4em; + font-weight: normal; + counter-increment: section; +} +article > div h2:before { + display: inline; + content: counter(section) ". "; + counter-reset: subsection; +} +article > div h3 { + margin: 1em 0 0.5em 0; + padding: 0; + font-size: 1.2em; + font-weight: bold; +} +article > div h3:before { + display: inline; + content: counter(section) "." counter(subsection) ". "; + counter-increment: subsection; +} article > div p:first-child:first-letter { font-size: 1.5em; font-weight: bold; @@ -177,10 +206,6 @@ article > div pre .type { article > div pre .variable-name { color: #0b0; } -article > div a { - color: #08f; - text-decoration: none; -} article > div figure { display: block; margin: 1em 0; -- cgit v1.2.3