@use "../../../Sass/common/_variables";

.cesiumTimeline {
  display: table-cell;
  height: 19px;
  vertical-align: bottom;
}

:global {
  .cesium-timeline {
    &-needle,
    &-trackContainer,
    &-ruler {
      display: none !important;
    }
  }
}

// TODO: import this from cesium, doesn't work for me so far.
:global {
  .cesium-timeline-main {
    position: relative;
    left: 0;
    bottom: 0;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid white;
  }

  .cesium-timeline-trackContainer {
    width: 100%;
    overflow: auto;
    border-top: solid 1px #888;
    position: relative;
    top: 0;
    left: 0;
  }

  .cesium-timeline-tracks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .cesium-timeline-needle {
    position: absolute;
    left: 0;
    top: 1.7em;
    bottom: 0;
    width: 1px;
    background: #f00;
  }

  .cesium-timeline-bar {
    position: relative;
    left: 0;
    top: 0;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    height: 1.7em;
    background-color: #fafafa;
    background: variables.$dark;
  }

  .cesium-timeline-ruler {
    /* NOTE: The label and the ruler must use the same font/size */
    visibility: hidden;
    white-space: nowrap;
    font-size: 80%;
    z-index: -200;
  }

  .cesium-timeline-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #08f;
  }

  .cesium-timeline-ticLabel {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    font-size: 80%;
    color: #eee;
  }

  .cesium-timeline-ticMain {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 50%;
    background: #eee;
  }

  .cesium-timeline-ticSub {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 33%;
    background: #aaa;
  }

  .cesium-timeline-ticTiny {
    visibility: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 25%;
    background: #888;
  }

  .cesium-timeline-icon16 {
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url("../../../../wwwroot/images/TimelineIcons.png");
    background-repeat: no-repeat;
  }
}
