I'm using the James Dean of sticky footers. It requires styles to be applied to the <html>
, <body>
and <footer>
. Now I'm using sass to write my css, and I'd like to implement this footer as modular as possible. Preferably like this for example:
footer {@extend %sticky-footer;}
However, if I do that I would still need to style the <html>
and <body>
tags. Scss does not have some sort of parent selector for that that I can use as far as I know. So is there a way to do this with sass (in scss) in a modular way, preferably with @extend? (there is an example on codepen)
To be clear: I'm not asking for a parent selector. I'm asking for a modular way to implement this footer with scss.