History

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 <h2> to <h4>.

Timothy Gu committed 13 years ago

Commit df08fd51 parent 885739f2 files · +23 −6Browse files

Unified · Split

2 files
  1. doc/default.css +21 −5
  2. doc/t2h.init +2 −1
doc/default.css+21−5
@@ -1,3 +1,7 @@
1a.summary-letter {
2 text-decoration: none;
3}
4
1a {5a {
2 color: #2D6198;6 color: #2D6198;
3}7}
@@ -45,11 +49,16 @@ body { · 41 unmodified lines
45 text-align: center;49 text-align: center;
46}50}
47 51
48h1, h2, h3 {52h1 a, h2 a, h3 a, h4 a {
53 text-decoration: inherit;
54 color: inherit;
55}
56
57h1, h2, h3, h4 {
49 padding-left: 0.4em;58 padding-left: 0.4em;
50 border-radius: 4px;59 border-radius: 4px;
51 padding-bottom: 0.2em;60 padding-bottom: 0.25em;
52 padding-top: 0.2em;61 padding-top: 0.25em;
53 border: 1px solid #6A996A;62 border: 1px solid #6A996A;
54}63}
55 64
@@ -63,15 +72,22 @@ h1 { · 7 unmodified lines
63 72
64h2 {73h2 {
65 color: #313131;74 color: #313131;
66 font-size: 0.9em;75 font-size: 1.0em;
67 background-color: #ABE3AB;76 background-color: #ABE3AB;
68}77}
69 78
70h3 {79h3 {
80 color: #313131;
81 font-size: 0.9em;
82 margin-bottom: -6px;
83 background-color: #BBF3BB;
84}
85
86h4 {
71 color: #313131;87 color: #313131;
72 font-size: 0.8em;88 font-size: 0.8em;
73 margin-bottom: -8px;89 margin-bottom: -8px;
74 background-color: #BBF3BB;90 background-color: #D1FDD1;
75}91}
76 92
77img {93img {
doc/t2h.init+2−1
@@ -17,6 +17,7 @@ my $TEMPLATE_HEADER = $ENV{"FFMPEG_HEADER"} || <<EOT; · 16 unmodified lines
17</head>17</head>
18<body>18<body>
19<div id="container">19<div id="container">
20<div id="body">
20EOT21EOT
21 22
22$PRE_BODY_CLOSE = '</div></div>';23$PRE_BODY_CLOSE = '</div></div>';
@@ -32,7 +33,7 @@ sub FFmpeg_print_page_foot($$) · 9 unmodified lines
32 T2H_DEFAULT_program_string() : program_string();33 T2H_DEFAULT_program_string() : program_string();
33 print $fh '<footer class="footer pagination-right">' . "\n";34 print $fh '<footer class="footer pagination-right">' . "\n";
34 print $fh '<span class="label label-info">' . $program_string;35 print $fh '<span class="label label-info">' . $program_string;
35 print $fh "</span></footer></div>\n";36 print $fh "</span></footer></div></div></body>\n";
36}37}
37 38
38$float = \&FFmpeg_float;39$float = \&FFmpeg_float;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t