forgejo/web_src/css/themes
Robert Wolff 5470fd0131 fix(ui): make relative time consistent with other text when selected (#11231)
Defines new css colours for theming:
```css
--color-selection-bg: var(--color-primary-light-1);
--color-selection-fg: var(--color-white);
```
which are then used both in the `base.css` and in the relative-time shadow object.

This, is how it looks for me when selecting before and after this patch (my Browser’s accent colour used for selection is orange):

| | Before  | After  |
|---|---|---|
| Forgejo Light | ![image](/attachments/aaee443e-c921-47bd-8c9f-d7260ef2b45e) | ![image](/attachments/e3089770-d9bb-40fa-ba68-e263ac2b0a7a) |
| Forgejo Dark | ![image](/attachments/cecefff6-39b4-4b8f-977f-773c3ec65297)| ![image](/attachments/cb6f0882-ad14-4463-952a-1c71505279db) |
| Gitea Light | ![image](/attachments/cd4200fa-3a6e-47e2-a1cd-c887dd6c0fbe) | ![image](/attachments/6294af16-9cf8-4ae7-acf3-6bd35c03e070) |
| Gitea Dark | ![image](/attachments/60193699-9b37-498e-b472-f37580c20755) | ![image](/attachments/42f5d4d1-e39a-424d-a65e-edb312300867) |

Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11231
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Robert Wolff <mahlzahn@posteo.de>
Co-committed-by: Robert Wolff <mahlzahn@posteo.de>
2026-02-11 15:34:31 +01:00
..
theme-forgejo-auto-deuteranopia-protanopia.css [THEME] Add colorblind theme variants 2024-02-05 16:05:02 +01:00
theme-forgejo-auto-tritanopia.css [THEME] Add colorblind theme variants 2024-02-05 16:05:02 +01:00
theme-forgejo-auto.css [BRANDING] Add Forgejo light, dark, and auto themes 2024-02-05 16:02:13 +01:00
theme-forgejo-dark-deuteranopia-protanopia.css Improve colors used by colorblind-friendly forgejo themes 2024-11-24 14:04:27 +00:00
theme-forgejo-dark-tritanopia.css Improve colors used by colorblind-friendly forgejo themes 2024-11-24 14:04:27 +00:00
theme-forgejo-dark.css fix(ui): make relative time consistent with other text when selected (#11231) 2026-02-11 15:34:31 +01:00
theme-forgejo-light-deuteranopia-protanopia.css Improve colors used by colorblind-friendly forgejo themes 2024-11-24 14:04:27 +00:00
theme-forgejo-light-tritanopia.css Improve colors used by colorblind-friendly forgejo themes 2024-11-24 14:04:27 +00:00
theme-forgejo-light.css fix(ui): make relative time consistent with other text when selected (#11231) 2026-02-11 15:34:31 +01:00
theme-gitea-auto.css Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419) 2023-10-06 09:46:36 +02:00
theme-gitea-dark.css fix(ui): make relative time consistent with other text when selected (#11231) 2026-02-11 15:34:31 +01:00
theme-gitea-light.css fix(ui): make relative time consistent with other text when selected (#11231) 2026-02-11 15:34:31 +01:00