<commit_before>@import "../../variables";
@import "../../breakpoints";

.article-audio__link {
  margin: 24px 0;
  display: block;

  @include tablet-up {
    margin: 32px 0;
  }
}

.article-audio__link,
.article-audio__link:hover,
.article-audio__link-episode,
.article-audio__link-episode:hover {
  border: 0;
}

.article-audio {
  background-color: $color-bg-caption;
  margin: 0;  // override Browser's figure-styling
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  &.played {
    background-color: $color-bg-box;
  }

  @include smartphone {
    margin: 0 -8px; // override article's padding...

    &:not(.played) { // very ugly! (handling of touch states)
      background-color: $color-bg-caption;
    }
  }

  &:not(.audio--loading) { // samesame
    .spinner-container {
      display: none;
    }
    .spinner,
    .spinner__circle--dash {
      animation: none;
    }
  }

  .image-figure__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
  }

  .image-figure__image--no-image {
    background-image: radial-gradient(circle at 50% 50%, #6b6960, #222222);
  }
}

.article-audio__link {
  &:hover,
  &:active,
  &:focus {
    .article-audio__play-icon {
      background-image: url('../img/play-active.svg');
      background-size: 100%;
    }
  }
}

.article-audio__wrapper {
  margin: 16px 0 16px 16px;
  height: $image-size-preview;
  width: $image-size-preview;
  flex-shrink: 0;
  position: relative; // so the play icon can be centered absolutely

  @include tablet-up {
    width: 196px;
    height: 110px;
    margin: 0;
  }

  // dimming overlay over the picture
  &::before {
    content: '';
    position: absolute;
    background-color: rgba(0, 0, 0, .2);
    height: 100%;
    width: 100%;
    z-index: 1;
  }
}

.article-audio__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;

  @include smartphone {
    width: 46px;
  }
}

.article-audio__link,
.article-audio__link:hover {
  border: 0;
}

.article-audio__player {
  flex: 0 0 100%;
  height: 0;
  padding: 0;
  background-color: $color-text-default;
  transition: height 375ms cubic-bezier(0.4, 0.0, 0.2, 1);

  //use margin and dimensions directly on the player iframe instead of the wrapper for a smoother transition
  iframe {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    margin: 8px;
  }
}

.audio--loading,
.audio--playing {
  &.article-audio,
  &.article-audio:hover {
    background-color: $color-media-playing;
    cursor: default;
  }

  .article-audio__play-icon {
    display: none;
  }

  .media-caption__title {
    color: $color-bg-caption;
  }

  .media-caption__source,
  strong {
    color: $color-border;
  }

  .media-caption__title,
  .media-caption__source,
  strong {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

.audio--loading {
  .spinner-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    transform: translate(-50%, -50%);

    @include tablet-up {
      width: 63px;
      height: 63px;
    }
  }
}

.audio--playing {
  .article-audio__wrapper::before {
    opacity: 0;
  }

  .article-audio__player {
    height: 42px;
  }
}
<commit_msg>consider new link in related lists for flex stuff<commit_after>@import "../../variables";
@import "../../breakpoints";

.article-audio__link {
  margin: 24px 0;
  display: block;

  @include tablet-up {
    margin: 32px 0;
  }
}

.article-audio__link,
.article-audio__link:hover,
.article-audio__link-episode,
.article-audio__link-episode:hover {
  border: 0;
}

.article-audio {
  background-color: $color-bg-caption;
  margin: 0;  // override Browser's figure-styling
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  &.played {
    background-color: $color-bg-box;
  }

  @include smartphone {
    margin: 0 -8px; // override article's padding...

    &:not(.played) { // very ugly! (handling of touch states)
      background-color: $color-bg-caption;
    }
  }

  &:not(.audio--loading) { // samesame
    .spinner-container {
      display: none;
    }
    .spinner,
    .spinner__circle--dash {
      animation: none;
    }
  }

  .image-figure__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
  }

  .image-figure__image--no-image {
    background-image: radial-gradient(circle at 50% 50%, #6b6960, #222222);
  }
}

.article-audio__link {
  &:hover,
  &:active,
  &:focus {
    .article-audio__play-icon {
      background-image: url('../img/play-active.svg');
      background-size: 100%;
    }
  }
}

.article-audio__link-episode {
  display: flex;
  flex-direction: column;
  padding: 0;
  flex: 1;
}

.article-audio__wrapper {
  margin: 16px 0 16px 16px;
  height: $image-size-preview;
  width: $image-size-preview;
  flex-shrink: 0;
  position: relative; // so the play icon can be centered absolutely

  @include tablet-up {
    width: 196px;
    height: 110px;
    margin: 0;
  }

  // dimming overlay over the picture
  &::before {
    content: '';
    position: absolute;
    background-color: rgba(0, 0, 0, .2);
    height: 100%;
    width: 100%;
    z-index: 1;
  }
}

.article-audio__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;

  @include smartphone {
    width: 46px;
  }
}

.article-audio__link,
.article-audio__link:hover {
  border: 0;
}

.article-audio__player {
  flex: 0 0 100%;
  height: 0;
  padding: 0;
  background-color: $color-text-default;
  transition: height 375ms cubic-bezier(0.4, 0.0, 0.2, 1);

  //use margin and dimensions directly on the player iframe instead of the wrapper for a smoother transition
  iframe {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    margin: 8px;
  }
}

.audio--loading,
.audio--playing {
  &.article-audio,
  &.article-audio:hover {
    background-color: $color-media-playing;
    cursor: default;
  }

  .article-audio__play-icon {
    display: none;
  }

  .media-caption__title {
    color: $color-bg-caption;
  }

  .media-caption__source,
  strong {
    color: $color-border;
  }

  .media-caption__title,
  .media-caption__source,
  strong {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

.audio--loading {
  .spinner-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    transform: translate(-50%, -50%);

    @include tablet-up {
      width: 63px;
      height: 63px;
    }
  }
}

.audio--playing {
  .article-audio__wrapper::before {
    opacity: 0;
  }

  .article-audio__player {
    height: 42px;
  }
}

{'fraction_non_alphanumeric': 0.14970414201183432, 'fraction_numerical': 0.03609467455621302, 'mean_word_length': 2.625201072386059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2758749', 'n_tokens_mistral': 2727, 'n_tokens_neox': 2428, 'n_words': 539}