Skip to content

Responsive Display Headings #22104

Description

@sunyang713

I really like these larger, thinner headings that are provided:

<h1 class="display-1">Display 1</h1>
<h1 class="display-2">Display 2</h1>
<h1 class="display-3">Display 3</h1>
<h1 class="display-4">Display 4</h1>

As shown here: https://v4-alpha.getbootstrap.com/content/typography/#display-headings

But I've find that on smaller screens, these are almost always way too large. Could you consider adding responsive breakpoints like so:

<h1 class="display-l-1">Display 1</h1>
<h1 class="display-l-2">Display 2</h1>
<h1 class="display-md-3">Display 3</h1>
<h1 class="display-md-4">Display 4</h1>

so that the text can return to the standard h1 h2 etc font style on smaller screens?

Activity

  1. added
    cssSass sources or compiled CSS
    featureNew feature, or a change to how an existing one works
    v4v4, the frozen docs on gh-pages
    on Mar 3, 2017
  2. modified the milestone: on Mar 19, 2017
  3. removed this from the milestone on Jul 2, 2017
  4. MartijnCuppens commented on Dec 26, 2017

    @MartijnCuppens
    Member
  5. knalette commented on Mar 20, 2018

    @knalette

    This is still an issue. Any plans to fix?

  6. prashaddey commented on May 7, 2018

    @prashaddey

    I'm still facing the same issue. They haven't fixed it yet, I guess.

  7. knalette commented on May 8, 2018

    @knalette

    I just added this in my custom.scss, which worked for the sites I've been working on:

    @media (max-width: 575.98px) {
    //Manage Display Headers for Mobile Devices
    .display-1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.0;
    }

        .display-2 {
            font-size: 2.75rem;
            font-weight: 300;
            line-height: 1.0;
        }
    
        .display-3 {
            font-size: 2.25rem;
            font-weight: 300;
            line-height: 1.0;
        }
    
        .display-4 {
            font-size: 1.75rem;
            font-weight: 300;
            line-height: 1.0;
        }
    

    }

  8. XhmikosR commented on Oct 21, 2018

    @XhmikosR
    Member

    Closing this due to the Responsive Font sizes PR.

  9. anandchakru commented on May 20, 2019

    @anandchakru

    am curious, why this is not incorporated into the framework itself yet?

  10. ck9sky commented on Jun 30, 2019

    @ck9sky

    @anandchakru, kind of wonder why, seems like a good fix??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cssSass sources or compiled CSSfeatureNew feature, or a change to how an existing one worksv4v4, the frozen docs on gh-pages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions