CSS: more flexibility for link coloring: primary-link, secondary-link, etc. #8182

Open
opened 2025-11-02 07:56:15 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @pat-s on GitHub (Nov 27, 2021).

Feature Description

Currently most of Gitea's a {} values use the same a CSS rule, making it impossible to add different colors for different types of links.

It would be great if a distinction could be added with respect to CSS classes.
E.g. in GitHub, there are

  • .Link--primary
  • .Link--secondary

which take precedence over the generic a class.

This can be inspected in any repository in GitHub when looking at the CSS classes of links.

Screenshots

image

image

Originally created by @pat-s on GitHub (Nov 27, 2021). ### Feature Description Currently most of Gitea's `a {}` values use the same `a` CSS rule, making it impossible to add different colors for different types of links. It would be great if a distinction could be added with respect to CSS classes. E.g. in GitHub, there are - `.Link--primary` - `.Link--secondary` which take precedence over the generic `a` class. This can be inspected in any repository in GitHub when looking at the CSS classes of links. ### Screenshots ![image](https://user-images.githubusercontent.com/8430564/143675575-ebc78a4e-6f99-4c72-90e3-b0caeb7e655b.png) ![image](https://user-images.githubusercontent.com/8430564/143675594-19518dbb-468a-4361-80f1-a2aa449d3028.png)
GiteaMirror added the topic/issuestopic/uitype/proposal labels 2025-11-02 07:56:15 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8182