/* Ruler */
/* Ruler based on https://github.com/hilliuse/ruler */
/* @(KD) */
html,
body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Shared Ruler Base */
.ruler {
    background: #e5e5e5;
    color: #323232;
    font-family: "Source Code Pro", "Arial Narrow", "Helvetica Neue", Helvetica,
        Arial, Verdana, sans-serif;
    font-size: 12px;
    line-height: 14px;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 9;
}

.ruler > div {
    background: #323232;
}

/* Horizontal Ruler */
.hRule {
    width: 100%;
    height: 18px;
    left: 0;
    top: 0;
    border-bottom: 1px solid #5845452b;
}

/* Vertical Ruler */
.vRule {
    min-height: 100%;
    width: 18px;
    left: 0;
    top: 0;
    border-right: 1px solid #5845452b;
}

/* Top-left Corner Box */
.corner {
    width: 18px;
    height: 18px;
    left: 0;
    top: 0;
    border-right: 1px solid #5845452b;
    border-bottom: 1px solid #5845452b;
    z-index: 10;
    position: absolute;
    background: #e5e5e5;
}

/* Horizontal Ticks */
.hRule .tickLabel,
.hRule .tickMajor,
.hRule .tickMinor {
    position: absolute;
    bottom: 0;
    width: 1px;
}

.hRule .tickLabel {
    height: 100%;
    text-indent: 2px;
}

.hRule .tickMajor {
    height: 6px;
}

.hRule .tickMinor {
    height: 4px;
}

/* Vertical Ticks */
.vRule .tickLabel,
.vRule .tickMajor,
.vRule .tickMinor {
    position: absolute;
    right: 0;
    width: 100%;
}

.vRule .tickLabel {
    position: absolute;
    right: 0px;
    height: 1px;
    width: 100%;
    text-indent: 1px;
}
.vRule .tickLabel span {
    display: block;
    position: absolute;
    top: 2px;
    right: 0px;
    margin-right: 18px;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-transform-origin: top right;
    -moz-transform-origin: top right;
    -ms-transform-origin: top right;
    -o-transform-origin: top right;
    transform-origin: top right;
}

.vRule .tickMajor {
    width: 6px;
    height: 1px;
}

.vRule .tickMinor {
    width: 4px;
    height: 1px;
}

/* Crosshair Lines */
.vMouse {
    position: absolute;
    width: 100%;
    height: 0;
    left: 0;
    border-bottom: 1px dotted #000;
    z-index: 11;
    pointer-events: none;
}

.hMouse {
    position: absolute;
    height: 100%;
    width: 0;
    top: 0;
    border-left: 1px dotted #000;
    z-index: 11;
    pointer-events: none;
}

/* Mouse Coordinates Box */
.mousePosBox {
    position: absolute;
    font-size: 12px;
    background: #323232;
    color: #fff;
    white-space: nowrap;
    z-index: 12;
    pointer-events: none;
    padding: 3px 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px 0px #0000006b;
}
