Comments (4)
OK, I finally get it worked. Here are the steps:
-
Modifying the inline code color as above.
-
Comment out
background
in_variables.scss
as following:// Highlight code $highlight: ( // 'background': #f7f8f8, // <-- COMMENT OUT HERE 'font-size': 1.4rem, 'border': 1px solid, 'line-height': 1.3em );
-
The above code will result in losing backround color of the
pre
code, so we have to specify the background color in_code.scss
:// Reset for tag `pre` and for class `.gutter`, `.code`, `.tag` pre, .gutter, .code, .tag { background-color: #f7f8f8; // <-- MODIFY COLOR HERE font-family: #{map-get($font-families, 'highlight')}; border: none; padding: 0; margin: 0; // To override cursor attribute of `.tag` components cursor: text; }
-
npm run prod
from hexo-theme-tranquilpeak.
👋 @secsilm, it works, it's just that this property is overridden by another one:
from hexo-theme-tranquilpeak.
@LouisBarranqueiro Then how do I keep it from being overridden?
from hexo-theme-tranquilpeak.
I can't really tell because you modified the code of the theme. You need to search in the different files where the property background-color:#f7f8f8;
is set and remove it.
from hexo-theme-tranquilpeak.
Related Issues (20)
- How can I set Utterence in tranquilpeak? HOT 4
- Showing post folder instead of posts HOT 1
- posts folder appear instead of the posts HOT 1
- algoliasearch.js not exists HOT 2
- Tag to embed Google Slides HOT 1
- Npm install Error - install issue HOT 4
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- Use relative path for thumbnail image url HOT 4
- How would I go on about implementing a dark mode HOT 2
- Ease-in animation of sidebar is not quite like hugo-version tranquilpeak HOT 4
- Disqus not work HOT 3
- Add horizontal scroll bar for overflow table HOT 3
- even i read document of configuration, still there are few questions that i do not know how fix HOT 1
- how keep one of page at top of index page HOT 2
- Floating Table of Contents (side) HOT 2
- Disable image absolute URLs on the index page HOT 2
- Why use randToken when generating style.min.css file?
- can not deploy on github
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-tranquilpeak.