<commit_before>/* SPECIAL STYLESHEET USED TO DISPLAY EMBEDDED 
   MEDIA in U-M PRESS EPUB FILES on FULCRUM */

/* Hide default media blocks, such as image thumbnails */
.default-media-display {
    display: none !important;
}
/* Display enhanced media blocks, such as Fulcrum embedded audio/video/images */
.enhanced-media-display {
    display: block !important;
}
/* Display enhanced media inline, such as links to Fulcrum resource pages */
span.enhanced-media-display {
    display: inline !important;
}<commit_msg>HELIO-3970 - style resource buttons to appear on hover of image/figure<commit_after>/* SPECIAL STYLESHEET USED TO DISPLAY EMBEDDED 
   MEDIA in U-M PRESS EPUB FILES on FULCRUM */

/* Hide default media blocks, such as image thumbnails */
.default-media-display {
    display: none !important;
}
/* Display enhanced media blocks, such as Fulcrum embedded audio/video/images */
.enhanced-media-display {
    display: block !important;
}
/* Display enhanced media inline, such as links to Fulcrum resource pages */
span.enhanced-media-display {
    display: inline !important;
}

/* place "open <resource>" button in the middle of the figure, 
   presumably a nested <img> */

figure > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}

figure div[data-href*="embed"] {
    display: flex !important;
    position: absolute !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
}

figure .cozy-mangled-popup--container {
    background-color: transparent;
}
figure .cozy-mangled-popup--container button.cozy-mangled-popup--action {
    clip-path: inset(100%);
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

figure:hover .cozy-mangled-popup--container button.cozy-mangled-popup--action,
figure:active .cozy-mangled-popup--container button.cozy-mangled-popup--action,
figure:focus .cozy-mangled-popup--container button.cozy-mangled-popup--action,
figure .cozy-mangled-popup--container button.cozy-mangled-popup--action:hover,
figure .cozy-mangled-popup--container button.cozy-mangled-popup--action:active,
figure .cozy-mangled-popup--container button.cozy-mangled-popup--action:focus
  {
    clip-path: unset;
    clip: unset;
    height: unset;
    overflow: unset;
    position: unset;
    white-space: unset;
    width: unset;
}

figure:hover img,
figure:active img,
figure:focus img {
    opacity: 0.2;
}
{'fraction_non_alphanumeric': 0.116198537899192, 'fraction_numerical': 0.005771450557906887, 'mean_word_length': 3.7445255474452557, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5615733', 'n_tokens_mistral': 829, 'n_tokens_neox': 811, 'n_words': 228}