From: Marcin Koziej Date: Wed, 5 Dec 2012 10:40:18 +0000 (+0100) Subject: XSL/CSS fixes to display excercises properly -- part 1 X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c076154f1220c417c4cd17d178d5f94c5c88d83b XSL/CSS fixes to display excercises properly -- part 1 --- diff --git a/redakcja/static/css/html.css b/redakcja/static/css/html.css index 8c381063..0cfe002e 100644 --- a/redakcja/static/css/html.css +++ b/redakcja/static/css/html.css @@ -1,6 +1,7 @@ /* Style widoku HTML. Nie należy tu ustawiać position ani marginesów */ .htmlview { counter-reset: main; + counter-reset: aktywnosc; font-size: 16px; font-family: "Georgia", "Times New Roman", serif; line-height: 1.5em; @@ -695,6 +696,12 @@ div[x-node] > .uwaga { .htmlview span.aktywnosc span.opis { font-style: italic; } +.htmlview span.aktywnosc span.opis p:before { + content: counter(aktywnosc) ". "; + counter-increment: aktywnosc; + font-weight: bold; +} + .htmlview span.aktywnosc span.wskazowki { font-style: italic; color: #202020; @@ -706,7 +713,7 @@ div[x-node] > .uwaga { .htmlview .pomoce:before { content: "Pomoce: "; } .htmlview .czas:before { content: "Czas: "; } .htmlview .czas:after { content: " min"; } -.htmlview .forma:before { content: "Forma:"; } +.htmlview .forma:before { content: "Forma: "; } .htmlview .aktywnosc { display: block; @@ -728,3 +735,12 @@ div[x-node] > .uwaga { .htmlview .kol div { position: relative; } + +.htmlview img.obraz { + max-width: 640px; +} + +.htmlview span.luka { + color: #808080; + text-decoration: underline; +} \ No newline at end of file diff --git a/redakcja/static/xsl/wl2html_client.xsl b/redakcja/static/xsl/wl2html_client.xsl index a476c70f..97f5de3b 100644 --- a/redakcja/static/xsl/wl2html_client.xsl +++ b/redakcja/static/xsl/wl2html_client.xsl @@ -732,6 +732,15 @@ + + + @@ -767,7 +776,9 @@ - +
@@ -786,7 +797,9 @@ - + @@ -822,6 +835,26 @@ + + + + + + + + + + + + + + + +