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
  • #20741
Closed
Open
Issue created Sep 18, 2016 by Administrator@rootContributor

Use a variable for the default font-weights

Created by: sbaechler

Right now Bootstrap uses the hardcoded font weights bold and normal.

Websites might use different weights such as medium or thin or use light as default weight instead of normal.

If Bootstrap used settings variables for $font-weight-normal and $font-weight-bold the user could easily override the default values or use numerical weights.

This would also help #18605 (closed).

Those two lines could be added to the _variables.scss:

$font-weight-normal: normal;
$font-weight-bold: bold;

All occurrences of font-weight: normal; would be replaced by font-weight: $font-weight-normal. The same applied for font-weight: bold;.

Foundation uses a similar approach.

I could create a pull-request for this.

Assignee
Assign to
Time tracking