Skip to content

知网翻译 - 简洁排版 by frozenbicycle

Screenshot of 知网翻译 - 简洁排版

Details

Authorfrozenbicycle

LicenseNo License

Categorydict.cnki.net

Created

Updated

Size1.3 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

适用于【cnki翻译助手】。将翻译框从左右布局改为上下布局,并隐藏页面上的无关元素。

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           知网翻译简洁排版
@namespace      github.com/openstyles/stylus
@version        1.0.2
@description    A new userstyle
@author         2690874578@qq.com
==/UserStyle== */

@-moz-document url-prefix("https://dict.cnki.net/index") {
    /* 在此插入代码... */
    html, body {
        min-width: 0 !important;
    }
    
    .translate {
        display: flex !important;
        flex-direction: column !important;
        width: 80vw !important;
        height: 70vh !important;
        max-width: 1200px !important;
    }
    
    .trans-left, .trans-right {
        width: 100% !important;
        height: 50% !important;
    }
    
    #translateLeft {
        padding-right: 0.5em;
    }
    
    .trans-left-con,
    #translateLeft,
    .translatedContent,
    .translatedContent-inner,
    .translatedContent-inner > pre {
        height: 100% !important;
    }
    
    #translateLeft, .translatedContent-inner {
        font-size: 16px !important;
        line-height: 22px;
        overflow-y: scroll;
    }
    
    .hot-words, .footer, .member-lock-mask, #textareaBgLeft {
        display: none !important;
    }
    
    .el-button.el-button--primary.el-button--mini {
        width: 15vw !important;
    }
}

Reviews

No reviews yet.