Created
August 30, 2017 11:02
-
-
Save cleverbeagle/88a8cf724207b1bf474b3912c21c5a4c to your computer and use it in GitHub Desktop.
Fix Atom Linter Underline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Styling Error Types | |
atom-text-editor.editor .linter-highlight, .linter-highlight{ | |
&.badge { | |
border-radius: @component-border-radius; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} | |
&.error { | |
&:not(.line-number){ | |
background-color: transparent; | |
color: contrast(@background-color-error); | |
} | |
.linter-gutter{ | |
color: @background-color-error; | |
} | |
.region { | |
border-bottom: 1px dashed @background-color-error; | |
} | |
} | |
&.warning { | |
&:not(.line-number){ | |
background-color: @background-color-warning; | |
color: contrast(@background-color-warning); | |
} | |
.linter-gutter{ | |
color: @background-color-warning; | |
} | |
.region { | |
border-bottom: 1px dashed @background-color-warning; | |
} | |
} | |
&.trace, &.info { | |
&:not(.line-number){ | |
background-color: @background-color-info; | |
color: contrast(@background-color-info); | |
} | |
.linter-gutter{ | |
color: @background-color-info; | |
} | |
.region { | |
border-bottom: 1px dashed @background-color-info; | |
} | |
} | |
// Used by bottom status icon | |
&.status-error { | |
color: @background-color-error; | |
} | |
&.status-success{ | |
color: @background-color-success; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fixes the background color for linter errors in Atom ~1.19.0+. Removes the bright red behind text in favor of just the dashed underline. On a mac, open
Atom > Stylesheet...
and paste this at the bottom of the file. Save and the changes should appear.