civicboom / greyarea Goto Github PK
View Code? Open in Web Editor NEWA tool to reorganise CSS into a potentially more efficient layout
A tool to reorganise CSS into a potentially more efficient layout
___________ ____ ___ __ _____ _______ ____ _____ / ___\_ __ \_/ __ < | | \__ \\_ __ \_/ __ \\__ \ / /_/ > | \/\ ___/\___ | / __ \| | \/\ ___/ / __ \_ \___ /|__| \___ > ____| (____ /__| \___ >____ / /_____/ \/\/ \/ \/ \/ A tool to re-organise a CSS file in a potentially more efficient way, inspired by Jens Meiert's article "CSS: Using every declaration just once" [1] Warnings: - The output is only *potentially* smaller. In my personal tests, I've found that the output is generally between 30% smaller and 30% larger. - The input is expected to be simple well-formed CSS with no comments; i.e. the sort of thing that a normal CSS minifier would output. Usage: greyarea in.css out.css greyarea in.css >output greyarea <input >output Credit: Shish <[email protected]> The Name: - It works on the principle of multiple selectors, one declaration - A dinghy has multiple sitters and one deck - The name of my last dinghy was GCU Grey Area - The process of rearranging the CSS file is potentially dangerous because CSS uses position within the file as a priority tiebreaker, so this tool being a good idea or not is a grey area :-) References: [1] http://code.google.com/speed/articles/optimizing-css.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.