CSS Aid

Developers won't write the basic css properties again!

Getting Started

Copy-paste the stylesheet <link> into your <head> before all other stylesheets to load the CSS Aid library.

https://raw.githubusercontent.com/saurav12/css-aid/master/css/cssaid.min.css
Copy Source

For SASS/SCSS - Get it from the repo's scss/custom/_cssaid.scss

Margins

Use margin utilities to quickly style the margins of an element. Great for any element.

m--15
mt--15
mr--15
mb--15
ml--15

Use margin utilities to quickly style the margins of an element. Great for any element.

Use *-imp in the end/suffix to overwrite the styles with !important

Paddings

Use padding utilities to quickly style the paddings of an element. Great for any element.

p--20
pt--20
pr--20
pb--20
pl--20

Use padding utilities to quickly style the paddings of an element. Great for any element.

Use *-imp in the end/suffix to overwrite the styles with !important

Flex (Flexbox)

Make a layout in flex, just by using simple classes. Manage layout, alignment, columns, etc. with ease.

Flex Layout

fxdisplay: flex

Inline-Flex Layout

infxdisplay: inline-flex

Flex Direction

fx--fd-rflex-direction: row

1
2
3
4

fx--fd-rrflex-direction: row-reverse

1
2
3
4

fx--fd-cflex-direction: column

1
2
3
4

fx--fd-crflex-direction: column-reverse

1
2
3
4
Flex Wrap

fx--fw-wflex-wrap: wrap

1
2
3
4
5
6
7
8

fx--fw-wrflex-wrap: wrap-reverse

1
2
3
4
5
6
7
8

fx--fw-nwflex-wrap: no-wrap

1
2
3
4
5
6
7
8
Align Items (Flex)

fx--ai-fsalign-items: flex-start

1
2
3
4

fx--ai-fealign-items: flex-end

1
2
3
4

fx--ai-calign-items: center

1
2
3
4

fx--ai-balign-items: baseline

1
2
3
4

fx--ai-salign-items: stretch

1
2
3
4
Justify Content (Flex)

fx--jc-fsjustify-content: flex-start

1
2

fx--jc-fejustify-content: flex-end

1
2

fx--jc-sajustify-content: space-around

1
2

fx--jc-sbjustify-content: space-between

1
2

Use *-imp in the end/suffix to overwrite the styles with !important

Tables

Use display table utilities to quickly style the layout of an element. Great for any table like layout.

Table, Table Row & Table Cell

sec--tabledisplay: table

sec--table-rowdisplay: table-row

sec--table-celldisplay: table-cell

1
2
3
4

For full width tables use class .fw with .sec--table

Use *-imp in the end/suffix to overwrite the styles with !important

Vertical Alignment

Use vertical alignment utilities to quickly align the layout vertically. Great for any layouts.

Vertical Align

valign--tvertical-align: top

1
2
3
4

valign--mvertical-align: middle

1
2
3
4

valign--bvertical-align: bottom

1
2
3
4

Other classes also includes:

  • valign--blvertical-align: baseline

  • valign--ttvertical-align: text-top

  • valign--tbvertical-align: text-bottom

  • valign--subvertical-align: sub

  • valign--supvertical-align: sup

Use *-imp in the end/suffix to overwrite the styles with !important

Width & Height

Use width & height utilities to quickly set width & height to an element.

Width

width--fullwidth: 100%

width--full-vwwidth: 100vw

width: 100%

width--halfwidth: 50%

width--half-vwwidth: 50vw

width: 50% | 50vw
Height

height--fullheight: 100%

width--full-vhheight: 100vh

height: 100% | 100vh

height--halfheight: 50%

width--half-vhheight: 50vh

height: 50% | 50vh

You can also use .width--auto and .height--auto for resetting width & height respectively.

Use *-imp in the end/suffix to overwrite the styles with !important

Cursor Types

Just use simple classes to change your cursors.

Cursors

cursor--[cursor-name]cursor: [cursor-name]

Hover your cursor on below columns to see them in action

alias
all-scroll
auto
cell
col-resize
context-menu
copy
crosshair
default
e-resize
ew-resize
help
move
n-resize
n-resize
ne-resize
nesw-resize
no-drop
none
not-allowed
ns-resize
nw-resize
nwse-resize
pointer
progress
row-resize
sresize
se-resize
sw-resize
text
vertical-text
w-resize
wait

Use *-imp in the end/suffix to overwrite the styles with !important

Social Media Colors

Just use simple classes for social media colors.

Colors (Social)

color--social-[social-media-name]color: [social-media-name]

Use *-imp in the end/suffix to overwrite the styles with !important