{
"info": {
"author": "Jens Klein",
"author_email": "jens@bluedynamics.com",
"bugtrack_url": null,
"classifiers": [
"Environment :: Web Environment",
"Framework :: Zope3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python"
],
"description": "This is an implementation of a ``CSS Variables`` extension for Zope Browser \nResources.\n\nCascading Stylesheets don't have any built in method to define variables and use\nthem within the stylesheet. This feature was discussed at some CSS related\nblogs already and resulted in a `non-official draft specification`_.\n\n.. _`non-official draft specification`: http://disruptive-innovations.com/zoo/cssvariables/\n\nIn former Zope versions DTML templating language was used to define variables in \nCSS. This breaks CSS syntax, looks crappy and produces error messages in \nCSS-enabled editors even if the browser gets the correct values.\n\ncornerstone.cssvar uses an almost CSS syntax compatible variant to apply \nvariables::\n\n div.foo {\n color: var(myColor);\n }\n\nIf we declare such a css resource using zcml it looks this way::\n\n \n\nIf we use the common mechanism to declare variables using css like syntax we\nmust do this in a separate file, this looks like::\n\n @variables {\n myColor: #123456;\n }\n \nThe variable itself need to be defined by a named ``ICSSVariables`` adapter on \nrequest. We can register it by an own zcml directive:: \n\n \n\nNow we just need to tell our first css file which definition to use. Here \ntheres no common syntax, so we put it in an comment:: \n\n /# vardef(foodef) /#\n div.foo {\n color: var(myColor);\n }\n \nIf we now in browser look at ``http://mydomain.tld/++resource++foo`` it results\nin::\n\n /# vardef(foodef) /#\n div.foo {\n color: #123456;\n }\n \nFor resource directories as defined by ``zope.app.publisher`` the special CSS \nhandling is registered for every CSS file if this module is imported.\n\nThis package is tested with Zope 3.5dev KGS (Python 2.6 )and in Zope 2.10.7 \n(with Plone 3.3 and Python 2.4).\n\n=====\nTODO:\n=====\n\n* Write tests!\n* Make resourceDirectory work in Plone.\n* Profiling and performance testing. \n\n=========\nCopyright\n=========\n\nwritten by Jens W. Klein - `BlueDynamics Alliance`_ - Klein & Partner KEG, Austria\n\n.. _`BlueDynamics Alliance`: http://bluedynamics.com \n\n=======\nLicense\n=======\n\nCopyright (c) 2008-2009, BlueDynamics Alliance, Austria\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n* Neither the name of the BlueDynamics Alliance nor the\n names of its contributors may be used to endorse or promote products\n derived from this software without specific prior written permission.\n \nTHIS SOFTWARE IS PROVIDED BY BlueDynamics Alliance ''AS IS'' AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL BlueDynamics Alliance BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "UNKNOWN",
"keywords": "css variables resource",
"license": "BSD License derivative",
"maintainer": null,
"maintainer_email": null,
"name": "cornerstone.cssvar",
"package_url": "https://pypi.org/project/cornerstone.cssvar/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/cornerstone.cssvar/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "UNKNOWN"
},
"release_url": "https://pypi.org/project/cornerstone.cssvar/1.0/",
"requires_dist": null,
"requires_python": null,
"summary": "CSS Variables Support for Zope.",
"version": "1.0"
},
"last_serial": 788453,
"releases": {
"1.0": [
{
"comment_text": "",
"digests": {
"md5": "c416dbe749313e76f92c5933357ee4f4",
"sha256": "d54ded412a3092a9c23e9e1dfaac3593e4f46105eb7adde8c03b5674ce496f88"
},
"downloads": -1,
"filename": "cornerstone.cssvar-1.0.tar.gz",
"has_sig": false,
"md5_digest": "c416dbe749313e76f92c5933357ee4f4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6170,
"upload_time": "2009-03-25T18:01:32",
"url": "https://files.pythonhosted.org/packages/56/27/adfc73589ca05966267eabbab0e2e7f79dc80740ac0895005dd48ceae335/cornerstone.cssvar-1.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "c416dbe749313e76f92c5933357ee4f4",
"sha256": "d54ded412a3092a9c23e9e1dfaac3593e4f46105eb7adde8c03b5674ce496f88"
},
"downloads": -1,
"filename": "cornerstone.cssvar-1.0.tar.gz",
"has_sig": false,
"md5_digest": "c416dbe749313e76f92c5933357ee4f4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6170,
"upload_time": "2009-03-25T18:01:32",
"url": "https://files.pythonhosted.org/packages/56/27/adfc73589ca05966267eabbab0e2e7f79dc80740ac0895005dd48ceae335/cornerstone.cssvar-1.0.tar.gz"
}
]
}