question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More display-* headings - .display-5

See original GitHub issue

New .display-5 class

When creating website banners I often find myself using one of the .display-* headings from Bootstrap. They’re clean, simple and look great!

The problem I’ve encountered is I find myself slightly restricted with the current .display-* classes, more specifically with the sizing, I often find myself needing something slightly smaller than .display-4 and often tend to create my own .display-5 class, and in the very rare occasion a .display-6 class.

Could we extend this part and create an additional .display-65 class?

Something like:

.display-5 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

I’m sure this wouldn’t take too long to add?

This is a mock-up of what the sizing would look like:

display-5-class

Many Thanks!

😃

Reference: https://getbootstrap.com/docs/4.1/content/typography/

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
chrisbocommented, May 15, 2018

Display 1-4 are in the large, larger, extra large, largest (let’s get ridiculous) range. It would be good to have display 5-6 which would add small and medium. Would also compliment h 1-6

4reactions
andresgalantecommented, May 15, 2018

Yes, everything is just a few lines of CSS to add.

As a framework and a dependency is our responsibility to take care not to bloat our users code more than we already do.

That’s why in my opinion, we should think about each usecase and make sure they are common enough to belong in bootstrap and not in the authors code.

I don’t think that what you are proposing is wrong, I just wonder if it is a common enough need.

Does it make sense?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display5 FAQ and Quickstart Guide -
Here is our Display5 FAQ and Quickstart Guide to help you get started and iron out any of the technical wrinkles to ensure...
Read more >
How to display headings information in the margins
Is it possible to place smart headings information in the margins. Side margins for preference? ,I would like to have the section name ......
Read more >
Studio Display review: An Apple monitor where “5K” doesn't ...
Many MacBooks, including the old 12-inch MacBook and some more recent Air and Pro models, actually shipped using a scaled display mode out...
Read more >
Free Professional Business Website Template Get Now!
margin: 0%; padding: 0%; } .header{ width: 100%; height: 100px; background-image: ... .display5{ width: 100%; height: auto; margin-top: 50px; display: flex; } ...
Read more >
Creating different headers for different screen sizes
1. Choose desktop header section by selecting its section from Navigator or by clicking Edit Selection button that appears on blue grid in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found