/**
 * @file
 * Hacks for WYSIWYG content.
 */

/**
 * Make text inside archor look less crazy.
 */
a.mceItemAnchor {
  width: auto !important;
  min-width: 11px !important;
  padding-left: 13px !important;
  line-height: 11px !important;

  /* Attempt to use styling of outer element. */
  text-decoration: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/**
 * Display the element path - hidden by both the Circuit theme and Panopoly
 * WYSIWYG.
 */
#edit-body-und-0-value_path_row,
#edit-body-und-1-value_path_row,
#edit-body-und-2-value_path_row,
#edit-body-und-3-value_path_row,
#edit-body-und-4-value_path_row,
#edit-body-und-5-value_path_row,
#edit-body-und-6-value_path_row,
#edit-body-und-7-value_path_row,
#edit-body-und-8-value_path_row,
#edit-body-und-9-value_path_row,
.mceStatusbar > div {
  display: block !important;
}

/**
 * Hide the Edit file button on the Media WYSIWYG style selector, until its behavior is fixed.
 */
#media-wysiwyg-format-form .edit-file-link {
  display: none;
}
