[PORT] gitea#30282: Markup color and font size fixes

1. Distinguish inline an block code with new CSS variable
`--color-markup-code-inline`
2. Various color tweaks, better contrast from background

(cherry picked from commit 662eb4b0852f9ce2c161e7fea5ac66bf912fc9f6)

---

- Revert the changes of #2874.
- Add more contrast to the inline block for light and dark theme.

(cherry picked from commit 662eb4b0852f9ce2c161e7fea5ac66bf912fc9f6)
This commit is contained in:
silverwind 2024-04-06 23:06:27 +02:00 committed by Gusted
parent efc2f53954
commit ff1744cbbc
No known key found for this signature in database
GPG key ID: FD821B732837125F
5 changed files with 11 additions and 7 deletions

View file

@ -438,7 +438,7 @@
margin: 0; margin: 0;
font-size: 85%; font-size: 85%;
white-space: break-spaces; white-space: break-spaces;
background-color: var(--color-markup-code-block); background-color: var(--color-markup-code-inline);
border-radius: var(--border-radius); border-radius: var(--border-radius);
} }
@ -509,7 +509,7 @@
line-height: 10px; line-height: 10px;
color: var(--color-text-light); color: var(--color-text-light);
vertical-align: middle; vertical-align: middle;
background-color: var(--color-markup-code-block); background-color: var(--color-markup-code-inline);
border: 1px solid var(--color-secondary); border: 1px solid var(--color-secondary);
border-radius: var(--border-radius); border-radius: var(--border-radius);
box-shadow: inset 0 -1px 0 var(--color-secondary); box-shadow: inset 0 -1px 0 var(--color-secondary);

View file

@ -205,7 +205,8 @@
--color-menu: var(--steel-700); --color-menu: var(--steel-700);
--color-card: var(--steel-700); --color-card: var(--steel-700);
--color-markup-table-row: #ffffff06; --color-markup-table-row: #ffffff06;
--color-markup-code-block: var(--steel-850); --color-markup-code-block: var(--steel-800);
--color-markup-code-inline: var(--steel-850);
--color-button: var(--steel-600); --color-button: var(--steel-600);
--color-code-bg: var(--steel-750); --color-code-bg: var(--steel-750);
--color-shadow: #00000060; --color-shadow: #00000060;

View file

@ -224,6 +224,7 @@
--color-card: var(--zinc-50); --color-card: var(--zinc-50);
--color-markup-table-row: #ffffff06; --color-markup-table-row: #ffffff06;
--color-markup-code-block: var(--zinc-150); --color-markup-code-block: var(--zinc-150);
--color-markup-code-inline: var(--zinc-200);
--color-button: var(--zinc-150); --color-button: var(--zinc-150);
--color-code-bg: var(--zinc-50); --color-code-bg: var(--zinc-50);
--color-shadow: #00000060; --color-shadow: #00000060;

View file

@ -204,8 +204,9 @@
--color-active: #e8e8ff24; --color-active: #e8e8ff24;
--color-menu: #151a1e; --color-menu: #151a1e;
--color-card: #151a1e; --color-card: #151a1e;
--color-markup-table-row: #e8e8ff06; --color-markup-table-row: #e8e8ff0f;
--color-markup-code-block: #e8e8ff16; --color-markup-code-block: #e8e8ff12;
--color-markup-code-inline: #e8e8ff28;
--color-button: #151a1e; --color-button: #151a1e;
--color-code-bg: #14171a; --color-code-bg: #14171a;
--color-shadow: #00001758; --color-shadow: #00001758;

View file

@ -204,8 +204,9 @@
--color-active: #00001714; --color-active: #00001714;
--color-menu: #f8f9fb; --color-menu: #f8f9fb;
--color-card: #f8f9fb; --color-card: #f8f9fb;
--color-markup-table-row: #00001708; --color-markup-table-row: #0030600a;
--color-markup-code-block: #00001710; --color-markup-code-block: #00306010;
--color-markup-code-inline: #00306012;
--color-button: #f8f9fb; --color-button: #f8f9fb;
--color-code-bg: #fafdff; --color-code-bg: #fafdff;
--color-shadow: #00001726; --color-shadow: #00001726;