fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
96ba224
)
WYSIWYG for right-aligned poem lines
author
Jan Szejko
<janek37@gmail.com>
Wed, 26 Jul 2017 14:00:09 +0000
(16:00 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Wed, 26 Jul 2017 14:00:09 +0000
(16:00 +0200)
apps/toolbar/fixtures/initial_toolbar.yaml
patch
|
blob
|
history
redakcja/static/css/html.css
patch
|
blob
|
history
redakcja/static/js/wiki/xslt.js
patch
|
blob
|
history
redakcja/static/xsl/wl2html_client.xsl
patch
|
blob
|
history
diff --git
a/apps/toolbar/fixtures/initial_toolbar.yaml
b/apps/toolbar/fixtures/initial_toolbar.yaml
index
c70180e
..
5766ec7
100644
(file)
--- a/
apps/toolbar/fixtures/initial_toolbar.yaml
+++ b/
apps/toolbar/fixtures/initial_toolbar.yaml
@@
-713,6
+713,17
@@
tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza"
model: toolbar.button
pk: 85
tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza"
model: toolbar.button
pk: 85
+- fields:
+ accesskey: ''
+ group: [12, 17]
+ label: wers do prawej
+ link: ''
+ params: '{"tag": "wers_do_prawej"}'
+ scriptlet: insert_tag
+ slug: wers-do-prawej
+ tooltip: "wers wyrównany do prawej"
+ model: toolbar.button
+ pk: 109
- fields:
accesskey: ''
group: []
- fields:
accesskey: ''
group: []
diff --git
a/redakcja/static/css/html.css
b/redakcja/static/css/html.css
index
0d43611
..
01c623a
100644
(file)
--- a/
redakcja/static/css/html.css
+++ b/
redakcja/static/css/html.css
@@
-4,8
+4,7
@@
font-size: 16px;
font-family: "Georgia", "Times New Roman", serif;
line-height: 1.5em;
font-size: 16px;
font-family: "Georgia", "Times New Roman", serif;
line-height: 1.5em;
- padding: 3em;
- padding-left: 45px;
+ padding: 3em 3em 3em 45px;
overflow-y: scroll;
overflow-x: auto;
}
overflow-y: scroll;
overflow-x: auto;
}
@@
-122,7
+121,7
@@
/* ============= */
.htmlview .anchor {
position: relative;
/* ============= */
.htmlview .anchor {
position: relative;
- margin: 0
em
;
+ margin: 0;
left: -2.2em;
color: #777;
font-size: 12px;
left: -2.2em;
color: #777;
font-size: 12px;
@@
-197,9
+196,12
@@
margin-left: 6em;
}
margin-left: 6em;
}
+.htmlview .strofa .wers_do_prawej {
+ text-align: right;
+}
+
/* błędne wersy */
/* błędne wersy */
-.htmlview *:
-not(.strofa) > *[x-verse]::after {
+.htmlview *:not(.strofa) > *[x-verse]::after {
content: "Ten wers znajduje się poza strofą.";
display: inline;
background: red;
content: "Ten wers znajduje się poza strofą.";
display: inline;
background: red;
@@
-418,7
+420,7
@@
div[x-node] > .uwaga {
background-color: #ffcccc;
}
.htmlview .pe .annotation:hover {
background-color: #ffcccc;
}
.htmlview .pe .annotation:hover {
- background-color: #96e0e4;
*/
+ background-color: #96e0e4;
}
*.htmlview *.annotation-inline-box {
position: static;
}
*.htmlview *.annotation-inline-box {
position: static;
@@
-440,9
+442,7
@@
div[x-node] > .uwaga {
font-weight: normal;
font-style: normal;
background: #fffe93;
font-weight: normal;
font-style: normal;
background: #fffe93;
- border-color: black;
- border-width: 1px;
- border-style: solid;
+ border: 1px solid black;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
@@
-505,7
+505,6
@@
div[x-node] > .uwaga {
display: block;
/* margin: 4px 0 2px 0;*/
padding: 5px 5px 2px 5px;
display: block;
/* margin: 4px 0 2px 0;*/
padding: 5px 5px 2px 5px;
- border: none;
background-color: #FAFAFA;
/* z-index: 3000;*/
/* color: #FFF;
background-color: #FAFAFA;
/* z-index: 3000;*/
/* color: #FFF;
@@
-591,7
+590,7
@@
div[x-node] > .uwaga {
}
.html-editarea {
}
.html-editarea {
- border: 0
px
;
+ border: 0;
background-color: gray;
padding: 1px;
z-index: 2000;
background-color: gray;
padding: 1px;
z-index: 2000;
@@
-601,8
+600,8
@@
div[x-node] > .uwaga {
.html-editarea textarea {
position: absolute;
top: 0;
.html-editarea textarea {
position: absolute;
top: 0;
- margin: 0
px
;
- padding: 0
px
;
+ margin: 0;
+ padding: 0;
width: 100%;
height: 100%;
z-index: 0;
width: 100%;
height: 100%;
z-index: 0;
@@
-612,7
+611,7
@@
div[x-node] > .uwaga {
.htmlview .out-of-flow-text {
display: block;
.htmlview .out-of-flow-text {
display: block;
- font-fa
ce
: monospace;
+ font-fa
mily
: monospace;
border: 2px solid red !important;
white-space: pre-line;
}
border: 2px solid red !important;
white-space: pre-line;
}
@@
-627,8
+626,7
@@
div[x-node] > .uwaga {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
padding: 5px 1em;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
padding: 5px 1em;
- margin: 0em;
- margin-left: 1em;
+ margin: 0 0 0 1em;
text-align: justify;
display: inline;
float: right;
text-align: justify;
display: inline;
float: right;
diff --git
a/redakcja/static/js/wiki/xslt.js
b/redakcja/static/js/wiki/xslt.js
index
5e3f2f7
..
b4844a5
100644
(file)
--- 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({
if (!xml2htmlStylesheet) {
$.blockUI({message: 'Ładowanie arkuszy stylów...'});
$.ajax({
- url: STATIC_URL + 'xsl/wl2html_client.xsl?20170
630
',
+ url: STATIC_URL + 'xsl/wl2html_client.xsl?20170
726
',
dataType: 'xml',
timeout: 10000,
success: function(data) {
dataType: 'xml',
timeout: 10000,
success: function(data) {
diff --git
a/redakcja/static/xsl/wl2html_client.xsl
b/redakcja/static/xsl/wl2html_client.xsl
index
b6029db
..
09b6b79
100644
(file)
--- a/
redakcja/static/xsl/wl2html_client.xsl
+++ b/
redakcja/static/xsl/wl2html_client.xsl
@@
-588,7
+588,7
@@
</xsl:choose>
</xsl:template>
</xsl:choose>
</xsl:template>
- <xsl:template match="wers_cd|wers_akap|wers_wciety">
+ <xsl:template match="wers_cd|wers_akap|wers_wciety
|wers_do_prawej
">
<xsl:param name="mixed" />
<!-- <xsl:choose>
<xsl:when test="ancestor::*[0]/self::strofa"> -->
<xsl:param name="mixed" />
<!-- <xsl:choose>
<xsl:when test="ancestor::*[0]/self::strofa"> -->