1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-04 12:42:24 +03:00
postgres/doc/src/sgml/stylesheet.css
Peter Eisentraut e446cde16d Better scaling of images in HTML output
Turn on the previously disabled automatic scaling of images in HTML
output.  To avoid images looking too large on nowadays-normal screens,
restrict the width to 75% on such screens.

Some work is still necessary because SVG images without a viewBox
still won't scale, but that will a separate patch.

Discussion: https://www.postgresql.org/message-id/flat/6d2442d1-84a2-36ef-e014-b6d1ece8a139%40postgresql.org
2019-04-16 14:27:56 +02:00

112 lines
1.8 KiB
CSS

/* doc/src/sgml/stylesheet.css */
/* color scheme similar to www.postgresql.org */
body {
color: #000000;
background: #FFFFFF;
font-family: verdana, sans-serif;
}
a:link { color:#0066A2; }
a:visited { color:#004E66; }
a:active { color:#0066A2; }
a:hover { color:#000000; }
h1 {
font-size: 1.4em;
font-weight: bold;
margin-top: 0em;
margin-bottom: 0em;
color: #EC5800;
}
h2 {
font-size: 1.2em;
margin: 1.2em 0em 1.2em 0em;
font-weight: bold;
color: #666;
}
.titlepage h2.title,
.refnamediv h2 {
color: #EC5800;
}
h3 {
font-size: 1.1em;
margin: 1.2em 0em 1.2em 0em;
font-weight: bold;
color: #666;
}
h4 {
font-size: 0.95em;
margin: 1.2em 0em 1.2em 0em;
font-weight: normal;
color: #666;
}
h5 {
font-size: 0.9em;
margin: 1.2em 0em 1.2em 0em;
font-weight: normal;
}
h6 {
font-size: 0.85em;
margin: 1.2em 0em 1.2em 0em;
font-weight: normal;
}
/* center some titles */
.book .title, .book .corpauthor, .book .copyright {
text-align: center;
}
/* decoration for formal examples */
div.example {
padding-left: 15px;
border-style: solid;
border-width: 0px;
border-left-width: 2px;
border-color: black;
margin: 0.5ex;
}
/* Put these here instead of inside the HTML (see unsetting of
admon.style in XSL) so that the web site stylesheet can set its own
style. */
.tip,
.note,
.important,
.caution,
.warning {
margin-left: 0.5in;
margin-right: 0.5in;
}
/* miscellaneous */
pre.literallayout, .screen, .synopsis, .programlisting {
margin-left: 4ex;
}
.comment { color: red; }
var { font-family: monospace; font-style: italic; }
/* Konqueror's standard style for ACRONYM is italic. */
acronym { font-style: inherit; }
.option { white-space: nowrap; }
/* make images not too wide on larger screens */
@media (min-width: 800px) {
.mediaobject {
width: 75%;
}
}