@matej.cupka/css-core v1.6.0
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/css-core@1.6.0/css/__MODULE__.min.css">
Browsing modules
You can browser module files at:
https://unpkg.com/browse/@matej.cupka/css-core@1.6.0/css/
List of modules
background
Include classes for background properties.
ba-X- Applybackground-attachmentofXbp-X-Y- Applybackground-positionofX Ybr-X- Applybackground-repeatofXbs-X- Applybackground-sizeofX
border-radius
Include classes for border-radius properties (range: 0 to 64).
br-X- Applyborder-radiusofXpxbr-tl-X- Applyborder-radius-top-leftofXpxbr-tr-X- Applyborder-radius-top-rightofXpxbr-bl-X- Applyborder-radius-bottom-leftofXpxbr-br-X- Applyborder-radius-rightofXpx
cursor
Include classes for cursor property.
cursor-X- ApplyXcursor
dimension
Include classes for element dimensions (range: 0 to 100).
Width classes:
w-X-px- ApplywidthofXpxw-X-rem- ApplywidthofXremw-X-vw- ApplywidthofXvww-X-per- ApplywidthofX%w-min-X-px- Applymin-widthofXpxw-min-X-rem- Applymin-widthofXremw-min-X-vw- Applymin-widthofXvww-min-X-per- Applymin-widthofX%w-max-X-px- Applymax-widthofXpxw-max-X-rem- Applymax-widthofXremw-max-X-vw- Applymax-widthofXvww-max-X-per- Applymax-widthofX%
Height classes:
h-X-px- ApplyheightofXpxh-X-rem- ApplyheightofXremh-X-vh- ApplyheightofXvhh-X-per- ApplyheightofX%h-min-X-px- Applymin-heightofXpxh-min-X-rem- Applymin-heightofXremh-min-X-vh- Applymin-heightofXvhh-min-X-per- Applymin-heightofX%h-max-X-px- Applymax-heightofXpxh-max-X-rem- Applymax-heightofXremh-max-X-vh- Applymax-heightofXvhh-max-X-per- Applymax-heightofX%
flex
Include classes for some flex classes.
flex-grow-X- Applyflex-growofX(range: 0 to 3)flex-shrink-X- Applyflex-shrinkofX(range: 0 to 3)flex-basis-X- Applyflex-basisofX(values:0,auto)flex-align-items-X- Applyalign-itemsofXflex-justify-content-X- Applyjustify-contentofX
font
Include classes for font styling.
truncate-text- Apply properties required for truncating texttt-X- Applytext-transformofXfw-X- Applyfont-weightofX(values:300,400,500,600,700)fs-X- Applyfont-sizeofX(range: 6 to 64)ta-X- Applytext-alignofXlh-X- Applyline-heightofX(range: 6 to 64)ws-X- Applywhite-spaceofXwb-X- Applyword-breakofX
margin-padding
Include classes for element margin (range: -64 to 64) & padding (range: 0 to 64).
Margin classes:
m-X- ApplymarginofXpxml-X- Applymargin-leftofXpxmr-X- Applymargin-rightofXpxmt-X- Applymargin-topofXpxmb-X- Applymargin-bottomofXpxmh-X- Applymargin-top&margin-bottomofXpxmv-X- Applymargin-left&margin-rightofXpx
Padding classes:
p-X- ApplypaddingofXpxpl-X- Applypadding-leftofXpxpr-X- Applypadding-rightofXpxpt-X- Applypadding-topofXpxpb-X- Applypadding-bottomofXpxph-X- Applypadding-top&padding-bottomofXpxpv-X- Applypadding-left&padding-rightofXpx
miscellaneous
Includes some miscellaneous classes.
hide- Apply various properties for hiding elementabsolute- Applypositionofabsoluterelative- Applypositionofrelativefixed- Applypositionoffixedd-X- ApplydisplayofXcontent-box- Applybox-sizingofcontent-boxborder-box- Applybox-sizingofborder-boxol-reset,ul-reset- Apply reset of margin & padding toolandulelements respectively
overflow
Include classes for overflow properties.
o-Z- ApplyoverflowofZo-x-Z- Applyoverflow-xofZo-y-Z- Applyoverflow-yofZ
transform
Include classes for transform property.
rotate-X- Applytransformofrotate(Xdeg)(range: 0, 10, 20... 350)scale-Z- Applytransformofscale(Z)(range: 0 to 2.5 in increments of 0.05)scale-x-Z- ApplytransformofscaleX(Z)(range: 0 to 2.5 in increments of 0.05)scale-y-Z- ApplytransformofscaleY(Z)(range: 0 to 2.5 in increments of 0.05)