/* ==UserStyle==
@name 小説家になろうキレイな縦書き段組スタイル
@namespace USO Archive
@author canonselphycp400
@description `
PC向けの縦書き段組スタイル。「小説家になろう」というサイト用のスタイル。
A vertical writing column style for PC. Made for "Shousetsuka Ni Narou".
https://userstyles.world/style/3065/default-slug
`
@version 08.21.2022
@license CC-BY-4.0
@preprocessor uso
@advanced text charsize "Char Count (Vertical) 文字数(縦)" "24"
@advanced text linesize "Line Count (Horizontal) 行数(横)" "26"
@advanced text gapsize "Page Gap Size 段組間隔" "10em"
@advanced text linespacing "Line Spacing 行間" "1.8"
@advanced text fontsize "Font Size 文字サイズ" "24pt"
@advanced text fontfamily "フォントスタイル" "'游明朝', 'Yu Mincho', YuMincho, 'ヒラギノ角ゴ ProN' , 'Hiragino Kaku Gothic ProN' , '游ゴシック' , '游ゴシック体' , YuGothic , 'Yu Gothic' , 'メイリオ' , Meiryo , 'MS ゴシック' , 'MS Gothic' , HiraKakuProN-W3 , 'TakaoExゴシック' , TakaoExGothic , 'MotoyaLCedar' , 'Droid Sans Japanese' , sans-serif"
==/UserStyle== */
@-moz-document regexp("https://(ncode|novel)\\.syosetu\\.com/n\\d{1,4}[a-z]{1,2}/(\\d+/)?") {
:root > body > *:not(#novel_header):not(#container),
:root #container > *:not(.contents1):not(#novel_contents):not(#recommend):not(#contents_main),
:root #novel_color ~ *:not(#novel_hyouka):not(#impression):not(#review):not(#novel_footer):not(.p-novelgood-form) {
display: none;
}
:root {
overflow: visible;
font-size: /*[[fontsize]]*/;
/* フォントサイズ */
}
#pageBottom
{
display:none;
pointer-events:none;
opacity:0;
}
.contents1{
padding-top:50px;
}
.contents1,
.nothing {
background-color: inherit;
}
.novel_subtitle{
padding-bottom:/*[[gapsize]]*/;
}
.novel_view {
overflow: visible;
}
body{
padding-bottom:30px;
}
:root #container {
overflow-y: auto;
margin: 0;
padding: 0 0 0;
height:calc(100vh - 30px);
}
:root #novel_color {
margin: auto;
width: auto;
color: inherit;
}
:root #novel_ex,
:root .index_box,
:root .novel_writername,
:root .novellingindex_bookmarker_no {
margin: 20px auto;
width: 730px;
}
:root #novel_honbun {
font-family: /*[[fontfamily]]*/;
font-weight: normal;
margin: 0 auto;
padding: 0;
width: calc(/*[[linesize]]*/rem * 1.8);
max-width: calc(100% - 3rem - 0px);
height: /*[[charsize]]*/rem;
max-height: calc(100vh - 50px);
column-span: all;
column-width: /*[[linesize]]*/rem;
column-gap: /*[[gapsize]]*/;
writing-mode: vertical-rl;
font-size: 1rem !important;
line-height: /*[[linespacing]]*/ !important;
}
:root #novel_header {
position: fixed;
left: -15px;
opacity: 0;
border: none;
box-shadow: 0 0 5px #0000005e;
z-index: 2
}
:root #novel_header:hover {
left: 0;
opacity: 1;
}
:root .novel_bn:last-child {
position: fixed;
bottom: 0;
margin: auto;
left: 0;
right: 0;
margin-top: 50px;
width: 300px;
opacity: 1;
background:rgba(255, 255, 255, 0);
}
:root .novel_bn:last-child::before {
content: 'ナビゲーション';
white-space: pre;
font-size: 12px;
}
:root .novel_bn:last-child:hover {
left: 0;
opacity: 1;
}
:root .novel_bn:first-child {
height: 0;
width: 0;
text-height: 0;
opacity: 0
}
:root #novel_p {
position: fixed;
left: -15px;
opacity: 0;
}
:root #novel_p:hover {
left: 0;
opacity: 1;
}
#novel_p,
#novel_a,
#novel_hyouka,
#impression,
#review,
#novel_footer,
#recommend,
.p-novelgood-form {
position: fixed;
z-index: 5;
overflow: hidden;
height: 75px;
width: 0px;
margin: 0;
padding: 0 0 0;
border: none;
opacity: 0.90;
align-items: center;
display: block;
}
#novel_p::before,
#novel_a::before,
#novel_hyouka::before,
#impression::before,
#review::before,
#novel_footer::before,
#recommend::before,
.p-novelgood-form::before {
left: 0px;
position: fixed;
height: 60px;
width: 25px;
z-index: 5;
display: block;
font-size: 12px;
padding-bottom: 10px;
padding-top: 10px;
text-align: left;
writing-mode: vertical-rl;
}
#novel_p {
top: calc(50px + 11vh * 0);
}
#novel_a {
top: calc(50px + 11vh * 1);
}
.p-novelgood-form {
top: calc(50px + 11vh * 2);
}
#novel_hyouka {
top: calc(50px + 11vh * 3);
}
#impression {
top: calc(50px + 11vh * 4);
}
#review {
top: calc(50px + 11vh * 5);
}
#novel_footer {
top: calc(50px + 11vh * 6);
}
#recommend {
top: calc(50px + 11vh * 7);
}
#novel_p::before {
content: 'まえがき';
}
#novel_a::before {
content: 'あとがき';
}
.p-novelgood-form::before {
content: 'いいね';
}
#novel_hyouka::before {
content: '評価';
}
#impression::before {
content: '感想';
}
#review::before {
content: 'イチオシ';
}
#novel_footer::before {
content: 'フッター';
}
#recommend::before {
content: 'おすすめ';
}
#novel_p:hover,
#novel_a:hover,
#novel_hyouka:hover,
.p-novelgood-form:hover,
#impression:hover,
#review:hover,
#novel_footer:hover,
#recommend:hover {
border-right: 10px;
border-color: #AAAAAA;
overflow-y: auto;
padding: 1em 2em;
width: 500px;
max-width: 80vw;
height: calc(100vh);
top: 0;
z-index: 4;
padding-left: 115px;
background-image:initial;
background-color: inherit;
opacity: 0.90;
box-shadow: 0 0 5px #0000005e;
}
#novel_p:hover::before,
#novel_a:hover::before,
#novel_hyouka:hover::before,
.p-novelgood-form:hover::before,
#impression:hover::before,
#review:hover::before,
#novel_footer:hover::before,
#recommend:hover::before {
opacity: 1;
z-index: 10;
left: 0px;
}
#novel_p:hover::before {
top: calc(50px + 11vh * 0);
}
#novel_a:hover::before {
top: calc(50px + 11vh * 1);
}
.p-novelgood-form:hover::before {
top: calc(50px + 11vh * 2);
}
#novel_hyouka:hover::before {
top: calc(50px + 11vh * 3);
}
#impression:hover::before {
top: calc(50px + 11vh * 4);
}
#review:hover::before {
top: calc(50px + 11vh * 5);
}
#novel_footer:hover::before {
top: calc(50px + 11vh * 6);
}
#recommend:hover::before {
top: calc(50px + 11vh * 7);
}
div, ul, li { background-color: inherit; }
}