]> git.openstreetmap.org Git - rails.git/commitdiff
Rework the routing credit to use a bootstrap class
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 16 Jun 2021 12:28:33 +0000 (13:28 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 16 Jun 2021 12:28:33 +0000 (13:28 +0100)
The padding is unnecessary given it's in a paragraph anyway.

app/assets/javascripts/index/directions.js
app/assets/stylesheets/common.scss

index 18466864b19c80e44f6db06005c132b001fa799e..6fd02a57bd55a39efa7fddb9873359578e964d2d 100644 (file)
@@ -312,7 +312,7 @@ OSM.Directions = function (map) {
         $("#turnbyturn").append(row);
       });
 
-      $("#sidebar_content").append("<p id=\"routing_credit\">" +
+      $("#sidebar_content").append("<p class=\"text-center\">" +
         I18n.t("javascripts.directions.instructions.courtesy", { link: chosenEngine.creditline }) +
         "</p>");
 
index 411e6167bf3e37e64a9d65700121be25ed28da66..80e0d46fe99e0da1db1895c71a354ab63d109511 100644 (file)
@@ -1026,15 +1026,6 @@ tr.turn:hover {
   }
 }
 
-/* Rules for the routing sidebar */
-
-#sidebar_content {
-  #routing_credit {
-    text-align: center;
-    padding: 0.5em;
-  }
-}
-
 /* Rules for edit pages */
 
 .site-edit {