Skip to content

easy-to-read dark mode for rpg.net forums by zedlopez

Screenshot of easy-to-read dark mode for rpg.net forums

Details

Authorzedlopez

Licenseunlicense

Categoryforum.rpg.net

Created

Updated

Size7.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

enhanced readability for forum.rpg.net

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           easy-to-read dark mode for rpg.net forums
@namespace      zedlopez.org/styles
@version        1.0.1
@description    enhanced readability for forum.rpg.net
@author         Zed Lopez
@license        unlicense
==/UserStyle== */
@-moz-document url-prefix("https://forum.rpg.net/") {

    .node-extra {
        font-size: .9375rem;
    }

    body {
        line-height: 1.5;
    }

    .bbWrapper > :first-child {
        margin-top: .75rem;
    }
    .bbWrapper > br:first-child {
        margin: 0;
    }
    blockquote.bbCodeBlock {
        margin-top: .75rem;
        margin-bottom: .75rem;
    }
    .p-body-inner {
        padding: 0;
    }

    .block-body {
        padding: 0;
        width: 100%;
    }

    article.message.message--post.js-post.js-inlineModContainer {
        padding: 0;
        margin-bottom: 1.5rem;
        background-color: #141414;
        border-radius: 1rem;
    }

    .block--messages .message + .message {
        margin-top: .75rem;
    }

    .message-cell.message-cell--user {
        flex: 0 0 fit-content;
        background-color: #1d1d1d;
        padding: .5rem .25rem .25rem 0;
    }

    section.message-user {
        width: 10rem;
    }

    .message-avatar-wrapper > a {
        border-radius: .75rem;
    }

    .message-main {
        background-color: #1d1d1d;
    }

    .message-main > * {
        padding: 0 1rem;
    }
    .message-cell {
        padding: 0;
    }

    .message-inner {
        border-radius: inherit;
        column-gap: 1rem;
        justify-content: space-around;
        background-color: #161616;
    }

    .message-cell.message-cell--main > .message-main {
        border-radius: inherit;
    }

    .message-userDetails {
        padding-top: .25rem;
    }

    .block--messages .message-inner:last-of-type .message-cell:first-child {
        border-radius: 1rem 0 0 1rem
    }
    .block--messages .message-inner:last-of-type .message-cell:last-child {
        border-radius: 0 1rem 1rem 0;
    }

    html:not(.template-forum_list) .p-pageWrapper {
        width: 55rem;
        margin: auto;
    }
    html.template-forum_view .p-pageWrapper {
        width: 70rem;
        margin: auto;
        background-color: #1d1d1d;
    }
    html.template-forum_view .structItem-title {
        font-size: 1rem;
    }
    span.label.label--primary {
        color: green;
    }

    .message-userExtras {
        text-align: center;
    }
    .bbWrapper {
        background-color: #1d1d1d;
    }

    .node-extra-row,
    .contentRow-minor,
    .block-header .block-desc,
    .block--messages .message {
        color: #EEE;
    }

    .block-row.block-row--minor,
    .block-desc,
    .blocks-desc,
    .contentRow,
    header.message-attribution,
    .bbCodeBlock-title,
    .bbCodeBlock-content,
    .bbCodeBlock-expandContent {
        font-size: .9375rem;
    }

    header.message-attribution {
        background-color: green;
        padding-top: .125rem;
        padding-bottom: .125rem;
        border-radius: 0 1rem 0 0;
    }

    footer.message-footer {
        border-radius: 0 0 1rem 1rem;
        padding-bottom: .5rem;
    }

    aside.message-signature,
    .message-main footer {
        border-top: .05rem solid currentColor;
        margin-top: 1rem;
    }
    /* aside.message-signature {
         display: none;
    } */
    .message-actionBar .actionBar-set {
        font-size: .9375rem;
    }
    .message-userBanner.userBanner {
        border: none;
        font-size: .9375rem;
    }
    .userBanner.userBanner--primary.message-userBanner {
        background-color: #1d1d1d;
        /*border-radius: .5rem;*/
    }
    h4.message-name {
        margin-bottom: .25rem;
    }
    .userBanner.userBanner--staff strong,
    .userBanner.userBanner--primary strong {
        color: limeGreen;
        font-weight: bold;
    }

    .bbCodeBlock-title {
        color: limeGreen;
    }
    .bbCodeBlock-expandLink a {
        color: limeGreen;
    }
    .message-signature > .bbWrapper {
        padding-top: .75rem;
    }
    .message-userTitle {
        font-size: .9375rem;
    }
    .structItem-pageJump {
        font-size: .9375rem;
    }

    dl.tagList {
        margin-left: .5rem;
    }
    dl.tagList > dd {
        margin-left: .25rem;
    }
    a.tagItem {
        font-size: .9375rem;
        color: #EEE;
        border: .05rem solid currentColor;
        border-radius: .25rem;
        margin-right: .25rem;
    }

    .message-signature {
        font-size: .9375rem;
        color: #EEE;
    }
    .message-attribution {
        color: #EEE;
    }
    .structItem-parts > li:nth-child(2n) {
        color: #EEE;
    }
    .structItem-title {
        line-height: 1.25;
    }
    .structItem-minor {
        font-size: .9375rem;
        color: #EEE;
        padding-top: .25rem;
    }
    .structItem-pageJump {
        margin-left: .25rem;
        color: #EEE;
    }
    .structItem-pageJump a {
        border: .025rem solid currentColor;
        border-radius: .2rem;
        margin-right: .16rem;
    }
    .structItem-title > a:hover {
        color: #1AF;
    }
    .structItem.structItem--thread.js-inlineModContainer {
        color: #EEE;
        margin-top: .5rem;
        margin-bottom: .5rem;
    }
    a:visited {
        color: #A5E;
    }

    .pageNav-page.pageNav-page--current {
        background: green;
        border: .1rem solid green;
    }
    .pageNav-page.pageNav-page--current > a {
        color: #FFF;
    }

    .p-sectionLinks-list .p-navEl {
        font-size: .9375rem;
    }
    .p-sectionLinks {
        color: #1AF;
    }
    .p-sectionLinks-list .p-navEl:hover a:hover {
        color: #1AF;
    }
    a {
        color: #1AF;
    }
    a:focus { outline: .1rem solid currentColor; }
    html {
        color: #EEE;
    }
    .p-header {
        color: inherit;
        background-color: #111;
    }

    .p-sectionLinks-list a {
        color: #1AF;
    }

    .p-breadcrumbs > li {
        font-size: .9375rem;
    }
    .button.button--cta,
    a.button.button--cta {
        background: green;
    }
    a.button--ignoreText {
        visibility: hidden;
    }
    a.button--ignoreText:after {
        content: '\00d7';
        text-align: center;
        font-weight: bold;
        visibility: visible;
        border: .05rem solid #FFF;
        border-radius: .16rem;
        padding-left: .25rem;
        padding-right: .25rem;
        background-color: darkred;
    }
    .notice.notice--light {
        background-color: #111;
        color: #EEE;
    }
    .notice-content {
        padding: 0 1rem 0 1rem;
    }

    ul.structItem-extraInfo > li {
        display: flex;
        margin-top: .2rem;
        align-items: center;
        justify-content: center;
    }

    .block-container {
        color: #EEE;
        background-color: #111;
    }
    .p-description {
        font-size: .9375rem;
        color: #EEE;
    }
    .message-attribution {
        color: #EEE;
    }
    /* .p-footer-copyright {
        display: none;
    } */
    .p-footer {
        color: #EEE;
        font-size: .9375rem;
    }
    .p-footer a {
        color: #1AF !important;
        font-weight: bold;
    }
    .actionBar-set > a {
        font-size: .875rem;
        color: #FFF;
        padding: 0 .5rem;
        border: .025rem solid;
        border-radius: .5rem;
        background-color: green;
    }
}

Reviews

No reviews yet.