This allows us to remove some custom CSS
I18n.t("javascripts.directions.descend") + ": " + formatHeight(route.descend) + ".");
}
I18n.t("javascripts.directions.descend") + ": " + formatHeight(route.descend) + ".");
}
- var turnByTurnTable = $("<table class='mb-3'>");
+ var turnByTurnTable = $("<table class='table table-sm mb-3'>")
+ .append($("<tbody>"));
var directionsCloseButton = $("<button type='button' class='btn-close'>")
.attr("aria-label", I18n.t("javascripts.close"));
var directionsCloseButton = $("<button type='button' class='btn-close'>")
.attr("aria-label", I18n.t("javascripts.close"));
}
var row = $("<tr class='turn'/>");
}
var row = $("<tr class='turn'/>");
- row.append("<td><div class='direction i" + direction + "'/></td> ");
- row.append("<td class='instruction'>" + instruction);
+ row.append("<td class='border-0'><div class='direction i" + direction + "'/></td> ");
+ row.append("<td>" + instruction);
row.append("<td class='distance'>" + dist);
row.on("click", function () {
row.append("<td class='distance'>" + dist);
row.on("click", function () {
div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
}
div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
}
-td.instruction, td.distance {
- padding-top: $lineheight/5;
- padding-bottom: $lineheight/5;
- border-bottom: 1px solid $grey;
-}
td.distance {
color: $darkgrey;
text-align: right;
td.distance {
color: $darkgrey;
text-align: right;