var postcss = ;var inherit =;
propertyRegExp- Regular expression to match the "inherit" at-rule. By default, it is
/^(inherit|extend)s?:?$/i, so it matches "inherit", "inherits", "extend", and "extends". For example, if you only want to allow the
extendkeyword, set the regular expression to
Inherit multiple selectors at the same time.
Any selector that includes a
% is considered a placeholder.
Placeholders will not be output in the final CSS.
If you inherit a selector, all rules that include that selector will be included as well.
Inheriting from inside a media query will create a copy of the declarations.
It will act like a "mixin".
%placeholders, you won't have to use mixins at all.
Each type of media query will need its own declaration,
so there will be some inevitable repetition.
- When in a media query, you can only inherit rules from root, or rules contained in a media query with the same parameters.