# HG changeset patch # User Patrick PIERRE # Date 1324419641 -3600 # Node ID 14211f9b064a6da3b559a2f3e14231d025df49d1 # Parent 49750b96058f7536a70802868aa62012c5757729 Gestion des blocs principaux diff -r 49750b96058f -r 14211f9b064a Xxe/publidoc.css --- a/Xxe/publidoc.css mar. déc. 20 19:20:03 2011 +0100 +++ b/Xxe/publidoc.css mar. déc. 20 23:20:41 2011 +0100 @@ -1,56 +1,74 @@ /* $Id$ */ -publidoc:before { - display: block; - background-color: #993333; - padding: 3ex 1ex 3ex 1ex; - color: silver; +publidoc { font-family: sans-serif; - font-size: 100%; - font-weight: bold; - content: " id = " text-field(attribute, id, columns, 10, color, white, font-size, 120%) - " " icon(diamond) " type = " label(attribute, type, color, white, font-size, 120%) - set-attribute-button(attribute, type, icon, icon(pop-sw)) - " " icon(diamond) " media = " label(attribute, media, color, white, font-size, 120%) - set-attribute-button(attribute, media, icon, icon(pop-sw)) - " " icon(diamond) " lang = " label(attribute, "xml:lang", color, white, font-size, 120%) - set-attribute-button(attribute, "xml:lang", icon, icon(pop-sw)); } -publidoc { - color: black; - background-color: white; - font-family: sans-serif; - font-size: 120%; +*::comment { display: none; } + +/* Top level =============================================================== */ + + + +/* Head level ============================================================== */ + +head { + display: block; + margin: .5em 0; + background-color: #ffffe0; + border: thin solid #dcdcdc; + padding: .5em; + border-radius: 0.5em; + width: 100%; } -/* ======= Head level ======= */ +head > *:before { + display: marker; + content: element-label(); + color: gray; +} +head > title:before { display: none; } +head > subtitle:before { content: "Sous-titre :"; } +head > language:before { content: insert-before-button() " Langue :"; } +head > date:before { content: insert-before-button() " Date :"; } +head > place:before { content: insert-before-button() " Lieu :"; } +head > source:before { content: insert-before-button() " Source :"; } +head > keywordset:before { content: insert-before-button() " Mots clés :"; } -/* head { */ +head > * { + display: block; + margin: 0 0 .5em 6em; +} +head > title { + font-size: 150%; + font-weight: bold; + color: #004080; + margin: 0 0 .4em 0; +} + +head > *:after { + color: gray; + content: " " insert-after-button(); +} +head > title:after { content: ""; } + +/* Division level ========================================================== */ + +/* Component level ========================================================= */ + +/* Section level =========================================================== */ + +/* section { */ /* display: block; */ /* } */ -/* ====== Section level ===== */ +/* Block level ============================================================= */ -section:before { - display: block; - margin: 2ex 10px 0 1ex; - background-color: silver; - color: gray; - font-family: sans-serif; - font-weight: bold; - content: row(cell(content(" " insert-before-button() collapser()), width, 90%), - cell(content(insert-after-button() " "), width, 10%, text-align, right)); -} +/* p { */ +/* display: block; */ +/* } */ -section { - display: block; - collapsible: yes; - collapsed: no; -} +/* Inline level ============================================================ */ -/* ======= Block level ====== */ - -p { - display: block; -} +sup { vertical-align: super; font-size: 75%; } +sub { vertical-align: sub; font-size: 75%; } diff -r 49750b96058f -r 14211f9b064a Xxe/publidoc.xxe --- a/Xxe/publidoc.xxe mar. déc. 20 19:20:03 2011 +0100 +++ b/Xxe/publidoc.xxe mar. déc. 20 23:20:41 2011 +0100 @@ -11,7 +11,7 @@ - +