Skip to content

Git History - Eye-Catching Diff by deathman

Screenshot of Git History - Eye-Catching Diff

Details

Authordeathman

LicenseMIT

Categorygithub.githistory.xyz

Created

Updated

Size1.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Diff ➕ & ➖ to quickly find added/removed lines for Git History

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Git History - Eye-Catching Diff
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    Diff ➕ & ➖ to quickly find added/removed lines for Git History
@author         DeathMan
==/UserStyle== */

@-moz-document domain("github.githistory.xyz") {
    code div[style*="opacity: 1;"] {
        overflow: visible !important;
    }

    code div[style*="opacity: 1;"]::before {
        content: "+";
        position: absolute;
        left: -30px;
        color: #00ff4a;
        font-weight: 600;
        scale: 1.3;
    }

    code div[style*="transform: translateX(-250px);"] {
        transform: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        clip-path: inset(-5px 100% -5px -35px);
        position: relative;
    }

    code div[style*="transform: translateX(-250px);"]::before {
        content: "_";
        position: absolute;
        top: -16px;
        left: -29.5px;
        color: red;
        font-weight: 600;
        scale: 1.5;
    }
}

Reviews

No reviews yet.