Hello!
Here you can find the CSS library called "lil.css", it's a simple styling library that I've developped to do more quickly my tiny projects. It features a positioning system and stylized HTML components.
You can use it freely and customize it all according to your preferences.
How do I get it ?
You can download the source file here (normal & minified) : Get lil.css Get lil.min.css
Next you just have to link it in your HTML file head tag :
Positioning
Thanks to a custom grid and some custom HTML/CSS classes, lil.css can help you to organise your elements.
Left, Right, Center :
You can use the left, right and center classes to position your elements. Do not forget to include the lil-clear element when it is needed to end the float property.
PS: left and right use floats but center use margin and display so you will need the lil-clear element to isolate them.
Text align :
If you need to change your text align you can use the text-(insert-your-align) class.
Center :
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint accusantium esse deserunt corrupti eum quae? Magni consectetur debitis est quos? Ratione nulla amet mollitia eos, fugiat cupiditate rem. Ducimus, accusantium.
Left :
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint accusantium esse deserunt corrupti eum quae? Magni consectetur debitis est quos? Ratione nulla amet mollitia eos, fugiat cupiditate rem. Ducimus, accusantium.
Right :
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint accusantium esse deserunt corrupti eum quae? Magni consectetur debitis est quos? Ratione nulla amet mollitia eos, fugiat cupiditate rem. Ducimus, accusantium.
Justify :
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint accusantium esse deserunt corrupti eum quae? Magni consectetur debitis est quos? Ratione nulla amet mollitia eos, fugiat cupiditate rem. Ducimus, accusantium.
This is a centered paragraph.
This is a left paragraph.
This is a right paragraph.
This is a justified paragraph.
Block, Inline :
By using the block and inline classes you can change the display property without looking at the CSS.
Block :
Simply use the block class to add the display: block property to an element.
Inline :
You can also use the inline class to add the display: inline property to an element.
Inline-block :
By adding both the block and inline classes you can add the display: inline-block property to an element.
The grid :
lil.css comes with a custom grid (inspired by Grd) to help with the layout of your project(s). The grid is very light and simple to use.
I'm a column!
I another column!
Create rows and columns using lil-row and lil-col.
Classes you can use on a lil-row :
Class | Property |
---|---|
top | Pull your columns to the top of the row. |
middle | Pull your columns to the middle of the row. |
bottom | Pull your columns to the bottom of the row. |
stretch | Stretch the columns. |
baseline | Pull columns content to baseline. |
left | Pull your columns to the left of the row. |
center | Pull your columns to the center of the row. |
right | Pull your columns to the right of the row. |
between | Add spaces between your columns. |
around | Add spaces around your columns. |
Classes you can use on a lil-col :
Class | Property |
---|---|
n-12 | Replacing "n" by the a integer (1-12) you can change the size of the column. |
fill | Set the column width to left. |
Here is a little exemple of what you can do with the grid:
1-12
11-12
2-12
10-12
3-12
9-12
4-12
8-12
5-12
7-12
6-12
6-12
7-12
5-12
8-12
4-12
9-12
3-12
10-12
2-12
11-12
1-12
Sizing
You can quickly change the width of your elements by adding the class width-25/33/50/75/100.
My width is 25%
My width is 33%
My width is 50%
My width is 75%
My width is 100%
My width is 25%
My width is 33%
My width is 50%
My width is 75%
My width is 100%
Buttons
Here you have some customs buttons. You can use different colors, sizes, and styles by adding simple classes.
Just use the lil-btn class to use them.
Regular Buttons :
You can change the color of a button simply by adding the corresponding color class.
Outline buttons :
You can make an outline button by adding the outline class to an element with the lil-btn class.
Inputs
You can use custom inputs along with the grid to make nice forms.
You can make simple inputs using the lil-input class on your inputs.
Fonts & Typography
The font lil.css uses is "Heebo" provided by Google Fonts.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraph with bold, underline and Italic
Cards
Lilcss includes cards that can help you contain your content:
This is my card body title
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quisquam architecto ipsa illum dolorum quibusdam dolorem.
This is my card body title
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quisquam architecto ipsa illum dolorum quibusdam dolorem.
This is my card body title
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quisquam architecto ipsa illum dolorum quibusdam dolorem.
It is as easy to use as the rest, just use lil-card to create your card and lil-card-header, lil-card-body, lil-card-footer to structure your card.
You can also add a body title to your card by using the lil-card-title class in the body of your card.
If you want to add images just use the lil-card-img class.
Navigation
You can make navigation containing links, lil-btn elements and lil-input elements.