Re:Show HN: Prevent your computer sleeping with just a webpage
by bradleyjkemp on Friday April 22, 2022 @01:02PM
(#31124472)
Yup, that's my bad CSS I'm afraid. https://bulma.io explicitly resets the color of <a> tags inside a hero, so I need to figure out how to stop/override that
[ Parent
| on HN ]
Re:Show HN: Prevent your computer sleeping with just a webpage
by pkage on Friday April 22, 2022 @01:32PM
(#31125038)
The "bulma" way would be to add the `has-text-link` class to the <a> tag [0], which has the benefit of matching your styles as well.
Re:Show HN: Prevent your computer sleeping with just a webpage
by bradleyjkemp on Friday April 22, 2022 @01:46PM
(#31125306)
Ah neat, yeah that's exactly what I need, thanks!
Re:Show HN: Prevent your computer sleeping with just a webpage
by gabrielsroka on Friday April 22, 2022 @01:12PM
(#31124635)
One or the other or both of these
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API" style="text-decoration: underline; color: blue;">Screen Wake Lock API</a>