]> source.dussan.org Git - redmine.git/commitdiff
Apply `proportional-nums` for wiki text and `tabular-nums` for `table.list` (#41321).
authorGo MAEDA <maeda@farend.jp>
Wed, 16 Oct 2024 11:32:17 +0000 (11:32 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 16 Oct 2024 11:32:17 +0000 (11:32 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23130 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/assets/stylesheets/application.css

index fd15ad0bf9b8fce3633891c69d1f3c74917f67ff..46d7289cb4948815c80fe3f5c4c2ab16f9ee8129 100644 (file)
@@ -288,6 +288,7 @@ div + .drdn-items {border-top:1px solid #ccc;}
 /***** Tables *****/
 table.list, .table-list {
   font-size: 0.8125rem;
+  font-variant-numeric: tabular-nums;
   border-top: 1px solid #d0d7de;
   border-bottom: 1px solid #d0d7de;
   border-collapse: collapse;
@@ -1406,6 +1407,13 @@ button.tab-left.disabled, button.tab-right.disabled {
 }
 
 /***** Wiki *****/
+div.wiki {
+  font-variant-numeric: proportional-nums;
+  & table, & pre, & code, & ol>li::marker {
+    font-variant-numeric: tabular-nums;
+  }
+}
+
 div.wiki table {
   border-collapse: collapse;
   margin-bottom: 1em;