summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-10-11 04:59:27 +0000
committerGo MAEDA <maeda@farend.jp>2024-10-11 04:59:27 +0000
commit701642acadeb4d8d31e85b2e56e770acf2579946 (patch)
tree69cafc1c081db5e24e77b03b1e15262260827146
parent4c33e111b5bd73c7f9380e35a70d481a6b85a3f1 (diff)
downloadredmine-701642acadeb4d8d31e85b2e56e770acf2579946.tar.gz
redmine-701642acadeb4d8d31e85b2e56e770acf2579946.zip
Update Wiki Syntax Help font to Noto Sans to match the new default theme (#41321).
git-svn-id: https://svn.redmine.org/redmine/trunk@23113 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/assets/stylesheets/wiki_syntax.css22
-rw-r--r--app/assets/stylesheets/wiki_syntax_detailed.css24
2 files changed, 40 insertions, 6 deletions
diff --git a/app/assets/stylesheets/wiki_syntax.css b/app/assets/stylesheets/wiki_syntax.css
index 01543c359..cef2078f8 100644
--- a/app/assets/stylesheets/wiki_syntax.css
+++ b/app/assets/stylesheets/wiki_syntax.css
@@ -1,5 +1,23 @@
-h1 { font-family: Verdana, sans-serif; font-size: 14px; text-align: center; color: #444; }
-body { font-family: Verdana, sans-serif; font-size: 12px; color: #444; }
+@font-face {
+ font-family: "Noto Sans";
+ src: url("/NotoSans-VariableFont_wdth,wght.woff2") format("woff2");
+ font-weight: 100 900;
+ font-stretch: 75% 125%;
+ font-style: normal;
+ font-display: swap;
+}
+
+@font-face {
+ font-family: "Noto Sans";
+ src: url("/NotoSans-Italic-VariableFont_wdth,wght.woff2") format("woff2");
+ font-weight: 100 900;
+ font-stretch: 75% 125%;
+ font-style: italic;
+ font-display: swap;
+}
+
+h1 { font-family: "Noto Sans", sans-serif; font-size: 14px; text-align: center; color: #444; }
+body { font-family: "Noto Sans", sans-serif; font-size: 12px; color: #444; }
pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; }
table th { padding-top: 1em; }
table th img { border: 1px solid #bbb; }
diff --git a/app/assets/stylesheets/wiki_syntax_detailed.css b/app/assets/stylesheets/wiki_syntax_detailed.css
index 4e99410fe..11e3cd624 100644
--- a/app/assets/stylesheets/wiki_syntax_detailed.css
+++ b/app/assets/stylesheets/wiki_syntax_detailed.css
@@ -1,7 +1,23 @@
-body { font:80% Verdana,Tahoma,Arial,sans-serif; }
-h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; }
-pre, code { font-size:120%; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; }
-pre code { font-size:100%; }
+@font-face {
+ font-family: "Noto Sans";
+ src: url("/NotoSans-VariableFont_wdth,wght.woff2") format("woff2");
+ font-weight: 100 900;
+ font-stretch: 75% 125%;
+ font-style: normal;
+ font-display: swap;
+}
+
+@font-face {
+ font-family: "Noto Sans";
+ src: url("/NotoSans-Italic-VariableFont_wdth,wght.woff2") format("woff2");
+ font-weight: 100 900;
+ font-stretch: 75% 125%;
+ font-style: italic;
+ font-display: swap;
+}
+
+body { font-family: "Noto Sans", sans-serif; font-size: 0.875rem; color:#333;}
+pre, code { font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; }
pre {
margin: 1em 1em 1em 1.6em;
padding: 2px;