1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
Style
=====
Internal Stylesheets
.. autoclass:: svgwrite.container.Style
.. seealso:: http://www.w3.org/TR/SVG/styling.html#StyleElement
.. automethod:: svgwrite.container.Style.__init__
.. automethod:: svgwrite.container.Style.append
Best place for the *style* element is the *defs* attribute of the
:class:`~svgwrite.drawing.Drawing` class::
drawing.defs.add(drawing.style('stylesheet-content'))
Parent Classes
--------------
* :class:`svgwrite.base.BaseElement`
SVG Attributes
--------------
* **type** -- `string`
default is ``'text/css'``
* **title** -- `string`
(For compatibility with HTML 4.) This attribute specifies an advisory
title for the ‘style’ element.
* **media** -- `string`
This attribute specifies the intended destination medium for style information.
It may be a single media descriptor or a comma-separated list.
The default value for this attribute is ``'all'``.
Standard SVG Attributes
-----------------------
* :doc:`Core Attributes </attributes/core>`
* :doc:`Conditional Processing Attributes </attributes/conditional_processing>`
* :doc:`Graphical Event Attributes </attributes/graphical_event>`
* :doc:`Presentation Attributes </attributes/presentation>`
* :doc:`XLink Attributes </attributes/xlink>`
|