/**
 * @file
 * Utility classes to hide elements in different ways.
 */

/**
 * 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.
 */
.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.
 */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 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.
 */
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  clip: auto;
  overflow: visible;
  height: auto;
  width: auto;
}

/**
 * Hide visually and from screen readers, but maintain layout.
 */
.invisible {
  visibility: hidden;
}

.contextual {
  position: fixed;
  right: 32px;
  bottom: 48px;
  top: auto;
}

.user-login-form {
  max-width: 80%;
  width: 450px;
  margin: 10% auto 0 auto;
}

.contextual .trigger {
  background-color: #2f508c;
  background-image: url(../../../../../core/themes/stable/images/core/icons/ffffff/pencil.svg);
  border: 4px solid #2f508c;
  height: 48px !important;
  width: 48px !important;
  border-radius: 24px;
  transition: all 0.2s ease;
}

.contextual .trigger:hover {
  background-image: url(../../../../../core/themes/stable/images/core/icons/ffffff/pencil.svg);
  background-color: #b5c6d4;
  border-color: #fff;
  height: 48px !important;
  width: 48px !important;
}

div[role=contentinfo] {
  display: inline-block;
  max-width: 80%;
  width: 600px;
  background-color: #fff;
  padding: 20px;
  position: absolute;
  top: 10px;
  left: 20px;
}

.paragraph--view-mode--default {
  position: relative;
}

.paragraph--label span {
  background-color: #2f508c;
  display: inline-block;
  padding: 2px 4px;
  position: absolute;
  top: 0;
  left: 0;
}

.paragraph--label span::before {
   content: 'Block: ';
   font-size: 11px;
}
