GithubHelp home page GithubHelp logo

3l's Introduction

3L was made for YOU to help you create awesome websites and fill the Internet with excessive amount of Love! ♥

Keep up your good work!

3L is licensed under the Apache License v2.0

LESS is made by Alexis Sellier and licensed under Apache License v2.0

reset.css is made by Eric Meyer and is in public domain.

normalize.css is made by Nicolas Gallagher and Jonathan Neal and licensed under MIT License.

HTML5 Boiler Plate's default CSS is made by Nicolas Gallagher, Jonathan Neal, Kroc Camen, the H5BP dev community and other people and is licensed under MIT License.

3L version: 1.4.0-beta (2012.12.06) LESS version: 1.3.1 Reset.css version: 2.0 Normalize.css version: 2.0.1 HTML5BP's CSS version: 4.0.1

Get your own LESS.js

==========================================

HOW TO USE

Inside the .zip file you have:

  • my-style.less – here you'll be writing you code,
  • 3L-mini.less – the basic file with mixins,
  • 3L-maxi.less – mixins with documentation and examples,
  • less.js – the newest, compatible with 3L version of LESS.js,
  • animations.less – mixins required for declaring @keyframes,
  • bootstrap – files to be replaced in Bootstrap's less directory in order to use 3L together with Bootstrap.

Copy my-style.less, 3L-mini.less and less.js into the folder with your project. Place the code below in the section of your .html file.

<link rel="stylesheet/less" type="text/css" href="my-style.less" />
<script src="less.js" type="text/javascript"></script>

You can now start writing your own style in my-style.less. Check out the documentation for class names available to use and make your code awesome!

==========================================

ANIMATIONS

Using animations with 3L is pretty easy. Copy the animations less files (animationX.less) to the folder where you have your style sheet. In your code just type @import "animation1" (or any other number), create a class .animation1 (or any other) and declare your animation. 3L will make @keyframes for you. Now just use this animation in any element you want with .animation() class.

@import "animation1";
.animation1 () {
	/* your @keyframes rules */
	}
.someClassName {
	.animation(.animation1 1s);
	}

==========================================

How to make 3L compatible with Bootstrap?

It's easy! First you need to download pre-compiled Bootstrap (tested on v.2.0.2) with LESS files. Get it here -> https://github.com/twitter/bootstrap/ and unzip it. Then, in your downloaded 3L folder, you have a bootstrap folder with 2 files: bootstrap.less and mixins.less. Replace Bootstrap's original files in less folder with those two. After that just copy and paste 3l-mini.less (and all animations if you wish to use them) to the Bootstrap's less folder and create some awesome website!


Where are my grids?

3L doesn't have a grid system implemented. It is not meant to have any style included. Of course grids are cool so create yours with Gridpak —> http://gridpak.com/ . Gridpak gives you a responsive grid in LESS file so you can use it together with 3L.


Compiler I use fail to compile 3L!

Unfortunately not all compilers can deal with some of the 3L classes. The hardest to compile are opacity in percentages (it uses a small piece of JavaSript), keyframes and guarded mixins. I strongly encourage you to use WinLess (also the online version) as it works very well with all 3L classes.

If you're on a Mac and compiler you use was able to deal with all the issues stated above, please, let me know ([email protected])!

Other solution would be to delete the option to declare opacity in percentages (it's the biggest class in opacity block in 3L.less file and uses JavaScript). If it still doesn't help, you seriously need to consider getting a better compiler compatible with all LESS functionality!


I've found a bug (in your English)

That's great! Please, submit an issue via GitHub, so I'll get it fixed ASAP. -> https://github.com/mateuszkocz/3l/issues?state=open

If you find an error in language — be it on this website or in 3L's documentation — do not hesitate to also point that out! 3L is learning English very hard!


After compilation I have many comments in my style sheet

The reason is that you're using 3L-maxi.less that has documentation included. Your compiler leaves the comments intact. Solution is pretty easy — use either 3L-mini.less (if you use my-style.less 3L-mini is the default) or minify your CSS. Actually you should always minify CSS files so even if you were using 3L-maxi.less, those comments will be deleted eventually.

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.