@import "../../node_modules/material-design-lite/material.min";

$black: #000000;
$popup-width: 290px;
$color-primary: #2880c7;
$controls-background-color: #4a94d1;
$white: #ffffff;

html {
  padding: 0;
  margin: 0;
  min-height: 100px;
  height: 0;
}

body {
  width: $popup-width;
  padding: 0;
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
}

a,
a:hover,
a:visited {
  text-decoration: none;
}

// Hides all the bootstrap outlines
.btn {
  &:focus,
  &:active:focus,
  &.active:focus {
    outline: none !important;
  }
}

.player-div-border {
  border-left: 1px solid $color-primary;
  border-right: 1px solid $color-primary;
}

.disabled {
  .player-controls-button-like,
  .player-controls-button-dislike,
  .player-controls-button-play,
  .player-controls-button-prev,
  .player-controls-button-next,
  .site-title,
  .site-favicon,
  .song-data {
    opacity: .5;
    pointer-events: none;
  }
}

.song-data {
  font-size: 15px;
  height: 20px;
  margin-bottom: 6px;
  margin-top: -4px;
  overflow: hidden;
  padding: 0 4px 0 4px;
  text-overflow: ellipsis;
  white-space: nowrap;

  .song-text {
    display: inline-block;
  }
}


.site-data {
  overflow: hidden;
  height: 22px;
  margin-bottom: 6px;
  width: $popup-width;
  -webkit-user-select: none;

  .site-link {
    margin-left: 6px;
  }

  .settings {
    float: right;
    font-size: 12px;
    margin: 3px 6px 0 0;
    opacity: .5;
    width: 12px;

    &:hover {
      opacity: 1;
    }
  }

  .settings-active {
    opacity: 1;
  }
}

.site-favicon {
  border: none;
  height: 18px;
  width: 18px;
}

.site-title {
  font-size: 18px;
  vertical-align: middle;
}

.site-priority-label {
  float: right;
  font-size: 12px;
  font-weight: 600;
  opacity: .4;
  padding-right: 6px;
}

#player {
  @extend .player-div-border;
  height: auto;
  min-height: 30px;
  padding-bottom: 8px;
  text-align: center;
}

.player-row {
  padding: 5px 0 0 0;
  overflow: hidden;
}

.site-tab-container {
  min-height: 60px;

  a,
  a:hover,
  a:active,
  a:visited {
    text-decoration: none;
    color: $black;
  }
}

.header {
  @extend .player-div-border;
  background-color: $color-primary;
  border-top: 1px solid $color-primary;
  height: 38px;
  padding: 6px;
  text-align: center;

  a,
  a:active,
  a:visited {
    color: $white;
    display: block;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1.2px;
    margin-top: 8px;
    text-decoration: none;
  }

  a:hover {
    color: darken($white, 10%);
    text-decoration: none;
  }
}

.options {
  @extend .player-div-border;
  border-bottom: 2px solid $color-primary;
  display: block;
  height: 44px;
  padding: 0;
  text-align: center;

  #options-link,
  #help-link,
  #donate-link {
    margin: 0 5px;
  }
}

.no-sites {
  font-size: 16px;
  font-weight: 500;
  padding-top: 10px;
}

#btn-disabled-sites {
  margin-top: 10px;
  min-width: 203px;

  i {
    margin-right: -6px;
    margin-top: -3px;
  }
}

.disabled-site-tab-container.initialize {
  display: none;
}

.player-controls-container {
  background-color: $color-primary;
  padding: 2px 0;
  -webkit-user-select: none;

  .player-controls-button {
    margin-left: 2px;
    margin-right: 2px;

    &.mdl-button--disabled {
      opacity: .7;
    }

    &.player-controls-button-like,
    &.player-controls-button-dislike {
      i {
        font-size: 18px;
      }
    }
  }

  i {
    color: $white;
  }
}

.site-settings {
  border-bottom: 2px solid $color-primary;
  display: block;
  height: 54px;
  text-align: center;

  &.initialize {
    display: none;
  }

  .control-label {
    display: block;
    font-weight: 700;
    margin: 3px 0 -3px 30px;
    text-align: left;
  }

  .settings-item {
    &.left {
      float: left;
      margin-left: 6px;
      width: calc(40% - 6px);
    }

    &.right {
      float: right;
      width: calc(60%);
    }

    .priority-button {
      min-width: 26px;
      width: 26px;
    }

    .priority-text {
      font-size: 15px;
      font-weight: 500;
    }

    .advanced-settings-button {
      font-size: 12px;
      padding: 0 6px;
      margin-top: 9px;
    }
  }
}

.mdl-button--colored {
  background-color: $color-primary !important;
}
