Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Text Editing&Processing > Markup

    cssmergemedia 0.1.1

    Download button

    No screenshots available
    Downloads: 87  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Adrien Kohlbecker | More programs
    Other/Proprietary Li... / FREE
    June 13th, 2012, 13:35 GMT [view history]
    ROOT / Text Editing&Processing / Markup

     Read user reviews (0)  Refer to a friend  Subscribe

    cssmergemedia description

    Merges identical media queries in your CSS

    cssmergemedia is a Python tool that merges identical media queries in your CSS.

    For example, the following CSS:

        @media screen and (min-width: 480px) and (max-width:899px) {
         .foo {
           color:black;
         }
        }

        @media screen and (min-width: 480px) and (max-width:899px) {
         .bar {
           background:red;
         }
        }


    Is compiled to:

        @media screen and (min-width: 480px) and (max-width:899px) {
         .foo {
           color:black;
         }
         .bar {
           background:red;
         }
        }


    This allows you to keep your media queries along with the base style for each element, instead of grouping them together at the end of the file or in a separate file (and thus turning maintenance into a nightmare)

    CSS Merge Media is based on cssutils: what can be parsed with cssutils can be used in the script.

    Installation

    Unpack the tarball and run::

      python setup.py install

    Invocation

    Invoke the script like so::

      cssmergemedia --input style.css --output style-merged.css


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Fixed dependecy check on install

      


    TAGS:

    media queries | merge queries | CSS | media | queries

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM