cppreference 中文样式调整

修改cppreference中文站布局,使其更易阅读

目前為 2021-09-04 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

/* ==UserStyle==
@name           cppreference 中文样式调整
@name:en        cppreference chinese-style
@description    修改cppreference中文站布局,使其更易阅读
@description:en Modify the layout of the Chinese site of cppreference to make it easier to read
@author         windowsair
@namespace      windowsair-style-cppreference
@version        0.0.1
@license        MIT
==/UserStyle== */
@-moz-document domain("zh.cppreference.com") {
    code {
        line-height: 2.0em !important;
    }
    p {
        line-height: 1.5em !important;
    }
    i {
        margin-left: 0.1em;
        margin-right: 0.3em;
    }
    tbody {
        line-height: 1.4em;
    }
    .t-dsc > td {
        line-height: 1.4em !important;
    }
    .t-dsc > td:last-child {
        padding: 0.2em 0 0 0.75em !important;
    }
    .t-lines > span {
        line-height: 1.3em;
    }
    .cpp.source-cpp {
        line-height: 1.3em;
    }
    .t-nv {
        line-height: 1.3em !important;
    }
    .dsctable > tbody > tr > td {
        padding: 0.3em 0.1em 0.25em 0.75em !important;
    }

}