cmyd-styles
v0.0.8
Published
This is a package containing style files for margin and padding in all direction, taking out the troublesome time to write it yourself.
Readme
CmydStyles
This library was generated with Angular CLI version 12.2.0.
Overview
CmydStyles Docs
Scss
- @import 'cmyd-styles/styles-scss/margin.scss' //imports margin files to the system;
- @import 'cmyd-styles/styles-scss/padding.scss' //imports padding files to the system;
- @import 'cmyd-styles/styles-scss/width.scss' //imports width files to the system;
css
- @import 'cmyd-styles/styles-css/margin.css' //imports margin files to the system;
- @import 'cmyd-styles/styles-css/padding.css' //imports padding files to the system;
- @import 'cmyd-styles/styles-css/width.css' //imports width files to the system;
CmydStyles This pacakge provides classes for
margin = m-1margin-left = ml-1margin-right = mr-1margin=bottom = mb-1margin-top = mt-1margin(%) = mp-1margin(%)-left = mlp-1margin(%)-right = mrp-1margin(%)=bottom = mbp-1margin(%)-top = mtp-1padding = p-1padding-left = pl-1padding-right = pr-1padding-bottom = pb-1padding-top = pt-1width in pixel= w-1width in percentage = wp-1
Range of pixels are as 1 - 100, You can use ml-50 which will translate to margin-left: 50px; Incase of width the range of pixel it 0-999px and 0-100%
Exampels
<!-- margin: 45%; -->
<button class="mp-45">Button</button>
<!-- margin-left: 35%; -->
<button class="mlp-35">Button</button>
<!-- margin-left: 20px; -->
<button class="ml-20">Button</button>
<!-- margin-right: 35px; -->
<button class="mr-35">Button</button>
<!-- margin: 20px; -->
<button class="m-20">Button</button>
<!-- padding: 20px; -->
<button class="p-20">Button</button>
<!-- padidng-bottom: 20px; -->
<button class="pb-10">Button</button>
<!-- width: 20px; -->
<button class="w-10">Button</button>
<!-- width: 50%; -->
<button class="wp-50">Button</button>
Version
0.0.8Fixedpadding-rightnot working0.0.7Fixed margin with pixels not working0.0.6Added margins in percentage. better project sturcture0.0.5Fixedmargin-rightvalues not working0.0.4Breaking Changescmyd-mb.scss or cmyd-mb.css does not exist, instead a spearte file for margin.scss, padding.scss and width.scss is now available0.0.3Readme file formatting0.0.2Readme file added0.0.1Initial commit
That's it,
Further help
If you found a bug or know a better way of doing it please do reach me out at [email protected].
