Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

The preview text is hard to read because it is light grey #105

Closed
rocketraman opened this issue Aug 30, 2015 · 8 comments
Closed

The preview text is hard to read because it is light grey #105

rocketraman opened this issue Aug 30, 2015 · 8 comments

Comments

@rocketraman
Copy link

The preview text is hard to read because it is a light grey color (rgb(170, 170, 170) or #aaaaaa).

The offending style seems to come from /usr/share/atom/resources/app.asar/static/atom.less and is named atom-workspace.

@mojavelinux
Copy link
Member

The body text should be:

color: rgba(0,0,0,.8);

Perhaps the default stylesheet is not passing on this setting in the Atom environment....

Yep, the problem is that when the styles are wrapped, it's trying to style the following selector:

.asciidoc-preview body

That needs to be fixed so that the body styles are applied directly to .asciidoc-preview. See the stylesheet in this repository.

@rocketraman
Copy link
Author

That needs to be fixed so that the body styles are applied directly to .asciidoc-preview. See the stylesheet in this repository.

Where does it need to be fixed?

@mojavelinux
Copy link
Member

@lucascosti
Copy link

+1 for this issue

@Xaviju
Copy link

Xaviju commented Oct 28, 2015

+1 Can't read.

Thanks!

@anthonny
Copy link
Member

Hi,
A quick workaround, in the Atom editor, open the command palette (Ctrl+Shift+P / Cmd+Shift+P) and type your stylesheet.
image

A tab named style.less will be open, at the end of the file add this :

atom-workspace {
 .asciidoc-preview {
   color: #000;
 }
}

I'll do my best to fix this bug soon.

@mojavelinux
Copy link
Member

@anthonny I still think that the text should be rgba(0,0,0,0.8) (equivalent to 333333) instead of #000. I'd also be okay with rgba(0,0,0,0.865) (equivalent to 222222).

@rocketraman
Copy link
Author

@anthonny Thank you, the workaround works (after a restart of Atom).

@mojavelinux I agree, rgba(0,0,0,0.8) definitely looks better than #000.

ggrossetie added a commit to ggrossetie/atom-asciidoc-preview that referenced this issue Apr 30, 2016
ggrossetie added a commit that referenced this issue May 16, 2016
Resolves #105, use #333 color for text
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants