�PNG  IHDR��;���IDATx��ܻn�0���K�� �)(�pA��� ���7�LeG{�� �§㻢|��ذaÆ 6lذaÆ 6lذaÆ 6lom��$^�y���ذag�5bÆ 6lذaÆ 6lذa{���� 6lذaÆ �`����}H�Fkm�,�m����Ӫ���ô�ô!� �x�|'ܢ˟;�E:���9�&ᶒ�}�{�v]�n&�6� �h��_��t�ڠ͵-ҫ���Z;��Z$�.�P���k�ž)�!��o���>}l�eQfJ�T��u і���چ��\��X=8��Rن4`Vw�l�>����n�G�^��i�s��"ms�$�u��i��?w�bs[m�6�K4���O���.�4��%����/����b�C%��t ��M�ז� �-l�G6�mrz2���s�%�9��s@���-�k�9�=���)������k�B5����\��+͂�Zsٲ ��Rn��~G���R���C����� �wIcI��n7jJ���hۛNCS|���j0��8y�iHKֶۛ�k�Ɉ+;Sz������L/��F�*\��Ԕ�#"5��m�2��[S��������=�g��n�a�P�e�ғ�L�� lذaÆ 6l�^k��̱aÆ 6lذaÆ 6lذa;���� �_��ذaÆ 6lذaÆ 6lذaÆ ���R���IEND�B` import Container from './container.js' import Node from './node.js' interface DeclarationRaws { /** * The space symbols before the node. It also stores `*` * and `_` symbols before the declaration (IE hack). */ before?: string /** * The symbols between the property and value for declarations. */ between?: string /** * The content of the important statement, if it is not just `!important`. */ important?: string /** * Declaration value with comments. */ value: { value: string raw: string } } export interface DeclarationProps { /** Name of the declaration. */ prop: string /** Value of the declaration. */ value: string /** Whether the declaration has an `!important` annotation. */ important?: boolean /** Information used to generate byte-to-byte equal node string as it was in the origin input. */ raws?: DeclarationRaws } /** * Represents a CSS declaration. * * ```js * Once (root, { Declaration }) { * let color = new Declaration({ prop: 'color', value: 'black' }) * root.append(color) * } * ``` * * ```js * const root = postcss.parse('a { color: black }') * const decl = root.first.first * decl.type //=> 'decl' * decl.toString() //=> ' color: black' * ``` */ export default class Declaration extends Node { type: 'decl' parent: Container | undefined raws: DeclarationRaws /** * The declaration's property name. * * ```js * const root = postcss.parse('a { color: black }') * const decl = root.first.first * decl.prop //=> 'color' * ``` */ prop: string /** * The declaration’s value. * * This value will be cleaned of comments. If the source value contained * comments, those comments will be available in the `raws` property. * If you have not changed the value, the result of `decl.toString()` * will include the original raws value (comments and all). * * ```js * const root = postcss.parse('a { color: black }') * const decl = root.first.first * decl.value //=> 'black' * ``` */ value: string /** * `true` if the declaration has an `!important` annotation. * * ```js * const root = postcss.parse('a { color: black !important; color: red }') * root.first.first.important //=> true * root.first.last.important //=> undefined * ``` */ important: boolean /** * `true` if declaration is declaration of CSS Custom Property * or Sass variable. * * ```js * const root = postcss.parse(':root { --one: 1 }') * let one = root.first.first * one.variable //=> true * ``` * * ```js * const root = postcss.parse('$one: 1') * let one = root.first * one.variable //=> true * ``` */ variable: boolean constructor(defaults?: DeclarationProps) assign(overrides: object | DeclarationProps): this clone(overrides?: Partial): this cloneBefore(overrides?: Partial): this cloneAfter(overrides?: Partial): this }