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
  • #26967
Closed
Open
Issue created Jul 26, 2018 by Administrator@rootContributor

Modal header padding

Created by: envolute

It is not possible to assign a different vertical and horizontal padding in the modal header, this breaks the margin of the ".close"

.close { padding: $modal-header-padding; // auto on the left force icon to the right even when there is no .modal-title margin: (-$modal-header-padding) (-$modal-header-padding) (-$modal-header-padding) auto; }

If you put "padding: .5rem 1rem" the result of the margin would be: margin: -0.5rem 1rem -0.5rem 1rem -0.5rem 1rem auto;

A simple solution would be to split the padding vertically and horizontally. It would look like this:

_variables.scss change: $modal-header-padding: 1rem; for: $modal-header-padding-y: 1rem; => .5rem; $modal-header-padding-x: 1rem;

_modal.scss .modal-header { ... padding: $modal-header-padding-y $modal-header-padding-x; ... }

.close { padding: $modal-header-padding-y $modal-header-padding-x; // auto on the left force icon to the right even when there is no .modal-title margin: (-$modal-header-padding-y) (-$modal-header-padding-x) (-$modal-header-padding-y) auto; }

Assignee
Assign to
Time tracking