CSS::Style(3pm) User Contributed Perl Documentation CSS::Style(3pm)NAME
CSS::Style - A ruleset in a CSS object tree
SYNOPSIS
use CSS;
DESCRIPTION
This module represents a ruleset in a CSS object tree. Read the CSS.pm pod for information about the CSS object tree.
METHODS
CONSTRUCTORS
"new()" or "new( { ..options.. } )"
This constructor returns a new "CSS::Style" object, with an optional hash of options.
adaptor adaptor to use for serialization
ACCESSORS
"add_selector( $selector )"
This method adds a selector to the selector list for the object. $selector is a reference to a CSS::Selector object.
"add_property( $property )"
This method adds a selector to the property list for the object. $property is a reference to a CSS::Property object.
"set_adaptor( 'CSS::Adaptor::Foo' )"
This method sets the current adaptor for the object.
"selectors()"
This method is used to serialize the ruleset's selectors, using the current adaptor. It returns a string which come from the adaptor's
"output_selectors()" method.
"properties()"
This method is used to serialize the ruleset's properties, using the current adaptor. It returns a string which come from the adaptor's
"output_properties()" method.
"to_string()"
This method is used to serialize the ruleset, using the current adaptor. It returns a string which comes from the adaptor's
output_rules() method.
"get_property_by_name( 'property_name' )"
Returns the first CSS::Property object with the specified name. Returns zero on failure.
AUTHOR
Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
SEE ALSO
CSS, http://www.w3.org/TR/REC-CSS1
perl v5.14.2 2008-04-23 CSS::Style(3pm)
Check Out this Related Man Page
CSS::Adaptor(3pm) User Contributed Perl Documentation CSS::Adaptor(3pm)NAME
CSS::Adaptor - Arbitrarily map CSS data for use in another context.
SYNOPSIS
use CSS;
# create a CSS object with an adaptor
my $css = new CSS({
'adaptor' => 'CSS::Adaptor',
});
# load some CSS data
$css->read_file( "my_file.css" );
# change the adaptor
$css->set_adaptor( "CSS::Adaptor::Pretty" );
# output CSS object using the current adaptor
print $css->output();
DESCRIPTION
This class is used by CSS to translate a CSS object to a string. This allows CSS data to be easily mapped into other formats.
This documentation is for people who want to write their own CSS::Adaptor module. For usage information, see the documentation for CSS.
METHODS
CONSTRUCTOR
"new()"
Called without options.
FUNCTIONS
"output_rule( $rule )"
returns a string containing a formatted CSS::Style object, passed as an object ref
"output_selectors( $selectors )"
returns a string containing a formatted list of CSS::Selector objects, passed as an array ref
"output_properties( $properties )"
returns a string containing a formatted list of CSS::Property objects, passed as an array ref
"output_values( $values )"
returns a string containing a formatted list of CSS::Value objects, passed as an array ref
AUTHORS
Copyright (C) 2001-2002, Allen Day <allenday@ucla.edu>
Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
SEE ALSO
CSS
perl v5.14.2 2008-04-23 CSS::Adaptor(3pm)
I would like to use an automated checker for adherence to CSS coding conventions. I have browsed the web, but no tool I came across checks for coding conventions, only syntax. Here is a general list of requirements:
- Style definitions should be separated by one blank line
- Indentation is 2... (0 Replies)
I have been reading up on CSS frameworks, to see if it could be useful for an intranet that I am helping to build, but the true purpose does not become clear to me. What circumstances would the deployment of a CSS framework be useful in? What does a CSS framework do that a CMS template cannot do? (1 Reply)
On my never ending quest to get rid of table tags and make the site responsive for all device sizes, I plan to use CSS Flexbox with jQuery.
I tried using Bootstrap Flex and CSS Grids, but none of these worked as easy and clean as CSS Flexbox.
For example, today I changed the top header area... (0 Replies)