/*
 * Copyright 2018-2020 DITA (AM Consulting LLC)
 *
 * 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.
 *
 * Developed on behalf of: Bokbasen AS (https://www.bokbasen.no)
 * Licensed to: Bokbasen AS and CAST under one or more contributor license agreements.
 */

//////////////////////////////
// Bookmarks Styles         //
//////////////////////////////

.bookmarks-view, .highlights-view{
  background-color: $ui-white;
  overflow: scroll;
  top: 3.5rem;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  ol li,
  ul li {
    margin-top: 0;

    a {
      color: $ui-dark-gray;
      border-bottom: 1px solid darken($ui-white, 20%);
      display: block;
      padding: 1rem;
      text-decoration: none;
      width: 100%;

      @media screen and (min-width: 60rem) {
        &:hover {
          background: $ui-hover-gray;
          color: $ui-black;
        }
      }

      &.active {
        background: $ui-light-gray;
        color: $ui-black;
      }

      &.active:hover {
        background: $ui-dark-gray;
        color: $ui-light-gray;
      }
    }

  }
}

[data-viewer-theme="sepia"] {
    .bookmarks-view, .highlights-view {
        background-color: $sepia-bg;

    ol li,
    ul li {
        a {
        color: $ui-dark-gray;
        border-bottom: 1px solid darken($sepia-bg, 20%);

        @media screen and (min-width: 60rem) {
          &:hover {
            background: $ui-hover-gray;
            color: $sepia-bg;
          }
        }

        &.active {
          background: $ui-light-gray;
          color: $ui-black;
        }

        &.active:hover {
          background: $ui-black;
          color: $ui-light-gray;
        }
      }

      span {
        color: $ui-dark-gray;
      }
    }
  }
}

[data-viewer-theme="night"] {
    .bookmarks-view, .highlights-view {
        background-color: $night-bg;

    ol li,
    ul li {
        a {
        color: $ui-dark-gray;
        border-bottom: 1px solid darken($ui-white, 20%);

        @media screen and (min-width: 60rem) {
          &:hover {
            background: $ui-hover-gray;
            color: $ui-white;
          }
        }

        &.active {
          background: $ui-light-gray;
          color: $night-bg;
        }

        &.active:hover {
          background: $ui-dark-gray;
          color: $ui-light-gray;
        }
      }

      span {
        color: $ui-light-gray;
        border-bottom: 1px solid lighten($night-bg, 20%);
      }
    }
  }
}
//////////////////////////////
// BOOKMARKS Styles //
//////////////////////////////
