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
  • !10100

Fixes #10076: Document hide text

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mark Otto requested to merge document_hide_text into master Aug 24, 2013
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 4

Fixes #10076 (closed). This adds a missing helper class and mixin to the Helper classes section of the CSS page in our docs. The kicker is that the class and mixin are not the same name, unlike our other classes and mixins in the section (e.g., .pull-right is first a class but also mixin-able). This is confusing and super lame, so I've opted to deprecate the mixin and push folks to use the single class name.

// CSS image replacement
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
.hide-text(),
.text-hide() {
  font: ~"0/0" a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

// Applying the mixin
.text-hide {
  .text-hide();
}

That look about right @cvrebert?

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: document_hide_text