Missing Bulma spacing library without JavaScript dependency for pixel perfect designs. You can use library with or without Bulma
Note: Bulma released missing spacing helpers with version 0.9.0. (June 2020) If your project is using Bulma and if you think generic classes should be enough, it is suggested to use official spacing classes. However you may still consider to use this library with pixel perfect needed designs, with your pre 0.9.0 Bulma projects or with non-Bulma projects as well. (since this is a zero dependency package).
# Yarn
yarn add bulma-spacing
# NPM
npm i bulma-spacing
import 'bulma-spacing'
<link rel="stylesheet" href="https://unpkg.com/bulma-spacing">
properties: margin padding
directions: top, right, bottom, left
values(px): -100, -99, -98 ... -1 0 1 2 3 ... 98 99 100 (-100 to 100)
.has-{property}-{direction}-{value}
.has-margin-top-24 // margin-top: 24px !important
.has-padding-right-6 // padding-right: 6px !important
.has-margin-left-0 // margin-left: 0px !important
.has-{property}-{direction}-minus-{value}
Note: Negative padding is not supported by CSS
.has-margin-top-minus-100 // margin-top: -100px !important
.has-margin-bottom-minus-17 // margin-bottom: -17px !important
.has-margin-right-minus-33 // margin-right: -33px !important
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Kaan Gökdemir - Maintainer (@kaangokdemir) - kaangokdemir.com
See the CHANGELOG.md file
MIT