위키 카테고리에서 문서 카테고리의 「간이 모드」

이걸 약간 불편해하는 다른 모든 분들을 위해, 스타일러스(Stylus)가 설치되어 있다면 데스크톱에서 이를 되돌리는 작은 유저스타일을 작성했습니다. "x개의 답글 보기"라는 기능도 위키뿐 아니라 문서에서 짜증이 나긴 하지만, 지금은 이렇게 하면 작성자를 다시 볼 수 있습니다.

/* ==UserStyle==
@name           Meta Enable Docs Author
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    Fixes simple mode author & category hiding for docs categories on Discourse meta
@author         pyxfluff
==/UserStyle== */
@-moz-document domain("meta.discourse.org") {
    .post__topic-map.topic-map.--op {
        display: flex !important
    }

    .topic-post[data-post-number="1"] {
        .topic-avatar {
            display: block !important;
        }

        .topic-meta-data {
            .names {
                display: block !important
            }

            .like,
            .reply {
                display: block !important
            }
        }
    }

    .topic-list.doc-simple-mode .link-bottom-line .badge-category__wrapper,
    .topic-list.doc-simple-mode .topic-excerpt {
        display: inline-flex !important
    }
}

엉성하게 짠 코드라 죄송합니다. 유저CSS는 제 지식 범위 내에서는 정말 제한적이라 중첩(nesting)을 지원하지 않는 것 같습니다 :smiling_face_with_tear: 아니, 지원하긴 합니다.

3개의 좋아요