Skip to content

Commit

Permalink
[mod-sbs] Handle precedingseparator with CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees committed Nov 2, 2016
1 parent 8354300 commit 2726d58
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 28 deletions.
2 changes: 0 additions & 2 deletions modules/sbs/braille/src/main/resources/META-INF/catalog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

<!-- internal resources added to the catalog for now until we find a proper solution for
https://github.com/daisy/pipeline-mod-braille/pull/79#discussion-diff-54276962 -->
<uri name="http://www.sbs.ch/pipeline/modules/braille/internal/handle-precedingseparator.xsl"
uri="../xml/handle-precedingseparator.xsl"/>
<uri name="http://www.sbs.ch/pipeline/modules/braille/internal/group-starting-with-linenum.xsl"
uri="../xml/group-starting-with-linenum.xsl"/>
<uri name="http://www.sbs.ch/pipeline/modules/braille/internal/insert-boilerplate.xsl"
Expand Down
15 changes: 15 additions & 0 deletions modules/sbs/braille/src/main/resources/css/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,21 @@ p {
margin-top:1;
}

p.precedingseparator {
$separator-width: 6;
text-indent: 0;
&::before {
content: "\A" /* empty line */
repeat(" ", ($page-width - $separator-width)/2) /* centering */
repeat("", $separator-width) "\A" /* separator */
"\A" /* empty line */
"  "; /* text indent */
white-space: pre-line;
text-transform: none;
hyphens: initial;
}
}

.noindent {
display: block;
text-indent: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
<p:pipe step="temp-dir" port="result"/>
</p:with-option>
<p:with-option name="stylesheet" select="string-join((
'http://www.sbs.ch/pipeline/modules/braille/internal/handle-precedingseparator.xsl',
'http://www.sbs.ch/pipeline/modules/braille/internal/group-starting-with-linenum.xsl',
'http://www.sbs.ch/pipeline/modules/braille/internal/insert-boilerplate.xsl',
$stylesheet),' ')"/>
Expand Down

This file was deleted.

0 comments on commit 2726d58

Please sign in to comment.