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
  • #32290
Closed
Open
Issue created Nov 30, 2020 by Administrator@rootContributor

Variables for button hover+active states

Created by: quasipickle

A bit of a duplicate of #31544 (closed), but that issue seems to be abandoned.

In my opinion, the background color change between normal & hover states on buttons isn't enough to provide visual feedback that the button has been hovered/clicked. Currently I'm re-defining the necessary rules, but it would be nice to be able to use the mixin.

I propose a bunch of new variables to allow us to set the amount by which a colour is tinted or shaded.

$btn-hover-bg-shade-amount:        15%!default;
$btn-hover-bg-tint-amount:         15%!default;
$btn-hover-border-shade-amount:    20%!default;
$btn-hover-border-tint-amount:     10%!default;
$btn-active-bg-shade-amount:       20%!default;
$btn-active-bg-tint-amount:        20%!default;
$btn-active-border-shade-amount:   25%!default;
$btn-active-border-tint-amount:    10%!default;
Assignee
Assign to
Time tracking