Skip to content

日本語環境での入力フォーム等へのスタイル form (ja-JP) by MaruniUmebachi

Details

AuthorMaruniUmebachi

LicenseCC 0

Category.go.jp

Created

Updated

Size5.4 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

入力フォームの奇妙なスタイルを避けるためのマイナーな調整。私の用意したほかのスタイルと一緒に導入しないと動きません。

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         0. Style form
@version      20241116.15.26
@namespace    https://userstyles.world/user/MaruniUmebachi
@description  A minor tweak to avoid strange styles on input forms.\n入力フォームに変なスタイルがつかないようにするための小細工。
@author       MaruniUmebachi
@license      CC 0
==/UserStyle== */

@-moz-document regexp(".*") {
:root {
    --Stylus-CSS: "* form";
    &,
    body {
        --Stylus-CSS-section-1: "* form" "read_write";
        --font-feature-settings-Style-read_write: var(--font-feature-settings-Style-form);
        --font-variant-Style-read_write: var(--font-variant-Style-form);
        --font-variant-alternates-Style-read_write: var(--font-variant-alternates-Style-form);
        --font-variant-caps-Style-read_write: var(--font-variant-caps-Style-form);
        --font-variant-east-asian-Style-read_write: var(--font-variant-east-asian-Style-form);
        --font-variant-ligatures-Style-read_write: var(--font-variant-ligatures-Style-form);
        --font-variant-numeric-Style-read_write: var(--font-variant-numeric-Style-form);
        --font-variant-position-Style-read_write: var(--font-variant-position-Style-form);
        --font-variation-settings-Style-read_write: var(--font-variation-settings-Style-form);
        --font-stretch-Style-read_write: var(--font-stretch-Style-form);
        --font-weight-Style-read_write: var(--font-weight-Style-form);
        --spacing-Style-read_write: var(--spacing-Style-form);
        --letter-spacing-Style-read_write: var(--letter-spacing-Style-form);
        --word-spacing-Style-read_write: var(--word-spacing-Style-form);
    }

    :is(input, textarea):read-write {
        --Stylus-CSS: "* form" "read_write";
        --Stylus-CSS-section-1: "* form" "read_write";
        font-feature-settings: var(--font-feature-settings-Style-read_write);
        font-variant: var(--font-variant-Style-read_write);
        font-variant-alternates: var(--font-variant-alternates-Style-read_write);
        font-variant-caps: var(--font-variant-caps-Style-read_write);
        font-variant-east-asian: var(--font-variant-east-asian-Style-read_write);
        font-variant-ligatures: var(--font-variant-ligatures-Style-read_write);
        font-variant-numeric: var(--font-variant-numeric-Style-read_write);
        font-variant-position: var(--font-variant-position-Style-read_write);
        font-variation-settings: var(--font-variation-settings-Style-read_write);
        font-stretch: var(--font-stretch-Style-read_write);
        font-weight: var(--font-weight-Style-read_write);
        letter-spacing: var(--letter-spacing-Style-read_write);
        word-spacing: var(--word-spacing-Style-read_write);
    }

    &,
    body {
        --Stylus-CSS-section-2: "* form" "search";
        --font-feature-settings-Style-search: var(--font-feature-settings-Style-read_write);
        --font-variant-Style-search: var(--font-variant-Style-read_write);
        --font-variant-alternates-Style-search: var(--font-variant-alternates-Style-read_write);
        --font-variant-caps-Style-search: var(--font-variant-caps-Style-read_write);
        --font-variant-east-asian-Style-search: var(--font-variant-east-asian-Style-read_write);
        --font-variant-ligatures-Style-search: var(--font-variant-ligatures-Style-read_write);
        --font-variant-numeric-Style-search: var(--font-variant-numeric-Style-read_write);
        --font-variant-position-Style-search: var(--font-variant-position-Style-read_write);
        --font-variation-settings-Style-search: var(--font-variation-settings-Style-read_write);
        --font-stretch-Style-search: var(--font-stretch-Style-read_write);
        --font-weight-Style-search: var(--font-weight-Style-read_write);
        --spacing-Style-search: var(--spacing-Style-read_write);
        --letter-spacing-Style-search: var(--letter-spacing-Style-read_write);
        --word-spacing-Style-search: var(--word-spacing-Style-read_write);
    }

    :is([type="search"]) {
        --Stylus-CSS: "* form" "search";
        --Stylus-CSS-section-2: "* form" "search";
        font-feature-settings: var(--font-feature-settings-Style-search);
        font-variant: var(--font-variant-Style-search);
        font-variant-alternates: var(--font-variant-alternates-Style-search);
        font-variant-caps: var(--font-variant-caps-Style-search);
        font-variant-east-asian: var(--font-variant-east-asian-Style-search);
        font-variant-ligatures: var(--font-variant-ligatures-Style-search);
        font-variant-numeric: var(--font-variant-numeric-Style-search);
        font-variant-position: var(--font-variant-position-Style-search);
        font-variation-settings: var(--font-variation-settings-Style-search);
        font-stretch: var(--font-stretch-Style-search);
        font-weight: var(--font-weight-Style-search);
        letter-spacing: var(--letter-spacing-Style-search);
        word-spacing: var(--word-spacing-Style-search);
    }
}

:where(input[type="text"]) {
    --Stylus-CSS: "* form" "text";
    font-feature-settings: var(--font-feature-settings-Style-form);
    font-variant-east-asian: var(--font-variant-east-asian-Style-form);
    padding-inline: var(--padding-inline-Style-form);
}
}

@-moz-document regexp("^\\w+-extension://.+") {

}

Reviews

No reviews yet.