Patch #44647 ยป 0001-Define-the-monospace-font-stack-as-a-CSS-variable-an.patch
| app/assets/stylesheets/application.css | ||
|---|---|---|
| 40 | 40 | |
| 41 | 41 |
:root {
|
| 42 | 42 |
--fonts-main: "Noto Sans", sans-serif; |
| 43 |
--fonts-monospace: Consolas, Menlo, "Liberation Mono", monospace; |
|
| 43 | 44 |
--color-current-marker: var(--oc-indigo-5); |
| 44 | 45 |
/* no match in Open Color, using hex codes */ |
| 45 | 46 |
--color-top-menu-background: #234761; |
| ... | ... | |
| 72 | 73 |
h2 {font-size: 1.25rem;}
|
| 73 | 74 |
h3 {font-size: 1.0625rem;}
|
| 74 | 75 |
h4 {font-size: 0.875rem; border-block-end: 1px solid var(--oc-gray-4); font-weight: normal;}
|
| 75 |
pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
|
|
| 76 |
pre, code {font-family: var(--fonts-monospace);}
|
|
| 76 | 77 |
.wiki h1 {font-size: 1.6em;}
|
| 77 | 78 |
.wiki h2 {font-size: 1.4em;}
|
| 78 | 79 |
.wiki h3 {font-size: 1.2em;}
|
| ... | ... | |
| 903 | 904 |
blockquote blockquote { margin-inline-start: 0;}
|
| 904 | 905 |
abbr[title], span.field-description[title] { text-decoration: none; border-block-end: 1px dotted var(--oc-gray-5); cursor: help; }
|
| 905 | 906 |
textarea.wiki-edit {inline-size: 99%; resize: vertical; box-sizing: border-box;}
|
| 906 |
body.textarea-monospace textarea.wiki-edit {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
|
|
| 907 |
body.textarea-monospace textarea.wiki-edit {font-family: var(--fonts-monospace);}
|
|
| 907 | 908 |
body.textarea-proportional textarea.wiki-edit {font-family: var(--fonts-main);}
|
| 908 | 909 |
li p {margin-block-start: 0;}
|
| 909 | 910 |
div.issue {
|
| ... | ... | |
| 2401 | 2402 |
border:1px solid var(--oc-gray-4); |
| 2402 | 2403 |
padding-block: 2px; |
| 2403 | 2404 |
padding-inline: 4px; |
| 2404 |
font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;
|
|
| 2405 |
font-family: var(--fonts-monospace);
|
|
| 2405 | 2406 |
} |
| 2406 | 2407 |
.sample-data tr:first-child td {font-weight:bold; text-align:center;}
|
| 2407 | 2408 | |
| app/assets/stylesheets/scm.css | ||
|---|---|---|
| 58 | 58 |
[dir="rtl"] #changes-legend li { background-position: right 5px top 1px; }
|
| 59 | 59 | |
| 60 | 60 |
table.filecontent { border: 1px solid var(--oc-gray-4); border-collapse: collapse; inline-size: 98%; background-color: var(--oc-gray-0); }
|
| 61 |
table.filecontent tbody {font-family:Consolas, Menlo, "Liberation Mono", Courier, monospace; font-size:0.75rem;}
|
|
| 61 |
table.filecontent tbody {font-family:var(--fonts-monospace); font-size:0.75rem;}
|
|
| 62 | 62 |
table.filecontent th { border: 1px solid var(--oc-gray-4); background-color: var(--oc-gray-1); }
|
| 63 | 63 |
table.filecontent th.filename { background-color: var(--oc-gray-2); text-align: start; padding: 5px;}
|
| 64 | 64 |
table.filecontent tr.spacing th { text-align:center; }
|
| ... | ... | |
| 94 | 94 |
table.filecontent td.line-code pre, table.filecontent td.line-code div {
|
| 95 | 95 |
margin: 0px; |
| 96 | 96 |
white-space: pre-wrap; |
| 97 |
font-family:Consolas, Menlo, "Liberation Mono", Courier, monospace; font-size:0.75rem;
|
|
| 97 |
font-family:var(--fonts-monospace); font-size:0.75rem;
|
|
| 98 | 98 |
} |
| 99 | 99 | |
| 100 | 100 |
table.filecontent tr:target th.line-num { background-color:var(--oc-gray-3); color: var(--oc-gray-6); }
|
| app/assets/stylesheets/wiki_syntax.css | ||
|---|---|---|
| 34 | 34 | |
| 35 | 35 |
:root {
|
| 36 | 36 |
--fonts-main: "Noto Sans", sans-serif; |
| 37 |
--fonts-monospace: Consolas, Menlo, "Liberation Mono", monospace; |
|
| 37 | 38 |
} |
| 38 | 39 | |
| 39 | 40 |
h1 { font-family: var(--fonts-main); font-size: 0.875rem; text-align: center; color: var(--oc-gray-8); }
|
| 40 | 41 |
body { font-family: var(--fonts-main); font-size: 0.75rem; color: var(--oc-gray-8); }
|
| 41 |
pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; }
|
|
| 42 |
pre, code { font-family: var(--fonts-monospace); }
|
|
| 42 | 43 |
table th { padding-block-start: 1em; }
|
| 43 | 44 |
table th img {
|
| 44 | 45 |
border: 1px solid var(--oc-gray-5); |
| app/assets/stylesheets/wiki_syntax_detailed.css | ||
|---|---|---|
| 34 | 34 | |
| 35 | 35 |
:root {
|
| 36 | 36 |
--fonts-main: "Noto Sans", sans-serif; |
| 37 |
--fonts-monospace: Consolas, Menlo, "Liberation Mono", monospace; |
|
| 37 | 38 |
} |
| 38 | 39 | |
| 39 | 40 |
body { font-family: var(--fonts-main); font-size: 0.875rem; color: var(--oc-gray-9); line-height: 1.6;}
|
| 40 |
pre, code { font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; }
|
|
| 41 |
pre, code { font-family: var(--fonts-monospace); }
|
|
| 41 | 42 |
pre {
|
| 42 | 43 |
margin-block: 1em; |
| 43 | 44 |
margin-inline: 1.6em 1em; |
| app/views/layouts/mailer.html.erb | ||
|---|---|---|
| 49 | 49 |
margin-left: 0; |
| 50 | 50 |
} |
| 51 | 51 |
blockquote blockquote { margin-left: 0;}
|
| 52 |
pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
|
|
| 52 |
pre, code {font-family: Consolas, Menlo, "Liberation Mono", monospace;}
|
|
| 53 | 53 |
pre {
|
| 54 | 54 |
margin: 1em 1em 1em 1.6em; |
| 55 | 55 |
padding: 8px; |