Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff ➕ & ➖ for Added & Deleted lines *[CSS Provided]* #184

Open
nitin2953 opened this issue Mar 8, 2022 · 1 comment
Open

Diff ➕ & ➖ for Added & Deleted lines *[CSS Provided]* #184

nitin2953 opened this issue Mar 8, 2022 · 1 comment

Comments

@nitin2953
Copy link

https://gist.github.com/nitin2953/e3c7a8bc4a4805c97963671f2b3790da

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;
}

👆 to quickly find Added/Removed lines, when scrolling fast through long file
Maintainers could (modify &) add it in site css or link to it in Readme.md, for users using extension like Stylus

@open-collective-bot
Copy link

Hey @nitin2953 👋,

Thank you for opening an issue. We will get back to you as soon as we can. Have you seen our Open Collective page? Please consider contributing financially to our project. This will help us involve more contributors and get to issues like yours faster.

https://opencollective.com/git-history

We offer priority support for all financial contributors. Don't forget to add priority label once you become one! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant