{ "info": { "author": "Vincent Pretre (Zest software)", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "CSS check\n=========\n\nCSS check is a Python library/command line meant to help CSS\ndevelopers.\n\nThe main use is to see which CSS rule are applied to more than one\nelement in all your CSS files.\n\nInstall\n-------\n\nThe tool can be installed using easy_install::\n\n easy_install csscheck\n\n\nYou can then define an alias to run the tool (in your .bashrc or\n.profile file)::\n\n alias css_check=\"python -m csscheck.main\"\n\nIf you have a buildout with the ``bin`` flder contained in your path,\nyou can add this part::\n\n [css_check]\n recipe = zc.recipe.egg\n eggs = csscheck\n\nThat will automatically create a new executable ``cs_check`` in the\n``bin`` folder of your buildout.\n\nUsage\n-----\n\nWhen you simply run the ``css_check`` command created earlier, it will\nseek for all CSS files in the current directory (and sub-directories)\nand provide the list of CSS rules applied to more than one element.\nFor example::\n\n Rule \"display: block\" - used 4 times:\n ______________________________________\n - header\n - nav\n - article\n - footer\n\n\n Rule \"background: #008BCD;\" - used 3 times:\n ____________________________________________\n - #main > header\n - #main > nav > ul > li\n - #main > footer\n\n\nYou can also specify the directory in which the CSS files must be\nchecked, using the ``-d`` option::\n\n css_check -d media/green_theme\n\n\nYou can also check for which elements a CSS rule is applied. To do so,\nyou can use the ``-r`` or ``--rule=`` option.\nFor example::\n\n css_check --rule=\"display: block\"\n\n\nThose options will check all rules that contain the one you asked\nfor. So if you run ``css_check -r background``, the output will\nbe::\n\n Selectors for which \"background: #F60;\" is applied:\n ___________________________________________________\n - #main > header > nav\n \n \n Selectors for which \"background: #89BEFC;\" is applied:\n ______________________________________________________\n - body\n \n \n Selectors for which \"background: #008BCD;\" is applied:\n ______________________________________________________\n - #main > header\n - #main > nav > ul > li\n - #main > footer\n\n\nYou can use a strict rule checking using the ``-R`` or\n``--exact_rule`` option. In that case, you'll get an exact\nmatch. Running ``css_check -R background`` will not give any\nresult.\n\nThe tool also allows to know which rules are applied to a selector,\nusing the ``-s`` or ``--selector`` option.\nFor example, running ``css_check -s footer`` will output all\nrules applied for selectors containing the work ``footer``::\n\n Rules applied for \"#main > footer a:hover\":\n ___________________________________________\n - text-decoration: underline\n \n \n Rules applied for \"#main > footer a\":\n _____________________________________\n - color: #FFF\n \n \n Rules applied for \"#main > footer li\":\n ______________________________________\n - display: inline\n\n\nOnce again, you can specify the exact selector, using options ``-S``\nor ``--exact_selector``.\nRunning the command ``css_check -S footer`` will only output\nthis::\n\n Rules applied for \"footer\":\n ___________________________\n - display: block\n\n\nThe option used to specify the CSS directory is compatible with all\nother options. The other options can't be mixed (you can't specify a\nselector and a rule for example).\n\n\n\nChange log for CSSCheck\n=======================\n\n1.0 (2012-01-11)\n----------------\n\n - created product. [vincent]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "csscheck", "package_url": "https://pypi.org/project/csscheck/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/csscheck/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/csscheck/1.0/", "requires_dist": null, "requires_python": null, "summary": "Simple command line tool to help CSS developers", "version": "1.0" }, "last_serial": 743140, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "7f1cb3928a0f77a43109e95a20c24a07", "sha256": "fa44c9d15ac9078f002656daaf495266b7035f760b9b1a0828f4ad8923f3cc92" }, "downloads": -1, "filename": "csscheck-1.0.zip", "has_sig": false, "md5_digest": "7f1cb3928a0f77a43109e95a20c24a07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12367, "upload_time": "2012-01-11T09:48:08", "url": "https://files.pythonhosted.org/packages/48/ed/8bb52625f5a6c2bbf243532cd148291568778e04196f4055bf356fbb5f87/csscheck-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7f1cb3928a0f77a43109e95a20c24a07", "sha256": "fa44c9d15ac9078f002656daaf495266b7035f760b9b1a0828f4ad8923f3cc92" }, "downloads": -1, "filename": "csscheck-1.0.zip", "has_sig": false, "md5_digest": "7f1cb3928a0f77a43109e95a20c24a07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12367, "upload_time": "2012-01-11T09:48:08", "url": "https://files.pythonhosted.org/packages/48/ed/8bb52625f5a6c2bbf243532cd148291568778e04196f4055bf356fbb5f87/csscheck-1.0.zip" } ] }