This repository was archived by the owner on Jul 27, 2024. It is now read-only.
This repository was archived by the owner on Jul 27, 2024. It is now read-only.
Update theme to hilight whole lines #13
Open
Description
I thought it would be great to hilight the whole diffed lines, so I ended using the following stylesheet:
atom-text-editor::shadow {
.line {
position: relative;
.meta.diff.header::after, .meta.diff.index::after,
.markup.inserted.diff::after, .markup.deleted.diff::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
z-index: -100;
content: '';
}
.meta.diff.header::after, .meta.diff.index::after {
background-color: #113050;
}
.markup.inserted.diff::after {
background-color: #224422;
}
.markup.deleted.diff::after {
background-color: #442222;
}
.markup.inserted.diff {
color: #ccffcc;
}
.markup.deleted.diff {
color: #ddaaaa;
}
}
}
It renders well with my theme (solarized-dark), but colors might need to be changed to use theme colors.
Here is a preview:
I got the CSS from here : https://discuss.atom.io/t/highlight-entire-line-depending-on-syntax/20653