LoginSignup
0
0

More than 5 years have passed since last update.

codemirror lint gutter iconの変更

Posted at

iconのサイズ及びカラーはhttps://icongr.am が便利。

https://icongr.am/clarity/error-standard.svg?size=16&color=ff0088

default lint.cssの後に入れ、上書き。

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/addon/lint/lint.css">

<style>
/*lint setting*/
.CodeMirror-lint-tooltip {
  background-color: white;
  border: unset;
  border-radius: unset;
  color: #000;
}
.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {
  background-image:url('https://icongr.am/clarity/error-standard.svg?size=16&color=ff0088');
}

.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {
  /*unknown-status*/
  background-image:url('https://icongr.am/clarity/info-standard.svg?size=16&color=555555');  
}

.CodeMirror-lint-marker-multiple {
/*
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");
  background-repeat: no-repeat;
  background-position: right bottom;
  width: 100%; height: 100%;
*/
}
</style>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0