af83/chouette-core

View on GitHub
app/packs/stylesheets/OpenLayers/custom.scss

Summary

Maintainability
Test Coverage
.map,
.large_map,
.medium_map {
  .list-group-item & {
    margin-top: 15px;
  }
  .ol-routes-layers {
    position: absolute;
    right: 42px;
    top: .5em;
    padding: 0;
    margin: 5px -5px;
    width: 30%;
    background-color: transparentize(white, 0.2);
    border-radius: 3px;
    max-height: 90%;
    overflow-y: scroll;
    a {
      display: block;
      width: calc(100% - 10px);
      border: 1px solid $lightgrey;
      padding: 5px;
      margin: 5px;
      border-radius: 5px;
      cursor: pointer;
      color: $brand-color-secondary;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      font-size: 0.6em;
      &:hover {
        text-decoration: none;
        font-weight: bold;
      }
      &.active {
        background: $brand-color-secondary;
        color: white;
      }
    }
  }
  .ol-routes-layers-button-wrapper {
    position: absolute;
    right: .5em;
    top: .5em;
  }
  .ol-scale-line {
    background-color: transparent;
    bottom: 5px;
    right: 5px;
    left: auto;
    padding: 3px;
    position: absolute;

    .ol-scale-line-inner {
      position: relative;
      border: none;
      border-bottom: 2px solid $brand-color-primary;
      border-top: none;
      color: $brand-color-primary;
      font-size: 0.85em;
      text-align: center;
      font-weight: 700;

      &:before {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        height: 5px;
        border-left: 2px solid $brand-color-primary;
        border-right: 2px solid $brand-color-primary;
      }
    }
  }
  .ol-zoom {
    background-color: transparent;
  }
  .ol-zoom-in,
  .ol-zoom-out,
  .ol-routes-layers-button {
    background-color: $brand-color-primary;
    color: #fff;
    border-radius: 3px;
    margin: 0;
  }
  .ol-zoom-in {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .ol-zoom-out {
    margin-top: 1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .ol-zoomslider {
    margin: 2px;
    width: calc(1.375em + 4px);
    background-color: rgba($brand-color-primary, 0.25);

    button.ol-zoomslider-thumb {
      margin: 0 -2px 0 -2px;
      padding: 0 2px;
      background-color: $brand-color-primary;
      color: #fff;
      border-radius: 0;
      z-index: 5;
    }
  }
}