问题
Material UI uses JSS at its core and you sometimes need to override styles from their base components.
Example from Input: '&:hover:not($disabled):before'{ ... }
I cannot find this syntax mentioned in the JSS syntax docs, so it's hard to discuss with others without a common name. What is it called?
回答1:
This functionality is made possible through a plugin for nesting.
The plugin itself describes this as "nested selectors", which is also usually the term you will find being used to describe it when searching Stack Overflow.
来源:https://stackoverflow.com/questions/55067108/what-is-the-jss-syntax-for-referencing-generated-class-names-called