]> git.openstreetmap.org Git - rails.git/commitdiff
Bootstrap 5: Override float attribute on legends
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Jun 2022 14:29:42 +0000 (15:29 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 20 Jul 2022 13:41:55 +0000 (14:41 +0100)
I don't fully understand why bootstrap added this in v5, as the
discussion on the issue tracker isn't clear. But we neither want
nor need this.

app/assets/stylesheets/common.scss

index d6331781286322da32ce55b1833783fa63f54f19..03fe7bd42a9c12f33a147fb4164eed25c4991af2 100644 (file)
@@ -686,6 +686,11 @@ form {
   }
 }
 
+/* Stop bootstrap 5 from floating legends when they don't need to be */
+legend {
+  float: none;
+}
+
 /* Rules for the search and direction forms */
 
 header .search_forms,