@import '../variables';
@import '../override-bootstrap-variables';

// == Define Bootstrap theme colors
//

// colors for overriding bootstrap $theme-colors
// $secondary: #;
// $info: #;
// $success: #;
// $warning: #;
// $danger: #;
// $light: #;
// $dark: #;

.growi:not(.login-page) {
  // add background-image
  #page-wrapper,
  .page-editor-preview-container {
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
  }
}

.growi.login-page {
  #page-wrapper {
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
  }
}

$themecolor: #12b105;

//== Light Mode
//
html[light],
html[dark] {
  $primary: #460039;
  $light: $gray-100;

  // Background colors
  $bgcolor-global: #fdfdfd;
  $bgcolor-inline-code: $gray-100; //optional
  $bgcolor-card: #f1ffe4;
  $bgcolor-subnav: #fafafa;
  $bgcolor-blinked-section: rgba($primary, 0.1);
  //$bgcolor-keyword-highlighted: $grw-marker-yellow;

  // Font colors
  $color-global: #460039;
  $color-reversal: #eeeeee;
  $color-link: #7e0044;
  $color-link-hover: lighten($color-link, 20%);
  $color-link-wiki: lighten($primary, 20%);
  $color-link-wiki-hover: lighten($color-link-wiki, 20%);
  $color-link-nabvar: #a7a7a7;
  $color-inline-code: #c7254e; // optional
  $color-search: white;

  // Navbar
  $bgcolor-navbar: #234136;
  $bgcolor-search-top-dropdown: $themecolor;
  $border-image-navbar: linear-gradient(to right, #5c78ef 0%, #16bc42 50%, #5c78ef 100%);

  // Logo colors
  $bgcolor-logo: $bgcolor-navbar;
  $fillcolor-logo-mark: lighten(desaturate($bgcolor-inline-code, 10%), 15%);

  // Sidebar
  $bgcolor-sidebar: #188f64;
  // Sidebar contents
  $color-sidebar-context: #7e0044;
  $bgcolor-sidebar-context: #fdffeb;
  // Sidebar resize button
  $color-resize-button: white;
  $bgcolor-resize-button: $themecolor;

  // Icon colors
  $color-editor-icons: $color-global;

  // Border colors
  $border-color-theme: $gray-300;
  $bordercolor-inline-code: #ccc8c8; // optional

  // Dropdown colors
  $bgcolor-dropdown-link-active: $growi-blue;
  $color-dropdown-link-active: $color-reversal;
  $color-dropdown-link-hover: $color-global;

  // Table colors
  $border-color-table: $gray-400; // optional

  // admin theme box
  $color-theme-color-box: lighten($primary, 20%);

  @import 'apply-colors';
  @import 'apply-colors-light';

  // Search Top
  .grw-global-search {
    .btn-secondary.dropdown-toggle {
      color: $color-search;
    }
  }

  // Navs
  .nav-tabs .nav-link.active {
    color: $color-link !important;
    &:hover {
      color: $color-link-hover !important;
    }
  }

  // Button
  .btn-group.grw-page-editor-mode-manager {
    .btn.btn-outline-primary {
      @include btn-page-editor-mode-manager($bgcolor-navbar, lighten($bgcolor-navbar, 65%), lighten($bgcolor-navbar, 70%));
    }
  }
}
