すべてのページに適用する可変値。私の別のスタイルとセットじゃないと、何も動作しません。
日本語サイトの表示をマシにする可変値 (var ja-JP) by MaruniUmebachi
Details
AuthorMaruniUmebachi
LicenseCC 0
CategoryStyle
Created
Updated
Size33 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link./* ==UserStyle==
@name 0. var
@version 20241126.15.00
@namespace https://userstyles.world/user/MaruniUmebachi
@description すべてのページに適用する、スタイルテーマ。
@homepage https://userstyles.world/user/MaruniUmebachi
@author MaruniUmebachi
@license CC 0
==/UserStyle== */
@-moz-document url-prefix("http"), regexp(".*") {
/* all */
:root {
--Stylus-CSS: "* var";
--font-language-override-Stylus: "JPN";
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "Layout";
--size-A4-Stylus: 210mm;
--max-inline-size-Stylus: var(--size-A4-Stylus);
--inline-size-Stylus: 100%;
--max-width-Stylus: var(--max-inline-size-Stylus);
--column-width-Stylus: calc(210mm / 3);
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "Body x";
--inline-size-Stylus-body: 100%;
--max-inline-size-Stylus-body: 100vw;
--margin-block-Stylus-body-x: auto;
--inline-size-Stylus-body-x: var(--inline-size-Stylus-body);
--max-inline-size-Stylus-body-x: var(--max-inline-size-Stylus-body);
}
}
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "Text";
--overflow-wrap-Stylus: break-word;
--text-wrap-Stylus: balance;
--word-break-Stylus: keep-all;
--text-transform-Stylus-char-ja: full-width;
--letter-spacing-Stylus: calc(1em / 8);
--word-spacing-Stylus: calc(1em / 16);
--text-align-Stylus: auto;
--text-align-last-Stylus: auto;
--text-align-last-Stylus-table: justify;
--text-underline-position-Stylus: under;
--hyphens-Stylus: auto;
}
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "font";
--font-size-Stylus: calc(16px * 1.5);
--line-height-Stylus: 2;
--font-family-Stylus: "Stylus Font", "Stylus Sans";
--font-Stylus: var(--font-size-Stylus) / var(--line-height-Stylus) var(--font-family-Stylus);
--font-feature-settings-Stylus: "palt";
--font-kerning-Stylus: normal;
--font-variant-east-asian-Stylus: proportional-width;
:lang(ja) {
--font-feature-settings-Stylus-lang-ja: "palt";
}
}
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "form";
--font-Stylus: normal;
--font-feature-settings-Style-form: normal;
--font-variant-Style-form: normal;
--font-variant-alternates-Style-form: normal;
--font-variant-caps-Style-form: normal;
--font-variant-east-asian-Style-form: normal;
--font-variant-ligatures-Style-form: normal;
--font-variant-numeric-Style-form: slashed-zero;
--font-variant-position-Style-form: normal;
--font-variation-settings-Style-form: normal;
--font-kerning-Style-form: normal;
--font-stretch-Style-form: condensed;
--font-weight-Style-form: normal;
--spacing-Style-form: normal;
--letter-spacing-Style-form: var(--spacing-Style-form);
--word-spacing-Style-form: var(--spacing-Style-form);
--padding-inline-Style-form: calc(1lh - 1em);
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "input";
--font-variant-numeric-Style-input: slashed-zero;
}
}
}
}
@-moz-document url-prefix("http"), regexp(".*") {
/* other */
:root {
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "other";
--font-Stylus--moz-button: -moz-button;
--Font-MOZButn: var(--font-Stylus--moz-button);
--Font-FS: var(--font-feature-settings-Stylus);
---webkit-font-kerning-Stylus: var(--font-kerning-Stylus);
--font-feature-settings: var(--font-feature-settings-Stylus);
--font-variant-east-asian: var(--font-variant-east-asian-Stylus);
--font-variant-numeric-Stylus-table: slashed-zero tabular-nums;
--spacing-Stylus-line: normal;
--letter-spacing-Stylus-line: var(--spacing-Stylus-line);
--word-spacing-Stylus-line: var(--spacing-Stylus-line);
--text-wrap-Stylus-line: var(--text-wrap-Stylus);
--word-break-Stylus-line: var(--word-break-Stylus);
--overflow-wrap: var(--overflow-wrap-Stylus);
--filter-Stylus-invert: invert(100%) hue-rotate(180deg);
}
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "List";
--overflow-wrap-Stylus-li: break-word;
--text-wrap-Stylus-li: balance;
--word-break-Stylus-li: keep-all;
}
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "font ReaderView";
--font-family-ReaderView: var(--font-family-ReaderView-serif);
--font-family-ReaderView-serif: var(--font-family-Stylus-article-p);
--font-family-ReaderView-sans-serif: var(--font-family-Stylus);
--font-family-ReaderView-monospace: var(--font-family-Stylus-monospace);
--font-family-ReaderView-pre-code: var(--font-family-ReaderView-monospace);
--font-family-ReaderView-pre: var(--font-family-ReaderView-monospace);
--font-family-ReaderView-code: var(--font-family-ReaderView-monospace);
}
}
}
@-moz-document url-prefix("http"), regexp(".*") {
/* article */
:root {
--Stylus-CSS: "* var";
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "article";
--box-sizing-Stylus-article: border-box;
--inline-size-Stylus-article: calc(210mm - 2cm);
--width-Stylus-article: var(--inline-size-Stylus-article);
--max-inline-size-Stylus-article: 100vw;
--max-width-Stylus-article: var(--max-inline-size-Stylus-article);
--column-width-Stylus-article: initial;
--margin-block-Stylus-article: 1.5lh;
--margin-inline-Stylus-article: .5em;
--padding-block-Stylus-article: .5em;
--padding-inline-Stylus-article: .5em;
--font-size-Stylus-article: var(--font-size-Stylus);
--line-height-Stylus-article: 2;
--font-family-Stylus-article: var(--font-family-Stylus-article-p);
--font-Stylus-article: var(--font-size-Stylus-article) / var(--line-height-Stylus-article) var(--font-family-Stylus-article);
--font-feature-settings-Stylus-article: "palt";
--font-kerning-Stylus-article: normal;
--font-variant-east-asian-Stylus-article: proportional-width;
--text-align-Stylus-article: var(--text-align-Stylus);
--text-align-last-Stylus-article: var(--text-align-last-Stylus);
--letter-spacing-Stylus-article: calc(1em / 8);
--word-spacing-Stylus-article: var(--word-spacing-Stylus);
--hyphens-Stylus-article: normal;
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "paragraph";
--display-Stylus-article-p: block;
--margin-block-Stylus-article-p: .5lh;
--margin-Stylus-article-p-block: var(--margin-block-Stylus-article-p) 0;
--font-size-Stylus-article-p: calc(16px * 1.5);
--line-height-Stylus-article-p: 3;
--font-family-Stylus-article-p: "Article Stylus", "Article serif", serif;
--font-Stylus-article-p: var(--font-size-Stylus-article-p) / var(--line-height-Stylus-article-p) var(--font-family-Stylus-article-p);
--font-feature-settings-Stylus-article-p: var(--font-feature-settings-Stylus-article);
--font-variant-east-asian-Stylus-article-p: proportional-width;
--font-kerning-Stylus-article-p: normal;
--letter-spacing-Stylus-article-p: calc(1em / 8);
--word-spacing-Stylus-article-p: calc(1em / 16);
--text-align-Stylus-article-p: justify;
--text-align-last-Stylus-article-p: auto;
--text-indent-Stylus-article-p: 1em;
--text-indent-article-p: 1em;
--hyphens-Stylus-article-p: normal;
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "paragraph br";
--display-Stylus-article-p-br: block;
--content-Stylus-article-p-br: "";
--margin-Stylus-article-p-br: var(--margin-block-Stylus-article-p) 0;
--margin-Stylus-article-p-br-bottom: 0 0 var(--margin-block-Stylus-article-p) 0;
--margin-block-top-Stylus-article-p-br-bottom-p: var(--margin-block-Stylus-article-p);
}
& {
--Stylus-CSS: "* var";
--Stylus-CSS-group: "content";
--margin-block-Stylus-article-content: var(--margin-block-Stylus-article-p);
--max-block-size-Stylus-article-content: 100vh;
--max-height-Stylus-article-content: 100vh;
--border-radius-Stylus-article-content: 1em;
--max-block-size-Stylus-article-img: var(--max-block-size-Stylus-article-content);
--max-height-Stylus-article-img: var(--max-height-Stylus-article-content);
--border-radius-Stylus-article-img: var(--border-radius-Stylus-article-content);
--block-size-Stylus-article-fill-inline: auto;
--height-Stylus-article-fill-inline: auto;
--max-block-size-Stylus-article-fill-inline: 90vh;
--max-height-Stylus-article-fill-inline: 90vh;
--border-radius-Stylus-article-fill-inline: var(--border-radius-Stylus-article-content);
--line-height-Stylus-article-ruby: normal;
--font-family-Stylus-article-bold: "Article Sans", "Article Stylus", var(--font-family-Stylus), sans-serif;
--text-underline-position-Stylus-article-link: under;
--line-height-Stylus-article-link: normal;
--word-break-Stylus-article-link: break-all;
--text-underline-position-Stylus-article-any-link: var(--text-underline-position-Stylus-article-link);
--line-height-Stylus-article-any-link: var(--line...