
//@import '../template/Layout/Header/DocSearch.less';

[data-theme='green'] {
  /* Change autocomplete styles in WebKit */
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea:-webkit-autofill,
  textarea:-webkit-autofill:hover,
  textarea:-webkit-autofill:focus,
  select:-webkit-autofill,
  select:-webkit-autofill:hover,
  select:-webkit-autofill:focus {
    border: 1px solid @border-color-base;
    box-shadow: none;
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: @text-color;
  }

  #header {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.65);
  }


  #nav {
    &.ant-menu-horizontal {

      & > .ant-menu-item {
       a {
         color: @G309;
       }

        &-selected {
          a {
            color: @G313;
          }
        }
      }
    }

    & > .ant-menu-item {
      text-align: center;
    }
  }

  #search-box input {
    &::placeholder {
      color: fade(@white, 30%);
    }
  }

  .toc {
    border-left-color: @G303;
  }

  .toc-affix {
    .ant-affix {
      background: @component-background;
    }
  }

  .code-box {
    border: 1px solid @border-color-split;

    :not(pre) > code[class*='language-'],
    pre[class*='language-'] {
      color: rgba(255, 255, 255, 0.65);
      background: @G301;
    }
    //.markdown {
      pre {
        margin: 0.5em 0;
        padding: 6px 12px;
      }
    .highlight pre{
      background: @G301;
    }
      pre code {
        margin: 0;
        background: @G301;
      }
    //}
    &-debug {
      border-color: @purple-3;
    }

    &-expand-trigger {
      position: relative;
      margin-left: 12px;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
      opacity: 0.45;
      transition: all 0.3s;
      &:hover {
        opacity: 0.65;
      }
    }

    &-demo {
      border-bottom: 1px solid @border-color-split;
      color: fade(@G313, 85%);
    }

    &-actions > &-code-action {
      color: @site-text-color-secondary;

      &:hover {
        color: @site-text-color;
      }
    }
  }

  ul.anticons-list {
    li {
      color: @G312;
      background: @component-background;
      &.TwoTone:hover {
        background-color: #15395b;
      }
      &:hover {
        .anticon {
          color: #fff;
        }
      }
    }
  }

  // a[disabled] {
  //   color: rgba(255, 255, 255, 0.25);
  // }
  #components-pagination-demo-itemRender {
    a[disabled] {
      color: @dpl-pagination-item-disabled-color
    }
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: @heading-color;
  }

  .markdown {
    code,
    pre,
    pre code {
      background: @G301;
    }
  }
  .markdown {
    pre  {
      border: 1px solid @G303;
    }
  }


  .markdown.api-container {
    table {
      tbody tr {
        &:hover {
          background: fade(@G308, 14%);
        }
        td a {
          color: @G101-07;
        }
      }
    }
    a {
      color: @G101-07;
    }
  }

  .markdown code {
    background: fade(@white, 8%);
  }

  .prev-next-nav {
    > a.prev-page {
      .footer-nav-icon-before {
        color: fade(@white, 45%);
      }

      &:hover .footer-nav-icon-before {
        color: @primary-color;
      }
    }

    > .next-page {
      .footer-nav-icon-after {
        color: fade(@white, 45%);
      }

      &:hover .footer-nav-icon-after {
        color: @primary-color;
      }
    }
  }

  // 站点统一设置a标签
  .code-box-demo .ant-dropdown-link{
    color: @G101-07;
  }

  .main-container-component section p a {
    color: @G101-07;
  }

  .ant-anchor-link-active>.ant-anchor-link-title {
    color: @G101;
  }

  .grid-demo,
  [id^='components-grid-demo-'] {
    .demo-row,
    .code-box-demo .demo-row {
      background-image: linear-gradient(
        90deg,
        #1d1d1d 4.16666667%,
        transparent 4.16666667%,
        transparent 8.33333333%,
        #1d1d1d 8.33333333%,
        #1d1d1d 12.5%,
        transparent 12.5%,
        transparent 16.66666667%,
        #1d1d1d 16.66666667%,
        #1d1d1d 20.83333333%,
        transparent 20.83333333%,
        transparent 25%,
        #1d1d1d 25%,
        #1d1d1d 29.16666667%,
        transparent 29.16666667%,
        transparent 33.33333333%,
        #1d1d1d 33.33333333%,
        #1d1d1d 37.5%,
        transparent 37.5%,
        transparent 41.66666667%,
        #1d1d1d 41.66666667%,
        #1d1d1d 45.83333333%,
        transparent 45.83333333%,
        transparent 50%,
        #1d1d1d 50%,
        #1d1d1d 54.16666667%,
        transparent 54.16666667%,
        transparent 58.33333333%,
        #1d1d1d 58.33333333%,
        #1d1d1d 62.5%,
        transparent 62.5%,
        transparent 66.66666667%,
        #1d1d1d 66.66666667%,
        #1d1d1d 70.83333333%,
        transparent 70.83333333%,
        transparent 75%,
        #1d1d1d 75%,
        #1d1d1d 79.16666667%,
        transparent 79.16666667%,
        transparent 83.33333333%,
        #1d1d1d 83.33333333%,
        #1d1d1d 87.5%,
        transparent 87.5%,
        transparent 91.66666667%,
        #1d1d1d 91.66666667%,
        #1d1d1d 95.83333333%,
        transparent 95.83333333%
      );
    }
    .code-box-demo .ant-row > div:not(.gutter-row) {
      padding: 16px 0;
      background: @G101;
      &:nth-child(2n + 1) {
        background: fade(@G101, 70%);
      }
    }
    .gutter-row > div{
      background: @G101;
    }
    .ant-row .demo-col,
    .code-box-demo .ant-row .demo-col {
      margin-top: 0;
      margin-bottom: 0;
      padding: 30px 0;
      color: @black;
      font-size: 18px;
      text-align: center;
      border: none;
    }
    .ant-col-12.demo-col.demo-col-1,.ant-col-6.demo-col.demo-col-2,
    .ant-col-8.demo-col.demo-col-4,.ant-col-16.demo-col.demo-col-4, .ant-col-12.demo-col.demo-col-1,
    .ant-col-24.demo-col.demo-col-1
    {
      background: fade(@G101, 60%);
    }
    .ant-col-6.demo-col.demo-col-3,.ant-col-8.demo-col.demo-col-5,.ant-col-12.demo-col.demo-col-3,
    .ant-col-8.demo-col.demo-col-5 {
      color: @site-text-color-secondary;
      background: @G302;
    }
  }

  .markdown > table th {
    color: @G308;
    background: @G302;
  }

  .copied-code {
    background: fade(@white, 8%);
  }

  .browser-mockup.with-url::after {
    background-color: @component-background;
  }

  .browser-mockup {
    border-top: 2em solid @G301;
  }

  .browser-mockup::before {
    background-color: #fb4742;
    box-shadow: 0 0 0 2px #fb4742, 1.5em 0 0 2px #99bc2e, 3em 0 0 2px #ffba5a;
  }

  .browser-mockup.with-tab::after {
    border-bottom: 2em solid @component-background;
  }

  .algolia-autocomplete {
    .ds-dropdown-menu {
      [class^='ds-dataset-'] {
        background: @popover-background;
        .algolia-docsearch-suggestion {
          background: @popover-background;
        }
      }
      .ds-suggestion.ds-cursor {
        .algolia-docsearch-suggestion:not(.suggestion-layout-simple) {
          .algolia-docsearch-suggestion--content {
            background-color: fade(@white, 8%);
          }
        }
      }
    }
    .algolia-docsearch-suggestion--category-header {
      color: rgba(255, 255, 255, 0.65);
      border-bottom: 1px solid @border-color-split;
    }
    .algolia-docsearch-suggestion--subcategory-column::before {
      background: @border-color-split;
    }
    .algolia-docsearch-suggestion--content {
      &::before {
        background: @border-color-split;
      }
    }
  }

  .token.comment,
  .token.quote {
    color: #b6b18b;
  }

  .token.property,
  .token.variable,
  .token.template-variable,
  .token.tag,
  .token.number,
  .token.name,
  .token.selector-id,
  .token.selector-class,
  .token.regexp,
  .token.deletion {
    color: #eb3c54;
  }

  .token.built_in,
  .token.builtin-name,
  .token.literal,
  .token.type,
  .token.params,
  .token.meta,
  .token.link {
    color: #e7ce56;
  }

  .token.attribute {
    color: #ee7c2b;
  }

  .token.string,
  .token.symbol,
  .token.bullet,
  .token.addition {
    color: @primary-color;
  }

  .token.title,
  .token.section {
    color: #78bb65;
  }

  .token.function,
  .token.keyword,
  .token.selector-tag {
    color: #b45ea4;
  }

  .hljs {
    display: block;
    padding: 0.5em;
    overflow-x: auto;
    color: #c0c5ce;
    background: #1c1d21;
  }

  .token.emphasis {
    font-style: italic;
  }

  .token.strong {
    font-weight: bold;
  }

  .components-overview {
    &-img {
      background-color: rgba(255, 255, 255, 0.1);
    }
    &-search input {
      color: rgba(255, 255, 255, 0.65);
    }
  }

  // customization DocSearch Modal component in dark mode
  #antd_algolia_search_modal {
    //.customDocSearch();

    // additional style reset in dark mode
    --docsearch-key-gradient: @background-color-light;
    --docsearch-logo-color: @white;

    .DocSearch-Modal,
    .DocSearch-Commands-Key {
      box-shadow: none;
    }

    .DocSearch-Hit a {
      box-shadow: none;
    }
  }


  // 站点样式
  .site-button-ghost-wrapper {
    background: @G302;
  }
  #components-grid-demo-playground [class~='ant-col'] > div {
    background: @G101;
  }
  #components-grid-demo-playground pre {
    background: fade(@G101, 70%);;
  }
  .site-layout-background {
    background: @G300;
  }
  #components-layout-demo-top-side .site-layout-background .ant-layout-content{
    background: @G300;
  }

  .site-layout-content {
    background: @G300;
  }
  .site-page-header {
    // border-color: @G302;
    .ant-descriptions a {
      color: @G101-07;
    }
  }
  .site-page-header-ghost-wrapper {
    background: rgba(255,255,255,0.08);
    .ant-descriptions a {
      color: @G101-07;
    }
  }
  #components-form-demo-advanced-search .search-result-list {
    border: 1px dashed @G302;
  background: rgba(255,255,255,0.04);
  }

  .site-page-header-responsive {
    .ant-descriptions a {
      color: @G101-07;
    }
  }
  .ant-advanced-search-form  {
    background: rgba(255,255,255,0.04);
    border: 1px solid @G302;
    padding: 24px;
    border-radius: 2px;
  }
  .site-input-group-wrapper .site-input-split {
    background-color: transparent
  }
  .site-collapse-custom-collapse .site-collapse-custom-panel {
    background: transparent;
    border: 0px;
  }
  .site-slick-slid {
    background: @G304;
  }
  .site-card-border-less-wrapper, .site-card-wrapper {
    background: @G302;
  }
  .site-calendar-demo-card, .site-calendar-customize-header-wrapper {
    border: 1px solid @G302;
  }
  .site-statistic-demo-card {
    background: @G302;
  }
  .card-container > .ant-tabs-card .ant-tabs-tab {
    border-color: transparent;
    background: transparent;
  }
  #components-tabs-demo-card-top .code-box-demo {
    background: @G300;
  }
  .card-container > .ant-tabs-card .ant-tabs-content > .ant-tabs-tabpane {
    background: @G300;
  }
  .card-container > .ant-tabs-card .ant-tabs-tab-active {
    border-color: @G300;
    background: @G300;
  }
  .site-custom-tab-bar {
    background: transparent;
  }
  .site-demo-table-filter-space {
    border-top-color: fade(@G306, 40%);
  }
  .editable-row .editable-cell-value-wrap {
    border: 1px solid @input-border-color;
    background: transparent;
  }
  .virtual-table-cell {
    border-bottom: @border-width-base @border-style-base @table-border-color;
    background: transparent;
  }
  .site-drawer-render-in-current-wrapper {
    background: #000;
    border: 1px solid @G302;
  }
  .vertical-divider a{
    color: @G101-07;
  }
  .steps-content {
    margin-top: 16px;
    border: 1px dashed @G302;
    background-color: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.65);
    padding-top: 80px;
  }
  .site-navigation-steps {
    // border-bottom: 1px solid @G302;
    box-shadow: 0px -1px 0 0 fade(@G303, 80%) inset;
    margin-bottom: 60px;
  }

  .demo-infinite-container {
    border: 1px solid @G302;
  }

  #components-cascader-demo-custom-trigger, #components-cascader-demo-custom-render, #components-form-demo-normal-login, #components-form-demo-register, #components-form-demo-advanced-search, #components-upload-demo-defaultFileList, #components-upload-demo-fileList, #components-upload-demo-picture-style, #components-upload-demo-file-type, #components-upload-demo-drag-sorting, #components-upload-demo-upload-custom-action-icon, #components-card-demo-basic, #components-card-demo-inner,  #components-card-demo-tabs, #components-list-demo-loadmore, .ant-popover-inner-content, #components-table-demo-basic .ant-table, #components-table-demo-jsx .ant-table, #components-table-demo-row-selection .ant-table, #components-table-demo-bordered .ant-table, #components-table-demo-expand .ant-table,
  #components-table-demo-colspan-rowspan .ant-table, #components-table-demo-fixed-columns .ant-table, #components-table-demo-fixed-columns-header .ant-table, #components-table-demo-edit-cell .ant-table, #components-table-demo-nested-table .ant-table, #components-table-demo-resizable-column .ant-table, #components-table-demo-ellipsis .ant-table, #components-table-demo-ellipsis-custom-tooltip .ant-table, #components-table-demo-responsive .ant-table, #components-table-demo-nest-table-border-debug .ant-table, #components-table-demo-pagination .ant-table, #components-table-demo-sticky .ant-table, #components-table-demo-dynamic-settings .ant-table, #components-drawer-demo-user-profile, .site-user-profile-wrap,#components-popconfirm-demo-basic, #components-popconfirm-demo-locale, #components-popconfirm-demo-dynamic-trigger, #components-popconfirm-demo-icon, #components-page-header-demo-content .ant-page-header-content, #site-download-iconfont-page, #components-legacy-form-demo-normal-login, #components-legacy-form-demo-register, #components-legacy-form-demo-advanced-search, #components-table-demo-edit-row .ant-table, #components-breadcrumb-demo-router-4, #components-empty-demo-customize, #components-empty-demo-dpl-internal, #components-table-demo-dpl-columns-confg .ant-table, #components-page-header-demo-actions{
    a {
      color: @G101-07
    };
  }
  .modal-table-a {
    color: @G101-07
  }

  #components-upload-demo-drag-sorting .ant-upload-draggable-list-item.drop-over-downward {
    border-bottom-color: @G101;
  }
  #components-upload-demo-drag-sorting .ant-upload-draggable-list-item.drop-over-upward {
    border-top-color: @G101;
  }

  .site-user-profile-wrap .site-description-item-profile-p {
    color: @dpl-description-content-color;
  }
  .site-description-item-profile-p-label {
    color: @dpl-description-label-color;
  }
  .site-description-item-profile-p-content {
    color: @dpl-description-content-color;
  }
  #components-back-top-demo-custom .back-up-btn
  {
    background-color: @G101
  }
  #components-alert-demo-banner {
    background-color: #000;
  }
  #components-layout-demo-top , #components-layout-demo-top-side , #components-layout-demo-top-side-2, #components-layout-demo-side, #components-layout-demo-custom-trigger, #components-layout-demo-responsive , #components-layout-demo-fixed, #components-layout-demo-fixed-sider {
    .logo {
      background: @G304;
    }
  }
  #components-layout-demo-responsive  .site-layout-sub-header-background{
    background: @G300;
  }

  #components-dropdown-demo-context-menu .site-dropdown-context-menu {
    background: #000;
  }
  .search-input-suffix-icon svg {
    fill: @G101-07
  }
  .site-form-item-icon .anticon {
    color:@G308;
  }
  .demo-select-dropdown-render-footer {
    color: @white;
  }
  .demo-nav {
    background: @G300;
  }
  .demo-empty-internal .image-desp {
    color: white;
  }
  #components-legacy-form-demo-normal-login, #components-legacy-form-demo-horizontal-login
  {
    .ant-input-prefix  .dplicon{
      color: @G308;
    }
  }

  #components-legacy-form-demo-horizontal-login .ant-input-prefix  .dplicon{
    color: @G308;
  }
  .site-dropdown-divider-cascader {
    border-top: 1px solid @cascader-menu-border-color-split;
  }
  .site-demo-date-picker-panel {
    border-left: 1px solid @divider-color;;
  }
  #components-table-demo-drag-sorting-handler .drag-hand-icon {
    color: @G305;
    &:hover{
      color: @G311;
    }
  }
  .row-dragging {
    background: #0E2C35;
    border: 1px solid @table-border-color;
  }
  .site-drawer-demo-wrap .site-drawer-demo-extra .site-sub-title
  {
    color: @G307;
  }
  .site-timeline-label {
    color: @G312;
  }
  .site-timeline-time {
    color: @G308;
  }
}
