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

Fixes in CSS styles of code blocks. #1081

Merged
merged 9 commits into from
Oct 8, 2016
Merged

Fixes in CSS styles of code blocks. #1081

merged 9 commits into from
Oct 8, 2016

Conversation

ivan-nginx
Copy link
Collaborator

@ivan-nginx ivan-nginx commented Aug 28, 2016

  1. Add support diff highlight style (For support diff highlight style #1079).
  2. Add border radius to code blocks.
  3. Tomorrow theme on single code blocks.

Demo.


Tomorrow Normal

image

Tomorrow Night

image

Tomorrow Night blue

image

1. Remove border-radius (always show horizontal scrollbar on mobile devices).
2. Replace word-break with word-wrap, because don't break whole word on letters.
    https://webref.ru/css/word-break
    https://webref.ru/css/word-wrap
@iissnan
Copy link
Owner

iissnan commented Oct 8, 2016

It seems the highlight.styl has confilicts with #1079. Could you please help to resolve those conflicts on this PR?

@ivan-nginx
Copy link
Collaborator Author

@iissnan this is conflict?

+  word-wrap: break-all;
 -  color: $code-foreground;         +  color: $highlight-foreground;
 -  background: $code-background;        +  background: $highlight-background;

@ivan-nginx
Copy link
Collaborator Author

ivan-nginx/hexo-theme-next@f99be24

  1. Remove border-radius (always show horizontal scrollbar on mobile devices).
  2. Replace word-break with word-wrap, because don't break whole word on letters.
    https://webref.ru/css/word-break
    https://webref.ru/css/word-wrap

@iissnan iissnan merged commit f99be24 into iissnan:master Oct 8, 2016
@iissnan
Copy link
Owner

iissnan commented Oct 8, 2016

Merged. Thanks 👍

@iissnan iissnan added this to the v5.1.0 milestone Oct 19, 2016
habren pushed a commit to habren/hexo-theme-next that referenced this pull request Apr 9, 2017
Possible, that's why was confilicts with iissnan#1079 in iissnan#1081 merge.
larrylizhao pushed a commit to larrylizhao/hexo-theme-next that referenced this pull request Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants