mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-07-01 12:30:29 +12:00
New <hr>
This commit is contained in:
parent
9af85b1ed1
commit
5f5424c281
|
@ -59,14 +59,54 @@ img {
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr.old {
|
||||||
|
padding: 0;
|
||||||
margin-top: 0.8em;
|
margin-top: 0.8em;
|
||||||
margin-bottom: 0.8em;
|
margin-bottom: 0.8em;
|
||||||
height: 0;
|
height: 0;
|
||||||
border: 0;
|
border: none;
|
||||||
border-bottom: 1px solid #999;
|
border-bottom: 1px solid #000;
|
||||||
|
border-color: currentColor;
|
||||||
|
opacity: 0.5;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fimfiction's new horizontal ruler:
|
||||||
|
hr {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0;
|
||||||
|
border: none;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 0;
|
||||||
|
|
||||||
|
border-top-width: 1px;
|
||||||
|
border-top-style: solid;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
border-color: #999;
|
||||||
|
border-color: currentColor;
|
||||||
|
height: 4px;
|
||||||
|
background: transparent;
|
||||||
|
width: 90%;
|
||||||
|
margin: 2em auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This looks bad on black background/dark themes
|
||||||
|
/*hr:after {
|
||||||
|
color: #333;
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
top: -0.5em;
|
||||||
|
font-size: 1.0em;
|
||||||
|
padding: 0 0.5em;
|
||||||
|
background: white;
|
||||||
|
line-height: 1.0em
|
||||||
|
|
||||||
|
color: currentColor;
|
||||||
|
content: "\274A \274A \274A";
|
||||||
|
margin-top: 2px;
|
||||||
|
}*/
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
margin: 10px 0px;
|
margin: 10px 0px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
|
|
@ -48,7 +48,7 @@ export function createChapter (ch) {
|
||||||
m('body', [
|
m('body', [
|
||||||
title ? m('.chapter-title', [
|
title ? m('.chapter-title', [
|
||||||
m('h1', title),
|
m('h1', title),
|
||||||
m('hr')
|
m('hr.old')
|
||||||
]) : null,
|
]) : null,
|
||||||
'%%HTML_CONTENT%%',
|
'%%HTML_CONTENT%%',
|
||||||
(link || linkNotes) ? m('p.double', {style: 'text-align: center; clear: both;'},
|
(link || linkNotes) ? m('p.double', {style: 'text-align: center; clear: both;'},
|
||||||
|
|
Loading…
Reference in a new issue