-
Notifications
You must be signed in to change notification settings - Fork 484
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
How to modify font and highlight colors? #10
How to modify font and highlight colors? #10
Comments
Firstly, good to see that the theme please and also that users customize it :). To modify the font of post content : you have to edit To modify simple line code, edit code {
display: inline-block;
font-family: 'Open Sans';
font-weight: 400;
border-radius: 3px;
background: #f5f5f5;
padding: 0 10px;
} To modify the highlight code block, you can create your own highlight style by editing // Highlight
$highlight: (
'font-family': Menlo,
'font-size': 1.3rem,
'border': 1px solid #d9d9d9,
'line-height': 1.2em
);
// Highlight colors
$highlight-colors: (
// Background
'white': #fff,
// General color
'night-rider': #333,
'bondi-blue': #0086b3,
'persimmon': #df5000,
'asparagus': #63a35c,
// Comment
'pewter': #969896,
'cardinal': #a71d5d,
'scampi': #795da3,
'bahama-blue': #1d3e81,
// Deletion color for .diff file
'free-speech-red': #bd2c00,
// Deletion background color for .diff file
'misty-rose': #ffecec,
// Addition color for .diff file
'limeade': #55a532,
// Addition background color for .diff file
'honeydew': #eaffea
); and If you have already a css files to stylize highlighted code, erase or comment the content of figure.highlight {
background: white;
margin: 10px 0;
border-radius: 3px;
line-height: map-get($highlight, line-height);
color: map-get($highlight-colors, night-rider);
font-family: map-get($highlight, font-family);
border: map-get($highlight, border);
overflow: hidden;
table {
display: block;
width: 100%;
overflow-y: hidden;
overflow-x: scroll;
}
// Reset for tag `pre` and for class `.gutter`, `.code`, `.tag`
pre,
.gutter,
.code,
.tag {
border: none;
padding: 0;
margin: 0;
// To override cursor attribute of `.tag` components
cursor: text;
}
// Meta bar which contains name of the file and his link
figcaption {
font-size: 1.3rem;
padding: 10px 15px;
margin: 0;
background: #f7f7f7;
border-bottom: map-get($highlight, border);
color: #999;
a {
float: right;
}
}
// Gutter which contains line numbers
.gutter {
background: white;
border-right: map-get($highlight, border);
padding: 0.3em 0.5em;
.line {
color: #aaa;
}
}
// Code container
.code {
padding: 0.3em 0.3em 0.3em 1em;
}
// All lines in gutter and code container
.line {
height: map-get($highlight, line-height);
font-size: map-get($highlight, font-size);
}
}
// Gist
.gist {
.line,
.line-number {
font-size: map-get($highlight, font-family);
font-family: 1em;
margin: 0 0 5px 0;
}
} Make sure that all tag, class and id of jacman style matches highlight html elements. Please read Developer documentation to build the theme after changes |
Hey,man.Thanks a lot! |
Why ruby? I just create a feature to allow users add local fonts. I will release it in 1.0.1 version, tomorrow. If you want it now :
|
Because when run |
Interesting point about ruby. Because normally npm should get all dependencies without help from ruby or gem. Please create an issue to reference this problem and comment it with your solution please. I think that It will help many other people. Thank you man :) |
I have opened a new issue about ruby and sass problem. |
yeah, i hope too. :) |
Thank you for writing this excellent theme.It is very nice ,performs well in other mobile platforms, easy to customize and display
Mathjax
well in abstract.As a Chinese user, I added a
SinaWeibo
icon to the sidebar, addedWeixin
andWeibo
to the share group at the bottom of posted articles, generate table of content automatically for post(but it looks ugly) and takeduoshuo
instead ofdisqus
for default comments(because of the great fire wall).Even though I notice there are searching input for
page categories
andpage tags
, but I add aswiftype
to search entire site according to the content.But the font and highlight colors makes me feel uncomfortable and tired.The grey font and white background are similar and the background of
code-block
and the foreground share the same problem.The following two pictures is the view of my blog in
tranquilpeak
andjacman
. And I think the second picture is more readable and comfortable.And the round square is more beautiful than a simple square.I want to know how to modify font and highlight colors. I tried to modify
css
andscss
files,but it seems doesn't work. And I am looking forward to a new set of fonts and highlight colors.Thank you~tranquilpeak
![tranquilpeak view](http://7xj48a.com1.z0.glb.clouddn.com/2015-05-16 08:24:23 的屏幕截图.png)
jacman
![jacman view](http://7xj48a.com1.z0.glb.clouddn.com/2015-05-16 08:25:32 的屏幕截图.png)
The text was updated successfully, but these errors were encountered: