Coder Social home page Coder Social logo

Font size of blog posts about jalpc HOT 2 CLOSED

jarrekk avatar jarrekk commented on May 21, 2024
Font size of blog posts

from jalpc.

Comments (2)

jarrekk avatar jarrekk commented on May 21, 2024

@ashutoshmjain Long time no see :)
When I design this theme I didn't take blog font size into consideration, but it's not easy for you to read, so I found an open source solution: Markdown CSS. But it needs some edit before we use it. For changing font size I have the following code for reference:

.article p {
  font-size: 1.3em;
  margin-bottom: 1.3rem;
}

.article li {
  font-size: 1.3em;
}

.article code {
  font-size: 1.3em;
}

.article h1,
.article h2,
.article h3,
.article h4 {
  margin: 1.414rem 0 .5rem;
  font-weight: inherit;
  line-height: 1.42;
}

.article h1 {
  margin-top: 0;
  font-size: 4.398rem;
}

.article h2 {
  font-size: 3.11rem;
}

.article h3 {
  font-size: 2.199rem;
}

.article h4 {
  font-size: 1.555rem;
}

.article h5 {
  font-size: 1.233rem;
}

.article h6 {
  font-size: .968rem;
}

.article small {
  font-size: .778em;
}

You can create a file *static/css/blog.css, and link it at _layouts/post.html line 4. If the font size is not satisfied, you can change it.

from jalpc.

ashutoshmjain avatar ashutoshmjain commented on May 21, 2024

Wow .. It worked like a charm .. Many thanks .

from jalpc.

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.