@charset "UTF-8";

@use 'sass:color';
@use 'sass:math';

/*! Copyright (C) 2015-2023 AIZAWA Hina */

// From node_modules/bootstrap/less/variables.less
$font-size-base: 14px;
$font-size-small: math.ceil(($font-size-base * 0.85)); // ~12px
$gray-base: #000;
$gray-dark: color.adjust($gray-base, $lightness: 20%); // #333
$body-bg: #fff;
$text-color: $gray-dark;
$btn-primary-color: #fff;
$btn-primary-bg: color.adjust(#428bca, $lightness: -6.5%); // #337ab7

@mixin make($text-color, $bg-color, $primary-text-color, $primary-bg-color) {
  #language-dialog {
    .list-group-item {
      background-color: $bg-color;
      color: $text-color;

      &.current {
        background-color: $primary-bg-color;
        color: $primary-text-color;
      }

      &.hint {
        background-color: $text-color;
        color: $bg-color;
        font-size: $font-size-small;

        a {
          &,
          &:hover,
          &.hover {
            background-color: $text-color;
            color: $bg-color;
            text-decoration: none;
          }
        }
      }
    }
  }
}

@include make($text-color, $body-bg, $btn-primary-color, $btn-primary-bg);

body.theme-dark {
  /* bootswatch-cyborg */
  @include make(#888, #060606, #fff, #2A9FD6);

  &[data-theme='bootswatch-darkly'] {
    @include make(
      #fff,
      color.adjust(#303030, $lightness: 13.5%),
      #fff,
      #375a7f
    );
  }

  &[data-theme='bootswatch-slate'] {
    @include make(#C8C8C8, #272B30, #fff, #7A8288);
  }
}
