• #dev 2020-09-29
  • Prev
    Next
  • #indieweb
  • #dev
  • #wordpress
  • #meta
  • #stream
  • #microformats
  • #known
  • #events
#dev ≡
  • ←
  • →
2020-09-29 UTC
# 23:08
[Murray]
[chrisaldrich] that's a really neat highlight effect you mentioned, had a look in the source and it's being done with a set of styles like this: `p:nth-child(6n+5)::selection { background-color: blue }` Basically, for every `<p>` element in the main body of text it just cycles through 5 or 6 possible background colours, using the `::selection` pseudo selector (?) to only appear when highlighted and `nth-child` to target each paragraph