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
  • #18623
Closed
Open
Issue created Dec 21, 2015 by Administrator@rootContributor

Lint for unused SCSS variables

Created by: cvrebert

See:

  • http://blog.gospodarets.com/finding_unused_scss_variables/
  • https://gist.github.com/badsyntax/6193491

v4 currently (as of d756e12f) has several unused variables:

$enable-gradients
$font-family-serif
$font-size-xs
$line-height-computed
$nav-link-hover-bg
$nav-pills-active-link-hover-bg
$nav-pills-active-link-hover-color
$nav-tabs-justified-active-link-border-color
$nav-tabs-justified-link-border-color
$navbar-dark-disabled-color
$navbar-light-disabled-color
$pre-bg
$pre-border-color
$progress-bar-bg
$progress-border-radius

Also, we'll need some sort of exemption system (e.g. magic comments) for variables which we don't use out of the box but are exposed for the benefit of downstream users (e.g. the many color palette vars in #18462).

Assignee
Assign to
Time tracking