]> git.openstreetmap.org Git - rails.git/commitdiff
Underline time elements that have a title
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Nov 2023 19:46:43 +0000 (19:46 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Nov 2023 19:46:43 +0000 (19:46 +0000)
This replicates the previous use of abbr tags, with improved semantics.

Although we only use time tags in one place at the moment, the attribute
filter protects against any usage in the future that doesn't need a title
indication.

app/assets/stylesheets/common.scss

index 5d7c61db3522a0214176ba7d5b3afb4e9b6af579..995c43f595a0a37414dcbfe65b78dea450b61a8e 100644 (file)
@@ -47,6 +47,10 @@ small, aside {
   font-size: 12px;
 }
 
+time[title] {
+  text-decoration: underline dotted;
+}
+
 #container { position: relative; }
 
 .small_icon {