Dark Git Book

Dark Git book

当前为 2022-09-15 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name           Dark Git Book
@namespace      mailto: [email protected]
@version        0.2.0
@description    Dark Git book
@author         fish-404
@license        MIT
==/UserStyle== */

@-moz-document domain("gitbook.io") {
    /* Left Sidebar */
    .r-1vckr1u
    , .r-1vckr1u /* Code */
    {
        background-color: #161823;
    }
    
    /* Left Sidebar Header Text */
    [data-rnw-int-class="nearest_249__265-1767_"] {
        color: whitesmoke;
    } 
    
    /* Left Sidebar grident */
    .r-10ptun7 {
        background-image: none !important;
    }
    
    /* Left sidebar gitbook icon */
    .r-1b00too {
        background-color: black;
    }
    
    /* Content and Right sidebar */
    .r-14lw9ot {
        background-color: #283142;
    }
    
    /* Content Text */
    .r-1nf4jbm {
        color: whitesmoke;
    }
    
    /* Quote | both sidebar text | search ico | inline code */
    .r-1bnj018
    {
        color: rgb(125, 162, 211);
    }
    
    /* Code block hightlight */
    .r-y7gyvo
    , .r-vq47rg
    , .r-11faab8
    , .r-qtrn9a
    , .r-1ghhsy9 /* Left siderbar active text */
    , body:not(.dragging) [data-rnw-int-class="nearest____"]:focus [data-rnw-int-class="nearest___265-1767_"] /* right siderbar focus */
    , .r-8j6ftb
    {
        color: #eaff00;
    }
    
    .r-123mryc {
        color: orange
    }
    
    /* right sider bar active left border */
    .r-hqnlqz 
    , .r-11tfr12
    {
        border-left-color: #eaff00;
    }
    
    /* Link */
    body:not(.dragging) [data-rnw-int-class="link____"]:hover [data-rnw-int-class="nearest_*"]
    , [data-rnw-int-class="nearest_*"]
    , body:not(.dragging) [data-rnw-int-class="nearest____"]:hover [data-rnw-int-class="nearest___*"]
    , body:not(.dragging) [data-rnw-int-class="link____"]:hover [data-rnw-int-class="nearest_265-1758_267-1759-243__"]
    , [data-rnw-int-class="nearest_265-1758_267-1759-243__"]
    , [data-rnw-int-class="nearest_249__265-1758_"]
    {
        color: lightgreen;     
    }    
}

@-moz-document domain("gitbooks.io") {  
    .book-summary 
    , .markdown-section code
    , .gl-wrapper
    , .markdown-section pre
    {
        background-color: #161823;
        color: whitesmoke !important;
    }
    
    .book-body 
    , .gl-wrapper .gitbook-link 
    , #book-search-input
    {
        background-color: #283142;
    }
    
    .markdown-section
    , .book-summary ul.summary li a
    , .book-summary ul.summary li span 
    , search-results-title
    , .book-body
    , #book-search-results .search-results .has-results .search-results-item
    , .book-header
    {
        color: whitesmoke !important;
    }
    
    .gl-wrapper::before {
        display: none;
    }
    
    .book-summary ul.summary li.active > a 
    , .markdown-section a 
    , #book-search-results .search-results .has-results .search-results-item a
    
    {
        color: yellow !important;
    }
}