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
  • #19792
Closed
Open
Issue created Apr 24, 2016 by Administrator@rootContributor

Add card-specific color variables

Created by: tordans

There should be an easy way to customize the color of the .card background.

Right now the colors are hard coded inside https://github.com/twbs/bootstrap/blob/1a6d0cc446259cf86d73bf7437f2ca3b095f6781/scss/_card.scss#L123-L141

Instead there should be a default similar to this:

// Cards
$card-spacer-x:            1.25rem !default;
$card-spacer-y:            .75rem !default;
$card-border-width:        1px !default;
$card-border-radius:       $border-radius !default;
$card-border-color:        rgba(0,0,0,.125) !default;
$card-border-radius-inner: $card-border-radius !default;
$card-cap-bg:              #f5f5f5 !default;
$card-bg:                  #fff !default;
$card-primary-bg:          $brand-primary !default;
$card-success-bg:          $brand-success !default;
$card-info-bg:             $brand-info !default;
$card-warning-bg:          $brand-warning !default;
$card-danger-bg:           $brand-danger !default;

$card-link-hover-color:    #fff !default;
Assignee
Assign to
Time tracking