@import '../base/layout';

$chart-tap-highlight-color: rgba(0, 0, 0, 0);

$chart-font-size: $base-font-size !default;
$chart-tooltip-font-size: .929em !default;
$chart-label-font-size: .857em !default;
$chart-title-font-size: 1.143em !default;

@include exports('charts/layout') {

    $selection-handle-size: 22px !default;

    // Exported variables
    .k-var--chart-font {
        font-size: $chart-font-size;
    }

    .k-var--chart-title-font {
        font-size: $chart-title-font-size;
    }

    .k-var--chart-label-font {
        font-size: $chart-label-font-size;
    }

    // Elements
    .k-chart,
    .k-sparkline,
    .k-stockchart {
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: $chart-tap-highlight-color;
    }

    .k-chart,
    .k-stockchart {
        font-size: $chart-font-size;
        font-family: $base-font-family;
        display: block;
        height: 400px;
    }

    .k-chart-surface {
        height: 100%;
    }

    .k-chart-tooltip table {
        border-spacing: 0;
        border-collapse: collapse;
    }

    .k-chart-tooltip {
        font-size: $chart-tooltip-font-size;
        line-height: 1.154em;
        padding: .308em .692em;
    }

    .k-chart-tooltip th {
        width: auto;
        text-align: center;
        padding: 1px;
    }

    .k-chart-tooltip td {
        width: auto;
        text-align: left;
        padding: .1em .308em;
        line-height: 1.538em;
        vertical-align: middle;
    }

    .k-chart-crosshair-tooltip,
    .k-chart-shared-tooltip {
        border-width: 1px;
        border-style: solid;
    }

    .k-chart-shared-tooltip {
        padding: 1em;
        line-height: 1.538em;
    }

    .k-chart-shared-tooltip-marker {
        display: block;
        width: 15px;
        height: 3px;
        vertical-align: middle;
    }

    /* Selection */
    .k-selector {
        position: absolute;
        -webkit-transform: translateZ(0);
    }

    .k-selection {
        position: absolute;
        height: 100%;
        border-width: 1px;
        border-style: solid;
        border-bottom: 0;
    }

    .k-selection-bg {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .k-handle {
        width: $selection-handle-size;
        height: $selection-handle-size;
        border-width: 1px;
        border-style: solid;
        z-index: 1;
        border-radius: 50%;
        position: absolute;
    }

    .k-handle div {
        width: 100%;
        height: 100%;
    }

    .k-leftHandle {
        left: -($selection-handle-size / 2);
    }

    .k-rightHandle {
        right: -($selection-handle-size / 2);
    }

    .k-leftHandle div {
        margin: -20px 0 0 -15px;
        padding: 40px 30px 0 0;
    }

    .k-leftHandle.k-handle-active div {
        margin-left: -40px;
        padding-right: 55px;
    }

    .k-rightHandle div {
        margin: -20px 0 0 -15px;
        padding: 40px 0 0 30px;
    }

    .k-rightHandle.k-handle-active div {
        padding-left: 55px;
    }

    .k-mask {
        position: absolute;
        height: 100%;
    }

    .k-border {
        width: 1px;
        height: 100%;
        position: absolute;
    }

    .k-marquee {
        position: absolute;
        z-index: 100000;
    }

    .k-marquee-color,
    .k-marquee-text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Navigator hint */
    .k-navigator-hint div {
        position: absolute;
    }

    .k-navigator-hint .k-scroll {
        position: absolute;
        height: 4px;
    }

    .k-navigator-hint .k-tooltip {
        margin-top: 20px;
        min-width: 160px;
        opacity: 1;
        text-align: center;
    }

    /* Sparklines */
    .k-sparkline,
    .k-sparkline span {
        display: inline-block;
        vertical-align: top;
    }

    .k-sparkline span {
        height: 100%;
        width: 100%;
    }

    .k-chart-dragging {
        user-select: none;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
    }
}

