Metadata-Version: 2.4
Name: collective.localstyles
Version: 1.3
Summary: Add local styles to subsections in your Plone site.
Home-page: https://github.com/collective/collective.localstyles
Author: Johannes Raggam
Author-email: thetetet@gmail.com
License: GPL
Keywords: plone collective theme style
Classifier: Framework :: Plone
Classifier: Programming Language :: Python
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Requires-Dist: setuptools
Requires-Dist: Products.CMFPlone
Requires-Dist: zope.publisher
Requires-Dist: plone.browserlayer
Provides-Extra: test
Requires-Dist: mock; extra == "test"
Requires-Dist: plone.app.testing[robot]; extra == "test"
Requires-Dist: unittest2; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

collective.localstyles
======================

With this Plone Addon you can add local styles within a subsection of your
Plone site.

After installation you can upload a css file, named ``localstyles.css``
anywhere to a folderish content item. This css file is then included for this
folder and all content items below. The traversing stops for ``ISite`` based
objects, which a ``localstyles.css`` file within a ``ISite`` (e.g. a
``collective.lineage`` site) isn't used for folders, which are in higher
hierachy of the content tree.

This product registers a viewlet named ``collective.localstyles.viewlet``,
which is included in ``plone.app.layout.viewlets.interfaces.IHtmlHead`` and is
responsible for injecting the ``localstyles.css`` file.

This product is inspired by this discussion:
http://plone.293351.n2.nabble.com/CSS-for-a-single-page-td7559936.html

Changelog
=========

1.3 (2026-04-04)
----------------

- Add a view variant of the localstyles template. It has the same name as the
  viewlet:  collective.localstyles.styleincluder
  [thet]

- Modernize localstyles template.
  [thet]


1.2 (2020-12-01)
----------------

- Allow localstyles also in ISite roots.
  [thet]


1.1 (2017-02-13)
----------------

Incompatibilities:

- Changed module-global ``LOCALSTYLES_FILE`` to ``LOCALSTYLES_FILES`` and allow multiple local style file names.
  Default are: ``localstyles.css`` and ``localstyles_css``.
  [thet]


New:

- Add last modification time as URL parameter to be sure to get changed styles through caching.
  [thet]


1.0 (2014-06-03)
----------------

- Initial.
