﻿.scalebar-legend {
    list-style-type: none;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: center;
    /* NOTE: Browsers automatically add 40px of padding-left to all lists, so we should offset that, otherwise the legend is off-center */
    -webkit-padding-start: 0;
    /* Webkit */
    -moz-padding-start: 0;
    /* Mozilla */
    padding-left: 0;
    /* IE (handles all cases, really, but we should also include the vendor-specific properties just to be safe) */
}

.scalebar-legend li {
    display: inline-block;
    margin: 0 16px 8px 0;
    font-size: smaller;
    cursor: default;
}

.scalebar-legend span {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    vertical-align: middle;
}

.scalebar-legend span.scalebar-legend-text {
    padding: 3px 4px;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    white-space: nowrap;
}
