Giter Club home page Giter Club logo

Comments (4)

secsilm avatar secsilm commented on June 20, 2024 1

OK, I finally get it worked. Here are the steps:

  1. Modifying the inline code color as above.

  2. 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
    );
  3. 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;
        }
  4. npm run prod

from hexo-theme-tranquilpeak.

LouisBarranqueiro avatar LouisBarranqueiro commented on June 20, 2024

👋 @secsilm, it works, it's just that this property is overridden by another one:
Screen Shot 2022-01-12 at 9 35 19 PM

from hexo-theme-tranquilpeak.

secsilm avatar secsilm commented on June 20, 2024

@LouisBarranqueiro Then how do I keep it from being overridden?

from hexo-theme-tranquilpeak.

LouisBarranqueiro avatar LouisBarranqueiro commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.