From: Jan Szejko Date: Mon, 6 Nov 2017 15:09:26 +0000 (+0100) Subject: add tag ramka X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/8a3484bca2af09fad4f912d50c5af5601274d295?ds=inline;hp=f94960707e13dc99bc497ac68427de6834d311fd add tag ramka --- diff --git a/apps/toolbar/fixtures/initial_toolbar.yaml b/apps/toolbar/fixtures/initial_toolbar.yaml index bc2ea1c2..be8c3399 100644 --- a/apps/toolbar/fixtures/initial_toolbar.yaml +++ b/apps/toolbar/fixtures/initial_toolbar.yaml @@ -369,6 +369,17 @@ tooltip: "d\u0142ugi cytat wyr\xF3\u017Cniony sk\u0142adem" model: toolbar.button pk: 42 +- fields: + accesskey: '' + group: [21] + label: "ramka" + link: '' + params: '{"tag": "ramka"}' + scriptlet: insert_tag + slug: ramka + tooltip: "tekst otoczony ramką" + model: toolbar.button + pk: 43 - fields: accesskey: f group: [12, 15] diff --git a/redakcja/static/css/book.css b/redakcja/static/css/book.css index 05d2999d..f685e41e 100644 --- a/redakcja/static/css/book.css +++ b/redakcja/static/css/book.css @@ -368,6 +368,11 @@ div.note p, div.dedication p, div.note p.paragraph, div.dedication p.paragraph { font-style: italic; } +div.frame { + border: 1px darkgray solid; + padding-bottom: 1.5em; +} + hr.spacer { height: 3em; visibility: hidden; diff --git a/redakcja/static/css/html.css b/redakcja/static/css/html.css index 6439a648..3b996814 100644 --- a/redakcja/static/css/html.css +++ b/redakcja/static/css/html.css @@ -250,6 +250,10 @@ font-style: italic; } +.htmlview div.ramka { + border: 1px darkgray solid; +} + .htmlview .nota_red { background-color: #eee; border: 1px solid #888; diff --git a/redakcja/static/css/html_print.css b/redakcja/static/css/html_print.css index c6612c5c..808f0956 100644 --- a/redakcja/static/css/html_print.css +++ b/redakcja/static/css/html_print.css @@ -195,6 +195,10 @@ font-style: italic; } +.htmlview div.frame { + border: 1px darkgray solid; +} + .htmlview hr.spacer { height: 3em; visibility: hidden; diff --git a/redakcja/static/js/wiki/xslt.js b/redakcja/static/js/wiki/xslt.js index 1ddd7325..ab90e0c1 100644 --- a/redakcja/static/js/wiki/xslt.js +++ b/redakcja/static/js/wiki/xslt.js @@ -17,7 +17,7 @@ function withStylesheets(code_block, onError) if (!xml2htmlStylesheet) { $.blockUI({message: 'Ładowanie arkuszy stylów...'}); $.ajax({ - url: STATIC_URL + 'xsl/wl2html_client.xsl?20170727', + url: STATIC_URL + 'xsl/wl2html_client.xsl?20171106', dataType: 'xml', timeout: 10000, success: function(data) { diff --git a/redakcja/static/xsl/wl2html_client.xsl b/redakcja/static/xsl/wl2html_client.xsl index 33413afd..784acb7e 100644 --- a/redakcja/static/xsl/wl2html_client.xsl +++ b/redakcja/static/xsl/wl2html_client.xsl @@ -213,6 +213,20 @@ + + + +
+ + + + +
+
+