diff --git a/pyproject.toml b/pyproject.toml index fe7367a..e35195b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ build-backend = "hatchling.build" directory = "dist" [tool.hatch.build.targets.sdist] -include = ["scribble_to_epub/*.py"] +include = ["scribble_to_epub/*.py", "scribble_to_epub/*.css"] [tool.hatch.build.targets.wheel] packages = ["scribble_to_epub"] diff --git a/scribble_to_epub/assets/scribblehub.css b/scribble_to_epub/assets/scribblehub.css new file mode 100644 index 0000000..417ca17 --- /dev/null +++ b/scribble_to_epub/assets/scribblehub.css @@ -0,0 +1,138 @@ +.epub-author { + color: #555; +} + +.epub-link { + margin-bottom: 30px; +} + +.epub-link a { + color: #666; + font-size: 90%; +} + +.toc-author { + font-size: 90%; + color: #555; +} + +.toc-link { + color: #999; + font-size: 85%; + display: block; +} + +hr { + border: 0; + border-bottom: 1px solid #dedede; + margin: 60px 10%; +} + +ol { + list-style-type: none; +} + +li { + margin: 10px 0; +} + +span[property="genre"] { + margin-right: 10px; +} + +span[property="genre"]:last-child { + margin-right: inherit; +} + +.fic_row.details>div { + margin-top: 10px; + margin-bottom: 10px; +} + +.sp-head::before { + content: "⚠"; +} + +.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; +} + +.wi_news, +.sp-wrap, +.wi_authornotes { + display: block; +} + +.wi_novel_title, +.wi_news_title, +.sp-head { + margin-top: 10px; + margin-bottom: 10px; + font-size: 1.3em; + font-weight: bold; +} + +.wi_news, +.wi_authornotes { + padding: 15px 35px; + border-radius: 5px; + position: relative; +} + +.an_username a { + font-weight: 600; +} + +.wi_authornotes_body { + padding-top: 10px; +} + +blockquote { + margin: 20px auto; + padding: 1.2em 30px 1.2em 75px; + border-left: 8px solid #333; + line-height: 1.6; + position: relative; + background: #f2f2f2; +} + +blockquote::before { + content: "\201C"; + font-size: 4em; + position: absolute; + left: 10px; + top: -10px; +} + +blockquote::after { + content: ""; +} + +blockquote span { + display: block; + font-style: normal; + margin-top: 1em; +} + +.spdiv { + display: none; +} + +i.fa { + font-style: normal; +} + +.fa-exclamation-triangle::before { + content: "⚠"; +} + +.sp-body { + display: block !important; +} + +img:not([id="acc_ava_change profile"]) { + max-width: 100%; + height: auto; +}