github.com/lumeland/ds@6d78223fe4/src/components/badge.css (L1-L12)
I think .badge should have margin set out of the box, and also have color set for :hover so the text remains legible. My proposed changes:
- add
margin: 0.0625rem 0.03125rem; or similar, you may have different thoughts about units/ratios.
- add
color: var(--color-dim); to &:hover
.badge {
border: 1px solid var(--color-line);
color: var(--color-dim);
margin: 0.0625rem 0.03125rem;
padding: 0.2em 0.6em;
border-radius: 4px;
text-decoration: none;
display: inline-block;
&:hover {
color: var(--color-dim);
background-color: var(--color-line);
}
}
See change in action in Tags section here, try toggling the new rules on and off to see why I added them:
https://rdela.com/archive/
Code:
github.com/rdela/rdela.com@2f29ca03af/_includes/css/ds.css (L598-L610)
Easy enough to add more specific rules in Xeo, .page-navigation-tags .badge + .post-tags .badge or override .badge, if you think this change is too specific to my case, but it seemed generally useful to me.
https://github.com/lumeland/ds/blob/6d78223fe4f4d8a70519dbea15da122debefe51d/src/components/badge.css#L1-L12
I think `.badge` should have `margin` set out of the box, and also have `color` set for `:hover` so the text remains legible. My proposed changes:
1. add `margin: 0.0625rem 0.03125rem;` or similar, you may have different thoughts about units/ratios.
2. add `color: var(--color-dim);` to `&:hover`
```css
.badge {
border: 1px solid var(--color-line);
color: var(--color-dim);
margin: 0.0625rem 0.03125rem;
padding: 0.2em 0.6em;
border-radius: 4px;
text-decoration: none;
display: inline-block;
&:hover {
color: var(--color-dim);
background-color: var(--color-line);
}
}
```
See change in action in Tags section here, try toggling the new rules on and off to see why I added them:
https://rdela.com/archive/
Code:
https://github.com/rdela/rdela.com/blob/2f29ca03af1dd6f177a4805a2555398f4628103c/_includes/css/ds.css#L598-L610
Easy enough to add more specific rules in Xeo, `.page-navigation-tags .badge` + `.post-tags .badge` or override `.badge`, if you think this change is too specific to my case, but it seemed generally useful to me.