]> arthur.barton.de Git - atom-ax-monokai-syntax.git/commitdiff
Use "atom-text-editor" tag instead of "editor[-colors]" classes fix-editor-classes github/fix-editor-classes
authorAlexander Barton <alex@barton.de>
Wed, 20 May 2015 09:06:41 +0000 (11:06 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 20 May 2015 09:06:41 +0000 (11:06 +0200)
This fixes the following deprecation warnings:

- "Use the atom-text-editor tag instead of the editor-colors class."

- "Target the selector :host, atom-text-editor instead of
  .editor-colors for shadow DOM support."

- "Use the atom-text-editor tag instead of the editor class."

- "Target the selector :host, atom-text-editor instead of
  .editor for shadow DOM support."

Closes joaoafrmartins/seti-monokai#7,
Closes joaoafrmartins/seti-monokai#8,
Closes joaoafrmartins/seti-monokai#9,
Closes joaoafrmartins/seti-monokai#10.

index.less

index 7928bccb97bd23a261192c284717b53236e3ef0c..324f8a50ccffe26f828f0bf59a36924f07a1c86d 100644 (file)
@@ -1,11 +1,9 @@
 @import 'syntax-variables';
 
-.editor-colors {
+:host, atom-text-editor {
   background-color: @syntax-background-color;
   color: @syntax-text-color;
-}
 
-.editor {
   .invisible-character {
     color: @syntax-invisible-character-color;
   }