1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

doc/default.css: use ffmpeg.org website CSS

The attribute container of the top-level div is changed from "class" to
"id" to match the website CSS.

Improve consistency between website docs and local documentation style.
This commit is contained in:
Stefano Sabatini 2012-12-21 00:56:20 +01:00
parent 042c2a1af8
commit e64a7f2c78
2 changed files with 132 additions and 97 deletions

View File

@ -1,114 +1,149 @@
.container {
margin-right: auto;
margin-left: auto;
width: 1070px;
}
body {
font-size: 14px;
line-height: 20px;
color: #666666;
background-color: #ffffff;
}
a { a {
color: #0088cc; color: #2D6198;
text-decoration: none;
}
a:hover {
color: #005580;
text-decoration: underline;
}
p {
margin: 0 0 10px;
}
h2,
h3,
h4 {
margin: 10px 0;
font-family: inherit;
font-weight: bold;
line-height: 1;
border-color: #D6E9C6;
color: #468847;
border-style: solid;
border-width: 0 0 1px;
padding-left: 0.5em;
} }
h1 a, a:visited {
h2 a, color: #884488;
h3 a,
h4 a {
color: inherit;
} }
h1 {
font-size: 30px; #banner {
line-height: 40px; background-color: white;
position: relative;
text-align: center;
} }
h2 {
font-size: 20px; #banner img {
line-height: 40px; padding-bottom: 1px;
padding-top: 5px;
} }
h3 {
font-size: 18px; #body {
line-height: 40px; margin-left: 1em;
margin-right: 1em;
} }
code,
pre { body {
padding: 0 3px 2px; background-color: #313131;
font-family: monospace; margin: 0;
font-size: 12px; text-align: justify;
color: #333333;
border-radius: 3px;
} }
pre {
display: block; .center {
padding: 9.5px; margin-left: auto;
margin: 0 0 10px; margin-right: auto;
font-size: 13px; text-align: center;
line-height: 20px; }
word-break: break-all;
word-wrap: break-word; #container {
white-space: pre; background-color: white;
white-space: pre-wrap; color: #202020;
background-color: #f5f5f5; margin-left: 1em;
border: 1px solid #ccc; margin-right: 1em;
}
#footer {
text-align: center;
}
h1, h2, h3 {
padding-left: 0.4em;
border-radius: 4px; border-radius: 4px;
padding-bottom: 0.2em;
padding-top: 0.2em;
border: 1px solid #6A996A;
} }
code { h1 {
padding: 2px 4px; background-color: #7BB37B;
color: #d14; color: #151515;
background-color: #f7f7f9; font-size: 1.2em;
border: 1px solid #e1e1e8; padding-bottom: 0.3em;
padding-top: 0.3em;
} }
pre code {
padding: 0; h2 {
color: inherit; color: #313131;
background-color: transparent; font-size: 0.9em;
background-color: #ABE3AB;
}
h3 {
color: #313131;
font-size: 0.8em;
margin-bottom: -8px;
background-color: #BBF3BB;
}
img {
border: 0; border: 0;
} }
.alert {
padding: 8px 35px 8px 14px; #navbar {
margin-bottom: 20px; background-color: #738073;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); border-bottom: 1px solid #5C665C;
background-color: #fcf8e3; border-top: 1px solid #5C665C;
border: 1px solid #fbeed5; margin-top: 12px;
border-radius: 4px; padding: 0.3em;
color: #c09853; position: relative;
text-align: center;
} }
.alert-danger, #navbar a, #navbar_secondary a {
.alert-error { color: white;
background-color: #f2dede; padding: 0.3em;
border-color: #eed3d7; text-decoration: none;
color: #b94a48;
}
.alert-info {
background-color: #d9edf7;
border-color: #bce8f1;
color: #3a87ad;
} }
ul.toc { #navbar a:hover, #navbar_secondary a:hover {
list-style-type: none; background-color: #313131;
color: white;
text-decoration: none;
}
#navbar_secondary {
background-color: #738073;
border-bottom: 1px solid #5C665C;
border-left: 1px solid #5C665C;
border-right: 1px solid #5C665C;
padding: 0.3em;
position: relative;
text-align: center;
}
p {
margin-left: 1em;
margin-right: 1em;
}
pre {
margin-left: 3em;
margin-right: 3em;
padding: 0.3em;
border: 1px solid #bbb;
background-color: #f7f7f7;
}
dl dt {
font-weight: bold;
}
#proj_desc {
font-size: 1.2em;
}
#repos {
margin-left: 1em;
margin-right: 1em;
border-collapse: collapse;
border: solid 1px #6A996A;
}
#repos th {
background-color: #7BB37B;
border: solid 1px #6A996A;
}
#repos td {
padding: 0.2em;
border: solid 1px #6A996A;
} }

View File

@ -16,7 +16,7 @@ my $TEMPLATE_HEADER = $ENV{"FFMPEG_HEADER"} || <<EOT;
<link rel="icon" href="favicon.png" type="image/png" /> <link rel="icon" href="favicon.png" type="image/png" />
</head> </head>
<body> <body>
<div class="container"> <div id="container">
EOT EOT
$PRE_BODY_CLOSE = '</div></div>'; $PRE_BODY_CLOSE = '</div></div>';