@bt-color: #6d0;
@ht-color: magenta;
@rte-color: #2C75FF;
@htbt-color: yellow;

#volta_lignes_lz {
    line-width: 3;
    line-color: @ht-color;
    line-join: round;
}

#volta_lignes { 
    line-width: 4;
    line-color: @bt-color;
    [ ht = true ] {
        line-color: @ht-color;
        line-width: 6;
        line-join: round;
        line-cap: round;
    }
    [ underground = true ] {
        line-dasharray: 6,8 ;
        b/line-width: 0.5;
        b/line-color: black;
    }

    ::text [zoom >= 16][pixels>150] {
        text-name: "[operator]";
        text-face-name: @book-fonts;
        text-halo-radius: 1.25;
        text-placement: line;
        text-spacing: 800;
        text-avoid-edges: true;
    }

}

#volta_postes {
    marker-width: 8;
    marker-fill: @htbt-color;
    ::text [zoom >= 18] {
        text-name: "[operator]";
        text-face-name: @book-fonts;
        text-halo-radius: 1.25;
        text-dx: 8;
        text-dy: 2;
        b/text-name: "[nom]";
        b/text-face-name: @book-fonts;
        b/text-halo-radius: 1.25;
        b/text-dx: 8;
        b/text-dy: -2;
    }
}

#enedis_pole {
    marker-width: 6;
    marker-fill: white;
}

#volta_pole_hta {
    marker-comp-op: contrast;
    marker-width: 20;
    marker-fill: black;
}

#rte_lignes_aeriennes { 
    ::line {
        line-width: 8;
        line-join: round;
        line-cap: round;
        line-color: @rte-color;
        [ etat != 'EN EXPLOITATION' ] {
            line-opacity: 0.5;
        }
    }

    ::text [zoom < 18] {
        text-name: "[libelle]";
        text-fill: @rte-color;
        text-face-name: @bold-fonts;
        text-halo-radius: 1.5;
        text-placement: line;
        text-dy: 8;
        text-spacing: 400;
        text-avoid-edges: true;
    }
}

#rte_lignes_souterrainnes { 
    ::line {
        line-width: 8;
        line-join: round;
        line-cap: round;
        line-color: @rte-color;
        line-dasharray: 10,20;
        b/line-width: 0.5;
        [ etat != 'EN EXPLOITATION' ] {
            line-opacity: 0.5;
            line-dasharray: 1,20;
        }
    }

    ::text [zoom < 18] {
        text-name: "[libelle]";
        text-fill: @rte-color;
        text-face-name: @bold-fonts;
        text-halo-radius: 1.5;
        text-placement: line;
        text-dy: 8;
        text-spacing: 400;
        text-avoid-edges: true;
    }
}

#rte_enceintes_de_poste {
    line-color: darken(magenta,20%);
    line-width: 2;
    text-name: "[nom_poste]";
    text-fill: @rte-color;
    text-face-name: @bold-fonts;
    text-halo-radius: 1.5;
    text-wrap-width: 50;
}

#rte_pylones {
    ::marker {
        marker-fill: black;
        marker-width: 8;
    }
    ::text {
        text-name: [libelle];
        text-face-name: @book-fonts;
        text-halo-radius: 1.5;
        text-dy: 6;
        text-placement-type: simple;
        text-placements: S,E,W,SE,SW;
        text-avoid-edges: true;
    }
}

#ore_distributeurs {
    line-color: white;
    text-name: "[grd_elec]";
    text-face-name: @bold-fonts;
    text-fill: magenta;
    text-halo-radius: 1.5;
    text-dy: -6;
    text-wrap-width: 20;
    text-placement: line;
    text-spacing: 400;
}