CoreFiles by mySites.guru
_visually-hidden.scss51 lines, 1,320 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
bfc965db315dea2003691776e1b17677
sha1
82c8fa9afc07f63e1f6a27b25ddd2f4cea357261
sha256
5cff32535de072ae37d5baa5ef493f7790325db3e052767f338f58a2519d43e5

//
// Hide elements from all users.
//
// Used for elements which should not be immediately displayed to any user. An
// example would be collapsible details that will be expanded with a click
// from a user. The effect of this class can be toggled with the jQuery show()
// and hide() functions.
//
@mixin a11y-hidden {
  display: none;
}

//
// Hide elements visually, but keep them available for screen-readers.
//
// Used for information required for screen-reader users to understand and use
// the site where visual display is undesirable. Information provided in this
// manner should be kept concise, to avoid unnecessary burden on the user.
// "!important" is used to prevent unintentional overrides.
//
@mixin a11y-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal;
}

//
// The .focusable class extends the .visually-hidden class to allow
// the element to be focusable when navigated to via the keyboard.
//
@mixin a11y-visually-hidden-focusable {
  &:active,
  &:focus {
    position: static !important;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

//
// Hide visually and from screen-readers, but maintain layout.
//
@mixin a11y-invisible {
  visibility: hidden;
}

The same content is in 2 releases, Joomla 4.0.0-beta6 to 4.0.0-beta7. See them all, or every version of this file.