/*
 * Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import "variables";

.theme-preview {
  border-color: @card-border-color;
}

.theme-preview.selected {
  border-color: @primary-color;
}

.theme-preview:not(.read-only):hover {
  border-color: @primary-color;
  box-shadow: 0 0 2px 2px fade(@primary-color, 20%);
}

.cp-themes-group {
  color: @application-color;
  background-color: @card-background-color;
  border: 1px solid @card-border-color;
}

.cp-themes-group .cp-themes-group-header {
  background-color: @card-header-background;
  border-bottom: 1px solid @card-border-color;
}

.cp-themes-group-active-tag {
  background-color: @primary-color;
  color: @primary-text-color;
}

.theme-identifier.theme-preview .cp-theme-preview-navigation-panel {
  background-color: @navigation-panel-color;
}

.theme-identifier.theme-preview .cp-theme-preview-layout {
  background-color: @application-background-color;
  color: @application-color;
  background-image: @background-image;
  background-size: cover;
}

.theme-identifier.theme-preview .cp-theme-preview-panel {
  border: 1px solid @panel-border-color;
  background-color: @panel-background-color;
  color: @application-color;
}

.theme-identifier.theme-preview .cp-theme-priview-panel-card {
  border: 1px solid @card-border-color;
  background-color: @card-background-color;
  margin: 2px;
}

.theme-identifier.theme-preview .cp-theme-preview-button-primary {
  color: @primary-text-color;
  background-color: @primary-color;
  border-color: @primary-color;
}

.theme-identifier.theme-preview .cp-theme-preview-button-danger {
  background-color: @btn-danger-active-background;
  border-color: @btn-danger-active-background;
}

.theme-identifier.theme-preview .cp-theme-preview-button {
  color: @primary-color;
  background-color: @panel-background-color;
}

.theme-identifier.theme-preview .cp-theme-priview-runs-table-icon-blue {
  color: @color-info;
}

.theme-identifier.theme-preview .cp-theme-priview-runs-table-icon-yellow {
  color: @color-warning;
}

.theme-identifier.theme-preview .cp-theme-priview-runs-table-icon-green {
  color: @color-success;
}

.theme-identifier.theme-preview .cp-theme-preview-navigation-menu-item.selected {
  background-color: @navigation-panel-highlighted-color;
}

.theme-identifier.theme-preview .cp-theme-preview-navigation-menu-item i {
  text-align: center;
  padding: 5px;
}

.theme-identifier.theme-preview .cp-runs-menu-item.active {
  color: @navigation-item-runs-color;
}

.theme-identifier.theme-preview .cp-theme-preview-navigation-menu-item,
.theme-identifier.theme-preview .cp-runs-menu-item {
  color: @navigation-item-color;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-identifier.theme-preview .cp-theme-preview-text {
  background-color: @application-color;
}

.theme-identifier .theme-preview-bordered {
  border: 1px solid @application-color;
}

.color-presenter {
  stroke: @application-color;
}

.image-uploader {
  border-color: @application-color;
  background-color: @application-background-color;
}

.image-uploader .uploader-thumb-image {
  background-color: fade(@application-background-color, 25%);
}
