Fix dEkin/dl handling with multiple ranks
[gromacs.git] / docs / buttondown.css
blob89eaa112eb209ffb6a09f0fce2e33849a126cc72
1 /* CSS sourced for GROMACS from https://gist.github.com/ryangray/1882525
2 No usage restrictions are asserted there.
3 */
4 /*
5 Buttondown
6 A Markdown/MultiMarkdown/Pandoc HTML output CSS stylesheet
7 Author: Ryan Gray
8 Date: 15 Feb 2011
9 Revised: 21 Feb 2012
11 General style is clean, with minimal re-definition of the defaults or
12 overrides of user font settings. The body text and header styles are
13 left alone except title, author and date classes are centered. A Pandoc TOC
14 is not printed, URLs are printed after hyperlinks in parentheses.
15 Block quotes are italicized. Tables are lightly styled with lines above
16 and below the table and below the header with a boldface header. Code
17 blocks are line wrapped.
19 All elements that Pandoc and MultiMarkdown use should be listed here, even
20 if the style is empty so you can easily add styling to anything.
22 There are some elements in here for HTML5 output of Pandoc, but I have not
23 gotten around to testing that yet.
26 /* NOTES:
28 Stuff tried and failed:
30 It seems that specifying font-family:serif in Safari will always use
31 Times New Roman rather than the user's preferences setting.
33 Making the font size different or a fixed value for print in case the screen
34 font size is making the print font too big: Making font-size different for
35 print than for screen causes horizontal lines to disappear in math when using
36 MathJax under Safari.
39 /* ---- Front Matter ---- */
41 /* Pandoc header DIV. Contains .title, .author and .date. Comes before div#TOC.
42 Only appears if one of those three are in the document.
45 div#header, header
47 /* Put border on bottom. Separates it from TOC or body that comes after it. */
48 border-bottom: 1px solid #aaa;
49 margin-bottom: 0.5em;
52 .title /* Pandoc title header (h1.title) */
54 text-align: center;
57 .author, .date /* Pandoc author(s) and date headers (h2.author and h3.date) */
59 text-align: center;
62 /* Pandoc table of contents DIV when using the --toc option.
63 NOTE: this doesn't support Pandoc's --id-prefix option for #TOC and #header.
64 Probably would need to use div[id$='TOC'] and div[id$='header'] as selectors.
67 div#TOC, nav#TOC
69 /* Put border on bottom to separate it from body. */
70 border-bottom: 1px solid #aaa;
71 margin-bottom: 0.5em;
74 @media print
76 div#TOC, nav#TOC
78 /* Don't display TOC in print */
79 display: none;
83 /* ---- Headers and sections ---- */
85 h1, h2, h3, h4, h5, h6
87 font-family: "Helvetica Neue", Helvetica, "Liberation Sans", Calibri, Arial, sans-serif; /* Sans-serif headers */
89 /* font-family: "Liberation Serif", "Georgia", "Times New Roman", serif; /* Serif headers */
91 page-break-after: avoid; /* Firefox, Chrome, and Safari do not support the property value "avoid" */
94 /* Pandoc with --section-divs option */
96 div div, section section /* Nested sections */
98 margin-left: 2em; /* This will increasingly indent nested header sections */
101 p {}
103 blockquote
105 font-style: italic;
108 li /* All list items */
112 li > p /* Loosely spaced list item */
114 margin-top: 1em; /* IE: lack of space above a <li> when the item is inside a <p> */
117 ul /* Whole unordered list */
121 ul li /* Unordered list item */
125 ol /* Whole ordered list */
129 ol li /* Ordered list item */
133 hr {}
135 /* ---- Some span elements --- */
137 sub /* Subscripts. Pandoc: H~2~O */
141 sup /* Superscripts. Pandoc: The 2^nd^ try. */
145 em /* Emphasis. Markdown: *emphasis* or _emphasis_ */
149 em > em /* Emphasis within emphasis: *This is all *emphasized* except that* */
151 font-style: normal;
154 strong /* Markdown **strong** or __strong__ */
158 /* ---- Links (anchors) ---- */
160 a /* All links */
162 /* Keep links clean. On screen, they are colored; in print, they do nothing anyway. */
163 text-decoration: none;
166 @media screen
168 a:hover
170 /* On hover, we indicate a bit more that it is a link. */
171 text-decoration: underline;
175 @media print
178 /* In print, a colored link is useless, so un-style it. */
179 color: black;
180 background: transparent;
183 a[href^="http://"]:after, a[href^="https://"]:after
185 /* However, links that go somewhere else, might be useful to the reader,
186 so for http and https links, print the URL after what was the link
187 text in parens
189 content: " (" attr(href) ") ";
190 font-size: 90%;
194 /* ---- Images ---- */
198 /* Let it be inline left/right where it wants to be, but verticality make
199 it in the middle to look nicer, but opinions differ, and if in a multi-line
200 paragraph, it might not be so great.
202 vertical-align: middle;
205 div.figure /* Pandoc figure-style image */
207 /* Center the image and caption */
208 margin-left: auto;
209 margin-right: auto;
210 text-align: center;
211 font-style: italic;
214 p.caption /* Pandoc figure-style caption within div.figure */
216 /* Inherits div.figure props by default */
219 /* ---- Code blocks and spans ---- */
221 pre, code
223 background-color: #fdf7ee;
224 /* BEGIN word wrap */
225 /* Need all the following to word wrap instead of scroll box */
226 /* This will override the overflow:auto if present */
227 white-space: pre-wrap; /* css-3 */
228 white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
229 white-space: -pre-wrap; /* Opera 4-6 */
230 white-space: -o-pre-wrap; /* Opera 7 */
231 word-wrap: break-word; /* Internet Explorer 5.5+ */
232 /* END word wrap */
235 pre /* Code blocks */
237 /* Distinguish pre blocks from other text by more than the font with a background tint. */
238 padding: 0.5em; /* Since we have a background color */
239 border-radius: 5px; /* Softens it */
240 /* Give it a some definition */
241 border: 1px solid #aaa;
242 /* Set it off left and right, seems to look a bit nicer when we have a background */
243 margin-left: 0.5em;
244 margin-right: 0.5em;
247 @media screen
251 /* On screen, use an auto scroll box for long lines, unless word-wrap is enabled */
252 white-space: pre;
253 overflow: auto;
254 /* Dotted looks better on screen and solid seems to print better. */
255 border: 1px dotted #777;
259 code /* All inline code spans */
263 p > code, li > code /* Code spans in paragraphs and tight lists */
265 /* Pad a little from adjacent text */
266 padding-left: 2px;
267 padding-right: 2px;
270 li > p code /* Code span in a loose list */
272 /* We have room for some more background color above and below */
273 padding: 2px;
276 /* ---- Math ---- */
278 span.math /* Pandoc inline math default and --jsmath inline math */
280 /* Tried font-style:italic here, and it messed up MathJax rendering in some browsers. Maybe don't mess with at all. */
283 div.math /* Pandoc --jsmath display math */
287 span.LaTeX /* Pandoc --latexmathml math */
291 eq /* Pandoc --gladtex math */
295 /* ---- Tables ---- */
297 /* A clean textbook-like style with horizontal lines above and below and under
298 the header. Rows highlight on hover to help scanning the table on screen.
301 table
303 border-collapse: collapse;
304 border-spacing: 0; /* IE 6 */
306 border-bottom: 2pt solid #000;
307 border-top: 2pt solid #000; /* The caption on top will not have a bottom-border */
309 /* Center */
310 margin-left: auto;
311 margin-right: auto;
314 thead /* Entire table header */
316 border-bottom: 1pt solid #000;
317 background-color: #eee; /* Does this BG print well? */
320 tr.header /* Each header row */
324 tbody /* Entire table body */
328 /* Table body rows */
330 tr {
332 tr.odd:hover, tr.even:hover /* Use .odd and .even classes to avoid styling rows in other tables */
334 background-color: #eee;
337 /* Odd and even rows */
338 tr.odd {}
339 tr.even {}
341 td, th /* Table cells and table header cells */
343 vertical-align: top; /* Word */
344 vertical-align: baseline; /* Others */
345 padding-left: 0.5em;
346 padding-right: 0.5em;
347 padding-top: 0.2em;
348 padding-bottom: 0.2em;
351 /* Removes padding on left and right of table for a tight look. Good if thead has no background color*/
353 tr td:last-child, tr th:last-child
355 padding-right: 0;
357 tr td:first-child, tr th:first-child
359 padding-left: 0;
363 th /* Table header cells */
365 font-weight: bold;
368 tfoot /* Table footer (what appears here if caption is on top?) */
372 caption /* This is for a table caption tag, not the p.caption Pandoc uses in a div.figure */
374 caption-side: top;
375 border: none;
376 font-size: 0.9em;
377 font-style: italic;
378 text-align: center;
379 margin-bottom: 0.3em; /* Good for when on top */
380 padding-bottom: 0.2em;
383 /* ---- Definition lists ---- */
385 dl /* The whole list */
387 border-top: 2pt solid black;
388 padding-top: 0.5em;
389 border-bottom: 2pt solid black;
392 dt /* Definition term */
394 font-weight: bold;
397 dd+dt /* 2nd or greater term in the list */
399 border-top: 1pt solid black;
400 padding-top: 0.5em;
403 dd /* A definition */
405 margin-bottom: 0.5em;
408 dd+dd /* 2nd or greater definition of a term */
410 border-top: 1px solid black; /* To separate multiple definitions */
413 /* ---- Footnotes ---- */
415 a.footnote, a.footnoteRef { /* Pandoc, MultiMarkdown footnote links */
416 font-size: small;
417 vertical-align: text-top;
420 a[href^="#fnref"], a.reversefootnote /* Pandoc, MultiMarkdown, ?? footnote back links */
424 @media print
426 a[href^="#fnref"], a.reversefootnote /* Pandoc, MultiMarkdown */
428 /* Don't display these at all in print since the arrow is only something to click on */
429 display: none;
433 div.footnotes /* Pandoc footnotes div at end of the document */
437 div.footnotes li[id^="fn"] /* A footnote item within that div */
441 /* You can class stuff as "noprint" to not print.
442 Useful since you can't set this media conditional inside an HTML element's
443 style attribute (I think), and you don't want to make another stylesheet that
444 imports this one and adds a class just to do this.
447 @media print
449 .noprint
451 display:none;