| Class | Sass::Selector::Pseudo |
| In: |
lib/sass/selector.rb
|
| Parent: | Simple |
A pseudoclass (e.g. `:visited`) or pseudoelement (e.g. `::first-line`) selector. It can have arguments (e.g. `:nth-child(2n+1)`).
| ACTUALLY_ELEMENTS | = | %w[after before first-line first-letter] |
Some psuedo-class-syntax selectors are actually considered pseudo-elements
and must be treated differently. This is a list of such selectors
@return [Array<String>] |
| arg | [R] |
The argument to the selector, or `nil` if no argument was given.
This may include SassScript nodes that will be run during resolution. Note that this should not include SassScript nodes after resolution has taken place. @return [Array<String, Sass::Script::Node>, nil] |
| name | [R] |
The name of the selector.
@return [Array<String, Sass::Script::Node>] |
| syntactic_type | [R] |
Like \{type}, but returns the type of selector this looks like, rather
than the type it is semantically. This
only differs from type for selectors in
\{ACTUALLY_ELEMENTS}.
@return [Symbol] |
@param type [Symbol] See \{type} @param name [Array<String, Sass::Script::Node>] The name of the selector @param arg [nil, Array<String, Sass::Script::Node>] The argument to the selector,
or nil if no argument was given
The type of the selector. `:class` if this is a pseudoclass selector, `:element` if it‘s a pseudoelement.
@return [Symbol]