Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
huideyeren committed Aug 4, 2024
1 parent 435dcd2 commit ce2cb42
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 1 deletion.
31 changes: 31 additions & 0 deletions sass/common/_format_epub.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@charset "UTF-8";

html {
/* 組み方向 */
-webkit-writing-mode: vertical-rl;
-epub-writing-mode: vertical-rl;
writing-mode: tb-rl;
}

span.balloon {
font-size: 0.9em;
}
span.balloon:before {
content: "";
}

/* image width definition(pacentage) */
.width-010per { width: 10%; }
.width-020per { width: 20%; }
.width-025per { width: 25%; }
.width-030per { width: 30%; }
.width-033per { width: 33%; }
.width-040per { width: 40%; }
.width-050per { width: 50%; }
.width-060per { width: 60%; }
.width-067per { width: 67%; }
.width-070per { width: 70%; }
.width-075per { width: 75%; }
.width-080per { width: 80%; }
.width-090per { width: 90%; }
.width-100per { width: 100%; }
216 changes: 216 additions & 0 deletions sass/common/_rouge.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
@charset "UTF-8";

/**
* from Rouge
*/
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight .cm {
color: #999988;
font-style: italic;
}
.highlight .cp {
color: #999999;
font-weight: bold;
}
.highlight .c1 {
color: #999988;
font-style: italic;
}
.highlight .cs {
color: #999999;
font-weight: bold;
font-style: italic;
}
.highlight .c, .highlight .cd {
color: #999988;
font-style: italic;
}
.highlight .err {
color: #a61717;
background-color: #e3d2d2;
}
.highlight .gd {
color: #000000;
background-color: #ffdddd;
}
.highlight .ge {
color: #000000;
font-style: italic;
}
.highlight .gr {
color: #aa0000;
}
.highlight .gh {
color: #999999;
}
.highlight .gi {
color: #000000;
background-color: #ddffdd;
}
.highlight .go {
color: #888888;
}
.highlight .gp {
color: #555555;
}
.highlight .gs {
font-weight: bold;
}
.highlight .gu {
color: #aaaaaa;
}
.highlight .gt {
color: #aa0000;
}
.highlight .kc {
color: #000000;
font-weight: bold;
}
.highlight .kd {
color: #000000;
font-weight: bold;
}
.highlight .kn {
color: #000000;
font-weight: bold;
}
.highlight .kp {
color: #000000;
font-weight: bold;
}
.highlight .kr {
color: #000000;
font-weight: bold;
}
.highlight .kt {
color: #445588;
font-weight: bold;
}
.highlight .k, .highlight .kv {
color: #000000;
font-weight: bold;
}
.highlight .mf {
color: #009999;
}
.highlight .mh {
color: #009999;
}
.highlight .il {
color: #009999;
}
.highlight .mi {
color: #009999;
}
.highlight .mo {
color: #009999;
}
.highlight .m, .highlight .mb, .highlight .mx {
color: #009999;
}
.highlight .sb {
color: #d14;
}
.highlight .sc {
color: #d14;
}
.highlight .sd {
color: #d14;
}
.highlight .s2 {
color: #d14;
}
.highlight .se {
color: #d14;
}
.highlight .sh {
color: #d14;
}
.highlight .si {
color: #d14;
}
.highlight .sx {
color: #d14;
}
.highlight .sr {
color: #009926;
}
.highlight .s1 {
color: #d14;
}
.highlight .ss {
color: #990073;
}
.highlight .s {
color: #d14;
}
.highlight .na {
color: #008080;
}
.highlight .bp {
color: #999999;
}
.highlight .nb {
color: #0086B3;
}
.highlight .nc {
color: #445588;
font-weight: bold;
}
.highlight .no {
color: #008080;
}
.highlight .nd {
color: #3c5d5d;
font-weight: bold;
}
.highlight .ni {
color: #800080;
}
.highlight .ne {
color: #990000;
font-weight: bold;
}
.highlight .nf {
color: #990000;
font-weight: bold;
}
.highlight .nl {
color: #990000;
font-weight: bold;
}
.highlight .nn {
color: #555555;
}
.highlight .nt {
color: #000080;
}
.highlight .vc {
color: #008080;
}
.highlight .vg {
color: #008080;
}
.highlight .vi {
color: #008080;
}
.highlight .nv {
color: #008080;
}
.highlight .ow {
color: #000000;
font-weight: bold;
}
.highlight .o {
color: #000000;
font-weight: bold;
}
.highlight .w {
color: #bbbbbb;
}
.highlight {
background-color: #f8f8f8;
}
.rouge-table { border-spacing: 0 }
.rouge-gutter { text-align: right }
31 changes: 31 additions & 0 deletions sass/epub.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@charset "UTF-8";
@import 'common/_fonts.scss';

// 基本フォントサイズ
$base-font-size: 12pt;
// 基本行送り
$base-line-height: 1.4rem;
// 基本フォントファミリー
$base-font-family: "EB Garamond", "Yakumono", "Noto Serif CJK jp", serif;

// 行数
$lines: 15;
// 1行あたり文字数
$characters-per-line: 40;
//
$ten: 17mm;
//
$chi: 15mm;
// 小口
$koguchi: 12mm;
// ノド
$nodo: 18mm;

// Rougeハイライト
@import 'common/rouge';
// EPUB用フォーマット
@import 'common/format_epub';
// タイポグラフィのスタイル定義
@import 'common/typography';
// コンテンツのスタイル定義
@import 'common/contents';
2 changes: 1 addition & 1 deletion sass/vivliostyle-a6.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $nodo: 18mm;
//紙のサイズ
$paper-size: a6;
//塗り足しサイズ
$bleed-size: 3mm;
$bleed-size: 0;

//紙の横幅
$paper-width: 105mm;
Expand Down

0 comments on commit ce2cb42

Please sign in to comment.