mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-27 12:39:29 +08:00
Add CSS rules for basic colored labels (#23774)
Before: <img width="164" alt="Screenshot 2023-03-28 at 23 35 46" src="https://user-images.githubusercontent.com/115237/228372437-663111b9-7285-4fa2-9125-fb5e1cad21d7.png"> After: <img width="166" alt="Screenshot 2023-03-28 at 23 35 54" src="https://user-images.githubusercontent.com/115237/228372441-49430517-6b2d-4389-b11c-c30a724f6de7.png"> Also I removed the `!important` on the primary label as it's very likely unnecessary with the amount of specificity the selector already has.
This commit is contained in:
parent
92c160d8e7
commit
79e7a6ec1e
@ -2399,9 +2399,107 @@ a.ui.label:hover {
|
||||
|
||||
.ui.basic.labels .primary.label,
|
||||
.ui.ui.ui.basic.primary.label {
|
||||
background: transparent !important;
|
||||
border-color: var(--color-primary) !important;
|
||||
color: var(--color-primary) !important;
|
||||
background: transparent;
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.ui.basic.labels .secondary.label,
|
||||
.ui.ui.ui.basic.secondary.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-secondary);
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
|
||||
.ui.basic.labels .orange.label,
|
||||
.ui.ui.ui.basic.orange.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-orange);
|
||||
color: var(--color-orange);
|
||||
}
|
||||
|
||||
.ui.basic.labels .green.label,
|
||||
.ui.ui.ui.basic.green.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-green);
|
||||
color: var(--color-green);
|
||||
}
|
||||
|
||||
.ui.basic.labels .olive.label,
|
||||
.ui.ui.ui.basic.olive.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-olive);
|
||||
color: var(--color-olive);
|
||||
}
|
||||
|
||||
.ui.basic.labels .teal.label,
|
||||
.ui.ui.ui.basic.teal.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-teal);
|
||||
color: var(--color-teal);
|
||||
}
|
||||
|
||||
.ui.basic.labels .blue.label,
|
||||
.ui.ui.ui.basic.blue.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-blue);
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
.ui.basic.labels .violet.label,
|
||||
.ui.ui.ui.basic.violet.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-violet);
|
||||
color: var(--color-violet);
|
||||
}
|
||||
|
||||
.ui.basic.labels .purple.label,
|
||||
.ui.ui.ui.basic.purple.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-purple);
|
||||
color: var(--color-purple);
|
||||
}
|
||||
|
||||
.ui.basic.labels .pink.label,
|
||||
.ui.ui.ui.basic.pink.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-pink);
|
||||
color: var(--color-pink);
|
||||
}
|
||||
|
||||
.ui.basic.labels .red.label,
|
||||
.ui.ui.ui.basic.red.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-red);
|
||||
color: var(--color-red);
|
||||
}
|
||||
|
||||
.ui.basic.labels .brown.label,
|
||||
.ui.ui.ui.basic.brown.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-brown);
|
||||
color: var(--color-brown);
|
||||
}
|
||||
|
||||
.ui.basic.labels .yellow.label,
|
||||
.ui.ui.ui.basic.yellow.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-yellow);
|
||||
color: var(--color-yellow);
|
||||
}
|
||||
|
||||
.ui.basic.labels .grey.label,
|
||||
.ui.ui.ui.basic.grey.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-grey);
|
||||
color: var(--color-grey);
|
||||
}
|
||||
|
||||
.ui.basic.labels .black.label,
|
||||
.ui.ui.ui.basic.black.label {
|
||||
background: transparent;
|
||||
border-color: var(--color-black);
|
||||
color: var(--color-black);
|
||||
}
|
||||
|
||||
.ui.basic.labels .label,
|
||||
|
Loading…
Reference in New Issue
Block a user