Skip to content

_.txt by djurii

Details

Authordjurii

LicenseNo License

Categoryuserstyles

Created

Updated

Size1.4 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

For local .txt files

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           _.txt
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */
@-moz-document regexp("^file.*.txt$") {
    body{
        color: #ccc;
        background-color: #222;
    }
    pre {
        /* border: 3px solid #73AD21; */
        
        /* font */
         -webkit-locale: "jp";
        font-family: Yu Mincho;
        /* font-family: nagayama_kai, Yu Mincho; */
        font-size: 30px;
        
        margin: auto;
        width: 80%;
        max-width: 900px;
        word-wrap: normal;
        overflow-wrap: break-word;
        white-space: pre-wrap;
    }
}

@-moz-document regexp("^file.*_kr.txt$") {
    pre {
        -webkit-locale: "kr";
        
        font-family: "NanumGothic", serif;
        font-size: 30px;
    }
}

@-moz-document regexp("^file.*subs.txt$") {
    body{
        color: #ccc;
        background-color: #222;
        flex-direction: column-reverse;
        display: flex;
    }
    p {
        /* border: 3px solid #73AD21; */
        -webkit-locale: "jp";
        
        font-family: Yu Mincho;
        /* font-family: nagayama_kai, Yu Mincho; */
        font-size: 30px;
        
        margin: auto;
        width: 80%;
        max-width: 900px;
        word-wrap: normal;
        overflow-wrap: break-word;
        white-space: pre-wrap;
    }
}

Reviews

No reviews yet.