From df08fd5e1efa9755c2dbd180aec88355aeed2280 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Mon, 23 Sep 2013 20:40:45 -0700 Subject: [PATCH] doc/default.css + doc/t2h.init: New styles The main motive of this commit is to make the offline copy of the HTML doc as pretty as the online (ffmpeg.org) one. This also introduced new styles for

to

. Signed-off-by: Timothy Gu Signed-off-by: Michael Niedermayer --- doc/default.css | 26 +++++++++++++++++++++----- doc/t2h.init | 3 ++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/doc/default.css b/doc/default.css index 77a3514ed7..e6c6cfec00 100644 --- a/doc/default.css +++ b/doc/default.css @@ -1,3 +1,7 @@ +a.summary-letter { + text-decoration: none; +} + a { color: #2D6198; } @@ -45,11 +49,16 @@ body { text-align: center; } -h1, h2, h3 { +h1 a, h2 a, h3 a, h4 a { + text-decoration: inherit; + color: inherit; +} + +h1, h2, h3, h4 { padding-left: 0.4em; border-radius: 4px; - padding-bottom: 0.2em; - padding-top: 0.2em; + padding-bottom: 0.25em; + padding-top: 0.25em; border: 1px solid #6A996A; } @@ -63,15 +72,22 @@ h1 { h2 { color: #313131; - font-size: 0.9em; + font-size: 1.0em; background-color: #ABE3AB; } h3 { + color: #313131; + font-size: 0.9em; + margin-bottom: -6px; + background-color: #BBF3BB; +} + +h4 { color: #313131; font-size: 0.8em; margin-bottom: -8px; - background-color: #BBF3BB; + background-color: #D1FDD1; } img { diff --git a/doc/t2h.init b/doc/t2h.init index 0f08fd9847..e7760f4527 100644 --- a/doc/t2h.init +++ b/doc/t2h.init @@ -17,6 +17,7 @@ my $TEMPLATE_HEADER = $ENV{"FFMPEG_HEADER"} || <
+
EOT $PRE_BODY_CLOSE = '
'; @@ -32,7 +33,7 @@ sub FFmpeg_print_page_foot($$) T2H_DEFAULT_program_string() : program_string(); print $fh '\n"; + print $fh "\n"; } $float = \&FFmpeg_float;