diff options
Diffstat (limited to 'org')
| -rw-r--r-- | org/out_xmls.org | 16 | ||||
| -rw-r--r-- | org/out_xmls_css.org | 20 |
2 files changed, 24 insertions, 12 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org index 852fcf6..9ea8260 100644 --- a/org/out_xmls.org +++ b/org/out_xmls.org @@ -343,6 +343,18 @@ int _heading_element_level(O)(O obj, string _xml_type) { if (_lev < 1) { return 1; } return (_lev > 6) ? 6 : _lev; } +/+ ↓ the class a heading carries. The title (level A) shares <h1> with level B, + having no element of its own since bespoke <h0> is not recognized and no + longer used, so it is told apart by class: "heading title", which the + stylesheets size a step above h1, as h0 was. Shifting every level down one + instead would give the title alone h1, and would further compress the + limited html heading range (h1 - h6). ++/ +string _heading_class(O)(O obj) { + return (obj.metainfo.heading_lev_markup == 0) + ? obj.metainfo.is_a ~ " title" + : obj.metainfo.is_a; +} #+END_SRC **** anchor tags @@ -1208,7 +1220,7 @@ string heading(O,M)( ? "" : ((obj.metainfo.object_number.empty) ? "" : obj.metainfo.identifier), _heading_element_level(obj, _xml_type), - obj.metainfo.is_a, + _heading_class(obj), obj.metainfo.identifier, tags, heading_lev_anchor_tag, @@ -1224,7 +1236,7 @@ string heading(O,M)( </div>┃", _horizontal_rule, _heading_element_level(obj, _xml_type), - obj.metainfo.is_a, + _heading_class(obj), tags, heading_lev_anchor_tag, _txt, diff --git a/org/out_xmls_css.org b/org/out_xmls_css.org index ae361c0..4a7eccf 100644 --- a/org/out_xmls_css.org +++ b/org/out_xmls_css.org @@ -382,7 +382,7 @@ nav#toc ol { padding-left : 0em; text-indent : 0em; } -p, h0, h1, h2, h3, h4, h5, h6, h7, ul, li { +p, h1, h2, h3, h4, h5, h6, h7, ul, li { display : block; font-family : verdana, arial, georgia, tahoma, sans-serif, helvetica, times, roman; margin-left : 5%%; @@ -704,7 +704,7 @@ ul { } #+NAME: css_light_shared_headings #+BEGIN_SRC css -h0, h1, h2, h3, h4, h5, h6, h7 { +h1, h2, h3, h4, h5, h6, h7 { font-weight : bold; line-height : 120%%; text-align : left; @@ -715,7 +715,7 @@ h4.norm, h5.norm, h6.norm, h7.norm { margin-top : 10px; margin-bottom : 0px; } -h0 { font-size : 1.85rem; } +h1.title { font-size : 1.85rem; } h1 { font-size : 1.8rem; } h2 { font-size : 1.75rem; } h3 { font-size : 1.7rem; } @@ -723,7 +723,7 @@ h4 { font-size : 1.65rem; } h5 { font-size : 1.6rem; } h6 { font-size : 1.55rem; } h7 { font-size : 1.5rem; } -h0, h1, h2, h3, h4, h5, h6, h7 { +h1, h2, h3, h4, h5, h6, h7 { text-shadow : .2em .2em .3em #808080; } h1.i { margin-left : 2em; } @@ -740,7 +740,7 @@ h9.i { margin-left : 10em; } margin-top : 6px; margin-bottom : 6px; } -h0.toc { +h1.title.toc { margin-left : 1em; font-size : 1.85rem; line-height : 150%%; @@ -1341,7 +1341,7 @@ nav#toc ol { padding-left : 0em; text-indent : 0em; } -p, h0, h1, h2, h3, h4, h5, h6, h7, ul, li { +p, h1, h2, h3, h4, h5, h6, h7, ul, li { display : block; font-family : verdana, arial, georgia, tahoma, sans-serif, helvetica, times, roman; margin-left : 5%%; @@ -1653,7 +1653,7 @@ ul { } #+NAME: css_dark_shared_headings #+BEGIN_SRC css -h0, h1, h2, h3, h4, h5, h6, h7 { +h1, h2, h3, h4, h5, h6, h7 { font-weight : bold; line-height : 120%%; text-align : left; @@ -1664,7 +1664,7 @@ h4.norm, h5.norm, h6.norm, h7.norm { margin-top : 10px; margin-bottom : 0px; } -h0 { font-size : 1.9rem; } +h1.title { font-size : 1.9rem; } h1 { font-size : 1.8rem; } h2 { font-size : 1.75rem; } h3 { font-size : 1.7rem; } @@ -1672,7 +1672,7 @@ h4 { font-size : 1.65rem; } h5 { font-size : 1.6rem; } h6 { font-size : 1.55rem; } h7 { font-size : 1.5rem; } -h0, h1, h2, h3, h4, h5, h6, h7 { +h1, h2, h3, h4, h5, h6, h7 { text-shadow : .2em .2em .3em #999999; } h1.i { margin-left : 2em; } @@ -1689,7 +1689,7 @@ h9.i { margin-left : 10em; } margin-top : 6px; margin-bottom : 6px; } -h0.toc { +h1.title.toc { margin-left : 1em; font-size : 1.8rem; line-height : 150%%; |
