livraison rapide de viagra cialis tiempo cialis 20mg prix viagra billig commande levitra suisse erfahrung viagra generika generic viagra europe cialis cialis oferta cialis medicamento viagra belge viagra kaufen online viagra receptfri viagra dove si compra levitra achat
cialis femme 
levitra en france 
viagra ordonnance ou pas 
vente viagra libre 
vente kamagra belgique 
veritable viagra solde 
commander du cialis 
cialis ou viagra achat 
viagra remboursement 
acheter viagra generique belgique 
viagra france livraison rapide 
comment acheter du viagra forum 
trouver du viagra 
commande viagra en france 
recherche viagra français 
kamagra india kamagra paypal priligy mg next day delivery viagra gel kamagra online pharmacy buying viagra india pharmacy viagra levitra price finasteride online no prescription guaranteed lowest price cialis store cialis low price viagra pills for sale cheapest viagra viagra tablet cheap kamagra online

Script identifying CSS shorthand possibilities

For my own convenience I created this script to identify css files where colors like #aaaaaa can be rewritten in the short form #aaa

(saves bandwith, but can also make it easier to identify similar colors)

grep -nE '#([0-9a-f])\1([0-9a-f])\2([0-9a-f])\3' **/*.css

output from a random project:

css/actions.css:19: color: #000000; css/actions.css:38: color: #000000 !important; css/actions.css:53: color: #ffffff !important; css/admin.css:90: color: #cccccc; css/admin.css:94: color: #aaaaaa !important;

2 Responses to “Script identifying CSS shorthand possibilities”

  1. vim Says:

    great tip, this sure does save a lot loading time, another great tip is grouping the h1 tags eg. h1,h2,h3 { font-size:1.4em; }

  2. custom t-shirts Says:

    Does truncating from 6 to 3 characters really save that much bandwidth?