Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embeded gist unreadable #160

Open
leesei opened this issue Dec 1, 2014 · 4 comments
Open

Embeded gist unreadable #160

leesei opened this issue Dec 1, 2014 · 4 comments

Comments

@leesei
Copy link
Member

leesei commented Dec 1, 2014

I found the following styles are applied to {% gist %} tag plugin (with default landscape theme)

.article-entry .gist {
  margin: 0 -20px;
  border-style: solid;
  border-color: #ddd;
  border-width: 1px 0;
  background: #2d2d2d;
  padding: 15px 20px 15px 0;
}
{% gist 7071963 %}

The negative margin make no space between the text and the container.
Also, the dark background make it difficult to read the text.
"misc" and "history" header in the gist is barely readable.
selection_007

Is there any reason for the current .article-entry .gist sytle?

@Xuanwo
Copy link
Contributor

Xuanwo commented Dec 10, 2015

@leesei Looks like no reason, maybe we can pull a request to fix it.

@tomap
Copy link
Contributor

tomap commented Sep 15, 2018

I just checked, and if you remove the padding -20px, then your gist has a margin with white and does not fit 100% of the width of the page.
image

You can change that "default value" by setting 0px here:
https://github.com/hexojs/hexo-theme-landscape/blob/master/source/css/_variables.styl#L46

As for the black background, I believe this is a choice that you can change over there:
https://github.com/hexojs/hexo-theme-landscape/blob/master/source/css/_partial/highlight.styl#L2

I did both changes locally, and here is a screenshot of the result
image
Obviously, you'll need to change more that that to have a readable content, but with those two pointer, you should be able to start those changes on your side

Does that answer your question?

@tomap
Copy link
Contributor

tomap commented Sep 15, 2018

Also, if you need further changes in the default theme, please head over there to post an issue: https://github.com/hexojs/hexo-theme-landscape/issues

@stevenjoezhang stevenjoezhang transferred this issue from hexojs/hexo Mar 3, 2020
@stevenjoezhang
Copy link
Member

How about making the background color of .gist and .gist-meta transparent?
截屏2020-03-03下午8 33 23
截屏2020-03-03下午8 33 01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants