ox-html.el: Update the default CSS

* ox-html.el (org-html-style-default): Cosmetic changes.
(org-html-postamble, org-html-preamble)
(org-html-preamble-format): Update docstring.
This commit is contained in:
Bastien Guerry 2013-03-05 15:28:43 +01:00
parent 54ffb0beff
commit 085e86dd53
1 changed files with 51 additions and 42 deletions

View File

@ -195,28 +195,31 @@ for the JavaScript code in this tag.
(defconst org-html-style-default (defconst org-html-style-default
"<style type=\"text/css\"> "<style type=\"text/css\">
<!--/*--><![CDATA[/*><!--*/ <!--/*--><![CDATA[/*><!--*/
html { font-family: Times, serif; font-size: 12pt; } html { font-size: 12pt; }
.title { text-align: center; } .title { text-align:center; }
.todo { color: red; } .todo { font-family:monospace; color:red; }
.done { color: green; } .done { color:green; }
.tag { background-color: #add8e6; font-weight:normal } .tag { background-color: #eee; font-family:monospace;
.target { } padding:2px; font-size:80%; font-weight:normal; }
.timestamp { color: #bebebe; } .timestamp { color:#bebebe; }
.timestamp-kwd { color: #5f9ea0; } .timestamp-kwd { color:#5f9ea0; }
.right {margin-left:auto; margin-right:0px; text-align:right;} .right { margin-left:auto; margin-right:0px; text-align:right; }
.left {margin-left:0px; margin-right:auto; text-align:left;} .left { margin-left:0px; margin-right:auto; text-align:left; }
.center {margin-left:auto; margin-right:auto; text-align:center;} .center { margin-left:auto; margin-right:auto; text-align:center; }
p.verse { margin-left: 3% } #content { margin: 0 0 0 0; }
#postamble p, a { font-size: 90%; margin:.2em; }
p.verse { margin-left: 3%; }
pre { pre {
border: 1pt solid #AEBDCC; border: 1px solid #AEBDCC;
background-color: #F3F5F7; background-color: #F3F5F7;
padding: 5pt; box-shadow: 1px 1px 1px #ccc;
font-family: courier, monospace; padding: 8pt;
font-size: 90%; font-family: monospace;
overflow:auto; font-size: 90%;
} overflow:auto;
table { border-collapse: collapse; } }
td, th { vertical-align: top; } table { border-collapse:collapse; }
td, th { vertical-align:top; }
th.right { text-align:center; } th.right { text-align:center; }
th.left { text-align:center; } th.left { text-align:center; }
th.center { text-align:center; } th.center { text-align:center; }
@ -224,22 +227,22 @@ for the JavaScript code in this tag.
td.left { text-align:left; } td.left { text-align:left; }
td.center { text-align:center; } td.center { text-align:center; }
dt { font-weight: bold; } dt { font-weight: bold; }
div.figure { padding: 0.5em; } div.figure { padding:1em; }
div.figure p { text-align: center; } div.figure p { text-align:center; }
div.inlinetask { div.inlinetask {
padding:10px; padding:10px;
border:2px solid gray; border:2px solid gray;
margin:10px; margin:10px;
background: #ffffcc; background: #ffffcc;
} }
textarea { overflow-x: auto; } textarea { overflow-x:auto; }
.linenr { font-size:smaller } .linenr { font-size:smaller }
.code-highlighted {background-color:#ffff00;} .code-highlighted { background-color:#ffff00; }
.org-info-js_info-navigation { border-style:none; } .org-info-js_info-navigation { border-style:none; }
#org-info-js_console-label { font-size:10px; font-weight:bold; #org-info-js_console-label
white-space:nowrap; } { font-size:10px; font-weight:bold; white-space:nowrap; }
.org-info-js_search-highlight {background-color:#ffff00; color:#000000; .org-info-js_search-highlight
font-weight:bold; } { background-color:#ffff00; color:#000000; font-weight:bold; }
/*]]>*/--> /*]]>*/-->
</style>" </style>"
"The default style specification for exported HTML files. "The default style specification for exported HTML files.
@ -926,20 +929,21 @@ You can also customize this for each buffer, using something like
(defcustom org-html-postamble 'auto (defcustom org-html-postamble 'auto
"Non-nil means insert a postamble in HTML export. "Non-nil means insert a postamble in HTML export.
When t, insert a string as defined by the formatting string in When set to 'auto, check against the
`org-html-postamble-format'. When set to a string, this `org-export-with-author/email/creator/date' variables to set the
string overrides `org-html-postamble-format'. When set to content of the postamble. When set to a string, use this string
'auto, discard `org-html-postamble-format' and honor as the postamble. When t, insert a string as defined by the
`org-export-author/email/creator-info' variables. When set to a formatting string in `org-html-postamble-format'.
function, apply this function and insert the returned string.
The function takes the property list of export options as its When set to a function, apply this function and insert the
only argument. returned string. The function takes the property list of export
options as its only argument.
Setting :html-postamble in publishing projects will take Setting :html-postamble in publishing projects will take
precedence over this variable." precedence over this variable."
:group 'org-export-html :group 'org-export-html
:type '(choice (const :tag "No postamble" nil) :type '(choice (const :tag "No postamble" nil)
(const :tag "Auto preamble" 'auto) (const :tag "Auto postamble" 'auto)
(const :tag "Default formatting string" t) (const :tag "Default formatting string" t)
(string :tag "Custom formatting string") (string :tag "Custom formatting string")
(function :tag "Function (must return a string)"))) (function :tag "Function (must return a string)")))
@ -989,9 +993,11 @@ like that: \"%%\"."
(defcustom org-html-preamble t (defcustom org-html-preamble t
"Non-nil means insert a preamble in HTML export. "Non-nil means insert a preamble in HTML export.
When t, insert a string as defined by one of the formatting When t, insert a string as defined by the formatting string in
strings in `org-html-preamble-format'. When set to a `org-html-preamble-format'. When set to a string, use this
string, this string overrides `org-html-preamble-format'. formatting string instead (see `org-html-postamble-format' for an
example of such a formatting string).
When set to a function, apply this function and insert the When set to a function, apply this function and insert the
returned string. The function takes the property list of export returned string. The function takes the property list of export
options as its only argument. options as its only argument.
@ -1019,7 +1025,10 @@ preamble itself. This format string can contain these elements:
%d stands for the date. %d stands for the date.
If you need to use a \"%\" character, you need to escape it If you need to use a \"%\" character, you need to escape it
like that: \"%%\"." like that: \"%%\".
See the default value of `org-html-postamble-format' for an
example."
:group 'org-export-html :group 'org-export-html
:type '(alist :key-type (string :tag "Language") :type '(alist :key-type (string :tag "Language")
:value-type (string :tag "Format string"))) :value-type (string :tag "Format string")))