Coder Social home page Coder Social logo

mr-mostafa / useful-css-with-less Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 985 KB

Useful CSS is a snippets of reusable CSS by less mixins to develop faster and keep code readable.

Home Page: http://usefulcss.ir/

License: MIT License

CSS 100.00%

useful-css-with-less's Introduction

Useful CSS With Less Mixins

Useful CSS is a snippets of reusable CSS by less mixins to develop faster and keep code readable.


For more information: http://usefulcss.ir


How to Use

Download the UsefulCSS.less OR UsefulCSS.min.less and then copy the following code at the right place given here:

/* place it into your HTML <head> tag */
<link rel="stylesheet/less" href="UsefulCSS.min.less">

/* OR use @import in your less file */
@import "../UsefulCSS.min.less";

How it works:

As a rule, you can use the CSS properties you would expect just by adding a . to start them and putting arguments afterwards. Whatever... let's say you want a elliptical border radius for an element, here you go:

Example:

div.radius{
	.border-radius(150px 150px 150px 150px, 75px 75px 75px 75px);
}

Output:

div.radius {
	-webkit-border-radius: 150px 150px 150px 150px / 75px 75px 75px 75px;
	-moz-border-radius: 150px 150px 150px 150px / 75px 75px 75px 75px;
	border-radius: 150px 150px 150px 150px / 75px 75px 75px 75px;
}

Mixin Names:

CSS property & Value
.opacity(@opacity);
.border-radius(@radius; @elliptical);
.border-image(...);
.box-sizing(@value);
.text-shadow(...);
.box-shadow(...);
.font-face(@font-family-name; @font-name; @font-style; @font-weight; @woff; @woff2; @ttf; @eot; @svg);
.transform(@rotate; @scale; @skew; @translate);
.transform-origin(@value);
.transform-style(@style);
.translate(@x; @y);
.translate3d(@x; @y; @z);
.translateX(@x);
.translateY(@y);
.translateZ(@z);
.rotate(@deg);
.rotate3d(@x; @y; @z; @deg);
.rotateX(@deg);
.rotateY(@deg);
.rotateZ(@deg);
.scale(@x; @y);
.scale3d(@x; @y; @z);
.scaleX(@x);
.scaleY(@y);
.scaleZ(@z);
.skew(@deg; @deg2);
.skewX(@deg);
.skewY(@deg);
.matrix(...);
.backface-visibility(@value);
.perspective(@value);
.perspective-origin(@value);
.keyframes(@name; @arguments);
.animation(@arguments);
.animation-name(@name);
.animation-duration(@time);
.animation-timing-function(@args);
.animation-delay(@delay);
.animation-iteration-count(@count);
.animation-direction(@direction);
.animation-fill-mode(@mode);
.animation-play-state(@args);
.media-max(@maxWidth; @rules);
.media-min(@minWidth; @rules);
.mobile(@rules);
.tablet(@rules);
.desktop(@rules);
.desktop-wide(@rules);
.mobile-small-bs(@rules);
.mobile-bs(@rules);
.tablet-bs(@rules);
.desktop-bs(@rules);
.desktop-wide-bs(@rules);
.filter(@args);
.placeholder(@ruleset);
.selection(@ruleset);

For more information, visit http://usefulcss.ir


Contributing:

There are no special conditions, we look forward to working with you.


License

Useful CSS released under the MIT License

useful-css-with-less's People

Contributors

mr-mostafa avatar

Watchers

James Cloos avatar  avatar

Forkers

alexie7777

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.