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
  • Merge requests
  • !25054

Restyle code element, remove docs example overflow, improve docs examples

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mark Otto requested to merge code-scrollbars-kbd-oh-my into v4-dev Dec 22, 2017
  • Overview 0
  • Commits 12
  • Pipelines 0
  • Changes 13

Going for a simpler <code> element with this one while making friendlier to longer strings on narrow viewports. The removal of the overflow: auto is semi-related and undoes #24878's change. From there, I overhauled several docs examples to prevent horizontal scrolling.


  • Removes the padding and background-color on <code> elements and their variables.
  • Changes the color to a brand color ($pink).
  • Add new variables to <kbd> element styles to account for removing the code ones.
  • Remove overrides that were needed previously for <code> in links and preformatted text.
  • Revamps several docs examples to avoid horizontal scrolling.
  • Adds overrides for width on file inputs in input groups.

Fixes #25038 (closed).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: code-scrollbars-kbd-oh-my