Atomic-Ideas / lunar-particle-ui

Dark theme emphasizing the Universe!
MIT License
3 stars 4 forks source link

Deprecated selector in `lunar-particle-ui/index.less` #2

Open xfastshisan opened 7 years ago

xfastshisan commented 7 years ago

In lunar-particle-ui/index.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

LonelySquid commented 2 years ago

Till the issue is solved by the author, wanna share this link and give a small do-it-yourself-fix for an easy and quick resolution, the link gives more info in case someone wanna dig deeper into the matery. Anyways, the error is caused by 3 lines of code '::shaodow' inside the editor.less file. Removing these three lines fixes the theme and removes the error messages from the GUI.

https://flight-manual.atom.io/shadow-dom/sections/removing-shadow-dom-styles/

Mini tutorial:

Step 1: access the file to edit substep 1: press [CTRL + ,] to access the settings menu of Atom substep 2: navigate to 'Themes' substep 3: click on 'lunar-particle-ui' substep 4: click on 'view code' substep 5: you should end up in this file directory: --> .atom\packages\lunar-particle-ui\styles\editor.less

Step 2: edit the file substep 1: hit [CTRL + F] and find and replace '::shadow" for '' (basically removing 3x '::shadow' from the file) substep 2: safe the file and enjoy!

Hope it may help anyone who struggles with it!! <3