Wiki 分类中的文档分类“简单模式”

对于其他对此感到些许不满的朋友,我写了一个小型用户样式,只要安装了 Stylus,就可以在桌面端将其还原。那个“显示 x 条回复”的功能也让我很困扰(不仅限于 Wiki,文档页面也是如此),不过目前你可以通过以下方式恢复作者信息:

/* ==UserStyle==
@name           Meta Enable Docs Author
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    修复 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
    }
}

抱歉代码写得有些潦草,据我所知 usercss 功能非常有限,不支持嵌套 :sweat_smile: 其实它是支持的

3 个赞