User:Jroberson108/Template:Sticky table start/ScrollCue.css

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/**
 * Scroll cue for [[Template:Sticky table start]] tables.
 *
 * Adds a bottom shadow to provide a visual cue indicating scrollability.
 *
 * See documentation:
 * {@link https://en.wikipedia.org/wiki/User:Jroberson108/Template:Sticky_table_start/ScrollCue}
 */

/* Shadow. */
@media screen {
  /* Wrapper for existing scroll container. */
  body.skin-minerva .sticky-table-scroll-wrapper,
  body.webkit-sticky-table-scroll-cue .sticky-table-scroll-wrapper {
    position: relative;
  }

  /* Shadow overlay at the bottom. */
  body.skin-minerva .sticky-table-scroll-bottom,
  body.webkit-sticky-table-scroll-cue .sticky-table-scroll-bottom {
    pointer-events: none; /* Allows interaction to pass through. */
    position: absolute;
    left: 0;
    bottom: 0;
    height: 16px;
    z-index: 10;
    background: linear-gradient(
      to top,
      var(--box-shadow-color-base, #a2a9b1) -20%,
      transparent 80%
    );
    transition: opacity 0.3s;
    opacity: 1;
    will-change: opacity;
  }

  /* Hide shadow when at the bottom. */
  body.skin-minerva .sticky-table-scroll-bottom.hide,
  body.webkit-sticky-table-scroll-cue .sticky-table-scroll-bottom.hide {
    opacity: 0;
  }
}

/* Accessibility: disables animation if user requests reduced motion. */
@media (prefers-reduced-motion: reduce) {
  body.skin-minerva .sticky-table-scroll-bottom,
  body.webkit-sticky-table-scroll-cue .sticky-table-scroll-bottom {
    transition: none;
  }
}