Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #23053
Closed
Open
Issue created Jul 12, 2017 by Administrator@rootContributor

Responsive font sizes

Created by: MartijnCuppens

Currently there is no font-resizing implemented in Bootstrap. Font resizing is needed to make large texts readable on all devices and to prevent longer words and compounds to fall off screen.

It's currently possible to alter the font size of the html element with media queries (see Responsive typography), but this method can cause the font-size of text to be too small on mobile devices and because the rem-value is overridden, users can't change their font-size in their browser anymore.

RFS can solve this by because this mixin automatically calculates the appropriate font-size based on the width of the device.

RFS is also available in Sass, Less, PostCSS and Stylus.

Example problem with bigger font-sizes: http://getbootstrap.com/docs/4.1/content/typography/#display-headings

RFS solution: https://project-rfs.github.io/docs/4.1/content/typography/#display-headings

Bootstrap implementation demo: https://project-rfs.github.io/

Github page: https://github.com/twbs/rfs

Pull request https://github.com/twbs/bootstrap/pull/23816

Assignee
Assign to
Time tracking