// 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 "../../../../../assets/scss/variables";

.define-view {
  .help-link {
    margin-left: 0.25rem;
  }
}

/* to remove once Mango has moved to the standard 2-panel layout */
.mango-editor-wrapper {
  label {
    font-size: 16px;
    margin-right: 0;
    display: block;
  }
  .bordered-box {
    border-bottom: 1px solid $cf-border-color01;
  }
  .padded-box {
    margin: 15px;
  }
  .actions-panel {
    display: flex;
    align-items: center;
  }
  .right-side-actions {
    flex-grow: 1;
    .edit-link {
      float: right;
    }
  }
  .db-title {
    color: $cf-brand-highlight;
    line-height: 30px;
  }
  #index-name {
    height: 46px;
    width: 200px;
  }
  .new-ddoc-input {
    margin-top: 25px;
    height: 46px;
  }
  pre.prettyprint-left {
    padding: 5px;
  }
  form {
    padding-bottom: 15px;
  }
  .help-link {
    margin-left: 4px;
  }

  .mango-code-editor {
    height: 300px;
    & > div {
      height: 90%;
    }
    & > div.full-page-editor-modal-wrapper {
      height: 100%;
    }
  }
}

.mango-select {
  width: inherit;
  overflow: visible;

  div {
    z-index: 100;
  }
}

a.index-cancel-link {
  margin-left: 0.5rem;
}

.reduce-editor-warning {
  padding-bottom: 1rem;
}
