mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-30 09:06:14 +13:00
dac3a01a1b
Added twemoji Fixed progress bar
263 lines
4.4 KiB
Stylus
263 lines
4.4 KiB
Stylus
|
|
@require 'mixins'
|
|
|
|
body {
|
|
background-color: white;
|
|
color: black;
|
|
text-align: justify;
|
|
}
|
|
|
|
p {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
text-indent: 0;
|
|
|
|
&.double {
|
|
margin-top: 1em;
|
|
}
|
|
&.double2 {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
&.indented {
|
|
text-indent: 1em;
|
|
}
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
div p {
|
|
text-indent: 0;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
text-align: left;
|
|
}
|
|
|
|
em {
|
|
font-style: italic;
|
|
}
|
|
em em {
|
|
font-style: normal;
|
|
}
|
|
|
|
.chapter-title {
|
|
margin-top: 1.5em;
|
|
margin-bottom: 1.5em;
|
|
|
|
h1 {
|
|
font-size: 1.25em;
|
|
font-weight: normal;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
img {
|
|
height: auto;
|
|
width: auto;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
img.emoji {
|
|
height: 1em;
|
|
}
|
|
|
|
hr.old {
|
|
padding: 0;
|
|
margin-top: 0.8em;
|
|
margin-bottom: 0.8em;
|
|
height: 0;
|
|
border: none;
|
|
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 {
|
|
margin: 10px 0px;
|
|
padding: 20px;
|
|
border: none;
|
|
border-left: 5px solid rgba(0,0,0,0.2);
|
|
bgcolor(rgba(0,0,0,0.1));
|
|
|
|
/:root[__ibooks_internal_theme*="Night"] & {
|
|
border-color: rgba(255,255,255,0.2);
|
|
bgcolor(rgba(255,255,255,0.1));
|
|
}
|
|
|
|
&.left_insert, &.right_insert {
|
|
box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
padding: 15px;
|
|
background-color: #F7F7F7;
|
|
border: 1px solid #AAA;
|
|
width: 50%;
|
|
box-shadow: 5px 5px 0px #EEE;
|
|
/:root[__ibooks_internal_theme*="Gray"] & {
|
|
bgcolor(rgba(0,0,0,0.1));
|
|
box-shadow: 5px 5px 0px #666;
|
|
}
|
|
|
|
/:root[__ibooks_internal_theme*="Night"] & {
|
|
bgcolor(rgba(255,255,255,0.1));
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
&.left_insert {
|
|
margin-right: 25px;
|
|
float: left;
|
|
}
|
|
&.right_insert {
|
|
margin-left: 25px;
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
figure.youtube {
|
|
margin: 1em auto;
|
|
width: 60%;
|
|
max-width: 640px;
|
|
|
|
border: 1px solid #999;
|
|
border-radius: 3px;
|
|
padding: 3px;
|
|
|
|
img {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
figcaption {
|
|
line-height: 1em;
|
|
text-align: left;
|
|
padding: 3px;
|
|
|
|
a {
|
|
font-style: italic;
|
|
font-size: 0.75em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.leftalign {
|
|
text-align: left;
|
|
}
|
|
|
|
#author_notes {
|
|
clear: both;
|
|
border: 1px solid #ddd;
|
|
border-radius: 3px;
|
|
line-height: 1.7em;
|
|
padding: 16px;
|
|
margin-top: 1.0em;
|
|
margin-bottom: 1.0em;
|
|
background-color: #EEE;
|
|
color: #555;
|
|
|
|
/:root[__ibooks_internal_theme*="Gray"] &, /:root[__ibooks_internal_theme*="Night"] & {
|
|
border-color: #333;
|
|
bgcolor(#1A1A1A);
|
|
}
|
|
}
|
|
|
|
a.chaptercomments {
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
position: relative;
|
|
margin: 1em;
|
|
padding: 0.5em 1em;
|
|
cursor: pointer;
|
|
|
|
textcolor(#fff);
|
|
font-weight: normal;
|
|
font-family: sans-serif;
|
|
font-size: 0.9em;
|
|
text-shadow: -1px -1px #699739;
|
|
|
|
box-shadow: 0px 1px #81b945 inset;
|
|
border-radius: 3px;
|
|
border: 1px solid #699739;
|
|
border-bottom-color: #638f36;
|
|
border-top-color: #6fa03c;
|
|
outline: none;
|
|
|
|
bgcolor(#7bb042);
|
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #7bb042), color-stop(100%, #6fa03c));
|
|
background: -webkit-linear-gradient(top, #7bb042 0%, #6fa03c 100%);
|
|
background: linear-gradient(to bottom, #7bb042 0%, #6fa03c 100%);
|
|
}
|
|
|
|
#toc {
|
|
h3 {
|
|
font-weight: normal;
|
|
text-align: center;
|
|
margin: 0;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
ol {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
li {
|
|
// overflow: auto;
|
|
|
|
a, .floatbox {
|
|
padding: 0.3em;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
display: inline-block;
|
|
}
|
|
.floatbox {
|
|
float: right;
|
|
}
|
|
|
|
span.date, span.wordcount {
|
|
font-size: 0.8em;
|
|
color: #888;
|
|
text-align: left;
|
|
}
|
|
}
|
|
}
|
|
|
|
[hidden] {
|
|
display: none;
|
|
}
|
|
}
|