- 25 Nov, 2018 1 commit
-
-
Jacob Petersen authored6d189f80
-
Created by: petetalksweb
Addresses Issue #685 (closed)
I found a placeholder selector: %no-list-style
, that seems to be used in a number of places. I thought, that I could just add the proposed CSS from the blog post linked in the issue, to %no-list-style
, and be done.
Unfortunately, the table of contents applies list-style: none
via a media query, and SASS does not let you extend a placeholder selector inside of a media query, so I went with the solution suggested here, and:
no-list-style-mixin
with all of the properties of the no-list-style
placeholder selectorno-list-style-mixin
no-list-style
placeholder selector with no-list-style-mixin
, so that the mixin is used wherever the placeholder selector is currently usedno-list-style-mixin
to the .toc
class to apply to the table of contents, since you can use mixins inside of media queries