Conversation
|
I'm ok with this. Would add two more things:
|
|
Sounds good. I can add them to the docs tomorrow when I have the chance.
|
|
Hi @juniorRubyist, Could you have a look at updating the docs? |
|
I'm not very interested in this. This is a just shorthand of the same fixed phrase no matter who writes. Your request is the same as adding like follows: @mixin reduce-motion {
@media (prefers-reduced-motion: reduce) {
@content;
}
}
@mixin print {
@media print {
@content;
}
} |
|
@ysds I think that a shorthand for this would make the code cleaner and create less mistakes. (That second example is just flat out redundant.) If you think about it, you have a mixin for the breakpoints. |
|
@MartijnCuppens Sorry bout that. I pushed changes to the docs. |
We use these mixins quite a lot in our codebase, and we also have I think I'm gonna agree with @ysds here, we got to watch out we don't add too many mixins we don't use ourselves. |
Closes #29551
Adds two new mix-ins
dark-schemeandlight-schemethat take a block and wrap them in a media query forprefers-color-scheme.