All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scout.calendar.YearPanel.css Maven / Gradle / Ivy

There is a newer version: 25.1.0-beta.0
Show newest version
/*******************************************************************************
 * Copyright (c) 2014-2015 BSI Business Systems Integration AG.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     BSI Business Systems Integration AG - initial API and implementation
 ******************************************************************************/
.year-panel-container {
  display: inline-block;
  vertical-align: top;
  width: 0%;
  background-color: @palette-white;
  overflow: hidden;
}

.year-panel-title {
  position: relative;
  margin-left: 10px;
  width: calc(~'100%' - 40px);
  height: @calendar-title-height;
  white-space: nowrap;

  & > .year-title-item {
    display: inline-block;
    padding-right: 15px;
    line-height: @calendar-title-height;
    color: @palette-gray-6;
    cursor: pointer;
    font-weight: bold;

    &.selected {
      color: @text-color;
      cursor: default;
    }

    &:hover {
      color: @text-color;
    }
  }

   &::after{
    position: absolute;
    height: 1px;
    width: 100%;
    left: 0px;
    bottom: -1px;
    content: '';
    background-color: @palette-gray-5;
  }
}

.year-panel-list {
  position: relative;
  width: 180px;
  margin-left: 10px;

  height: calc(~'100%' -  @calendar-title-height);
  overflow: hidden;

  & > .year-month {
    margin-top: 18px;
    margin-bottom: 8px;
    position: relative;
    padding-top: 20px;
    padding-right: 15px;
    float: left;
    width: 180px;

    & > .year-day {
      position: relative;
      float: left;
      width: 23px;
      text-align: right;
      color: @text-color;
      height: 18px;
      padding-right: 5px;
      line-height: 19px;
      cursor: pointer;

      &.year-range{
        background-color: @item-selection-background-color;
      }

      &.year-hover{
        background-color: @item-selection-background-color;
      }

      &.year-range-day{
        background-color: @item-selection-border-color;
        color: @palette-white;
      }

      &.year-hover-day{
        background-color: @item-selection-border-color;
        color: @palette-white;
      }
    }
  }

  & > .year-month::before{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    content: attr(data-title);
    font-weight: bold;
    color: @text-color;
  }

  & > .year-month::after{
    position: absolute;
    bottom: 0px;
    right: 19px;
    height: calc(~'100%' -  20px);
    width: 26%;
    content: '';
    background-color: @palette-gray-7;
    opacity: 0.10;
    pointer-events: none
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy