From 8a3484bca2af09fad4f912d50c5af5601274d295 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Mon, 6 Nov 2017 16:09:26 +0100 Subject: [PATCH] add tag ramka --- apps/toolbar/fixtures/initial_toolbar.yaml | 11 +++++++++++ redakcja/static/css/book.css | 5 +++++ redakcja/static/css/html.css | 4 ++++ redakcja/static/css/html_print.css | 4 ++++ redakcja/static/js/wiki/xslt.js | 2 +- redakcja/static/xsl/wl2html_client.xsl | 14 ++++++++++++++ 6 files changed, 39 insertions(+), 1 deletion(-) 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 @@ + + + +
+ + + + +
+
+