Posts
- Meta — Stuff about veekun. Praise, complaints, praise, praise, more praise, and so on.
- New Table Design for easier view
I'm neither good with css nor designing, BUT I just need a Sticky Header on tables, especially on the pokemon search.
I used Stylus to inject this css: ```css
.header-row th { position: sticky; top: 0; }
td:nth-child(1 of .stat) { background-color: #276110; color: #69ff17; } td:nth-child(2 of .stat) { background-color: #ff9e9e; color: #190000; } td:nth-child(3 of .stat) { background-color: #484848; color: #dbdbdb; } td:nth-child(4 of .stat) { background-color: #d690ff; color: #220048; } td:nth-child(5 of .stat) { background-color: #220048; color: #dfa8ff; } td:nth-child(6 of .stat) { background-color: #fcff63; color: #343900; }
```
The bottom part is just for highlighting the mon's stats and was a pain to implement, cuz im bad with css
I hope that this helps someone :D
Also I made some css rules that highlight attacks on pokemon detail pages if someone is interested
The formatting :( what happened here? there isnt even an option to edit noo
how do i get linebreaks