cppreference 中文样式调整

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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;
    }

}