@matej.cupka/css-core
v1.6.0
Published
CSS Core for web projects
Downloads
64
Readme
CSS Core
CSS Core is a CSS framework including some basic classes for web projects.
Most classes that use px
values are converted to rem
units with 16px
as base font size.
Installation
Install using npm
You can install this package with npm by using this command:
npm i @cupka-matej/css-core
After installing package you can import source .scss
files or compiled .css
files into your webpage.
Install using CDN
You can also install this package by using CDN by adding tag for the module you want to include to your <head>
element:
<link rel="stylesheet" href="https://unpkg.com/@matej.cupka/[email protected]/css/__MODULE__.min.css">
Browsing modules
You can browser module files at:
https://unpkg.com/browse/@matej.cupka/[email protected]/css/
List of modules
background
Include classes for background
properties.
ba-X
- Applybackground-attachment
ofX
bp-X-Y
- Applybackground-position
ofX Y
br-X
- Applybackground-repeat
ofX
bs-X
- Applybackground-size
ofX
border-radius
Include classes for border-radius
properties (range: 0 to 64).
br-X
- Applyborder-radius
ofX
pxbr-tl-X
- Applyborder-radius-top-left
ofX
pxbr-tr-X
- Applyborder-radius-top-right
ofX
pxbr-bl-X
- Applyborder-radius-bottom-left
ofX
pxbr-br-X
- Applyborder-radius-right
ofX
px
cursor
Include classes for cursor
property.
cursor-X
- ApplyX
cursor
dimension
Include classes for element dimensions (range: 0 to 100).
Width classes:
w-X-px
- Applywidth
ofX
pxw-X-rem
- Applywidth
ofX
remw-X-vw
- Applywidth
ofX
vww-X-per
- Applywidth
ofX
%w-min-X-px
- Applymin-width
ofX
pxw-min-X-rem
- Applymin-width
ofX
remw-min-X-vw
- Applymin-width
ofX
vww-min-X-per
- Applymin-width
ofX
%w-max-X-px
- Applymax-width
ofX
pxw-max-X-rem
- Applymax-width
ofX
remw-max-X-vw
- Applymax-width
ofX
vww-max-X-per
- Applymax-width
ofX
%
Height classes:
h-X-px
- Applyheight
ofX
pxh-X-rem
- Applyheight
ofX
remh-X-vh
- Applyheight
ofX
vhh-X-per
- Applyheight
ofX
%h-min-X-px
- Applymin-height
ofX
pxh-min-X-rem
- Applymin-height
ofX
remh-min-X-vh
- Applymin-height
ofX
vhh-min-X-per
- Applymin-height
ofX
%h-max-X-px
- Applymax-height
ofX
pxh-max-X-rem
- Applymax-height
ofX
remh-max-X-vh
- Applymax-height
ofX
vhh-max-X-per
- Applymax-height
ofX
%
flex
Include classes for some flex
classes.
flex-grow-X
- Applyflex-grow
ofX
(range: 0 to 3)flex-shrink-X
- Applyflex-shrink
ofX
(range: 0 to 3)flex-basis-X
- Applyflex-basis
ofX
(values:0
,auto
)flex-align-items-X
- Applyalign-items
ofX
flex-justify-content-X
- Applyjustify-content
ofX
font
Include classes for font styling.
truncate-text
- Apply properties required for truncating texttt-X
- Applytext-transform
ofX
fw-X
- Applyfont-weight
ofX
(values:300
,400
,500
,600
,700
)fs-X
- Applyfont-size
ofX
(range: 6 to 64)ta-X
- Applytext-align
ofX
lh-X
- Applyline-height
ofX
(range: 6 to 64)ws-X
- Applywhite-space
ofX
wb-X
- Applyword-break
ofX
margin-padding
Include classes for element margin
(range: -64 to 64) & padding
(range: 0 to 64).
Margin classes:
m-X
- Applymargin
ofX
pxml-X
- Applymargin-left
ofX
pxmr-X
- Applymargin-right
ofX
pxmt-X
- Applymargin-top
ofX
pxmb-X
- Applymargin-bottom
ofX
pxmh-X
- Applymargin-top
&margin-bottom
ofX
pxmv-X
- Applymargin-left
&margin-right
ofX
px
Padding classes:
p-X
- Applypadding
ofX
pxpl-X
- Applypadding-left
ofX
pxpr-X
- Applypadding-right
ofX
pxpt-X
- Applypadding-top
ofX
pxpb-X
- Applypadding-bottom
ofX
pxph-X
- Applypadding-top
&padding-bottom
ofX
pxpv-X
- Applypadding-left
&padding-right
ofX
px
miscellaneous
Includes some miscellaneous classes.
hide
- Apply various properties for hiding elementabsolute
- Applyposition
ofabsolute
relative
- Applyposition
ofrelative
fixed
- Applyposition
offixed
d-X
- Applydisplay
ofX
content-box
- Applybox-sizing
ofcontent-box
border-box
- Applybox-sizing
ofborder-box
ol-reset
,ul-reset
- Apply reset of margin & padding tool
andul
elements respectively
overflow
Include classes for overflow
properties.
o-Z
- Applyoverflow
ofZ
o-x-Z
- Applyoverflow-x
ofZ
o-y-Z
- Applyoverflow-y
ofZ
transform
Include classes for transform
property.
rotate-X
- Applytransform
ofrotate(Xdeg)
(range: 0, 10, 20... 350)scale-Z
- Applytransform
ofscale(Z)
(range: 0 to 2.5 in increments of 0.05)scale-x-Z
- Applytransform
ofscaleX(Z)
(range: 0 to 2.5 in increments of 0.05)scale-y-Z
- Applytransform
ofscaleY(Z)
(range: 0 to 2.5 in increments of 0.05)