Name : perl-CSS-Scopifier
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.6.1
| Date : 2024-07-03 17:50:19
|
Group : Development/Libraries/Perl
| Source RPM : perl-CSS-Scopifier-0.04-lp156.6.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Prepends CSS selectors to apply scope/context
|
Description :
CSS::Scopifier extends CSS::Tiny adding the \'scopify\' method. The \'scopify\' method rewrites and prepends all the rules in the CSS object with the supplied selector string.
For instance, consider a \'CSS::Scopifier\' object \'$CSS\' representing the following CSS:
h1, h2 { font-family: Georgia, \"DejaVu Serif\", serif; letter-spacing: .1em; } h1 {font-size: 1.5em;} h2 {font-size: 1.4em;}
Then, after calling:
$CSS->scopify(\'.myclass\');
The CSS would then be:
.myclass h2 { font-family: Georgia, \"DejaVu Serif\", serif; font-size: 1.4em; letter-spacing: .1em; } .myclass h1 { font-family: Georgia, \"DejaVu Serif\", serif; font-size: 1.5em; letter-spacing: .1em; }
Note: \'CSS::Scopifier\' only supports single-level CSS; to scopify across nested/grouped rules (i.e. grouped within rules like \'AATTmedia print { ... }\') use CSS::Scopifier::Group.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/15.6/noarch |