vol7 / shorthand Goto Github PK
View Code? Open in Web Editor NEWShrthnd is a handy tool that converts CSS properties into shorthand, making shorter and more readable stylesheets.
Home Page: shrthnd.volume7.io
Shrthnd is a handy tool that converts CSS properties into shorthand, making shorter and more readable stylesheets.
Home Page: shrthnd.volume7.io
Great tool, guys! I'll try to feature it soon in my newsletter (http://webtoolsweekly.com/).
One thing to note: It looks to me like you aren't including the new bg-related properties when combining for shorthand. These include 'size', 'origin', and 'clip'. See:
http://cssvalues.com/#background%20
And more detail on MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/background
All browsers support those new values in longhand and shorthand, including IE9+.
body {
transition-timing-function: linear;
transition-duration: 300ms;
transition-property: all;
}
could be
body {
transition: all linear 300ms;
}
Margins can be shortened using two, three or four value syntax, where
{
margin-top: 10px;
margin-right: 20px;
margin-bottom: 30px;
margin-left: 40px;
}
Could be shortened to
{ margin: 10px 20px 30px 40px; }
The same is valid for padding.
body {
border-top-color: #ddd;
border-bottom-color: #bbb;
border-left-color: #ccc;
border-right-color: #ccc;
}
body {
border-color: #ddd #bbb #ccc #ccc;
}
This css shorter really nice and helpful.
If you can make this in to sublime text as package, that would be great ๐
Do you have any plans to support Sass?
Hi, will you do some grunt support?
Or do you know some grunt package with this feature?
Would be great if this was available as a node module so it could transform stylesheets via the command line, as well be integrated into builds by way of Grunt, Gulp, Broccoli or whatever build processes are in place.
Would be more than happy to contribute that if you see value in it.
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.