@shirohana/bulma-stylus
v0.7.1
Published
Pure Stylus implementation of Bulma.css with a little changes
Downloads
1
Maintainers
Readme
Bulma Stylus
Pure Stylus implementation of Bulma.css
Notice! This package is used to integrate Bulma with Stylus, it does NOT includes builded css files.
Install
This package version is synchronous with Bulma, every difference between the same version of Bulma will be logged in Changelog.
NPM
npm install @shirohana/bulma-stylus
or
Yarn
yarn add @shirohana/bulma-stylus
Links
Difference between Bulma
- Support 4k container (Disable:
$4k-enabled = false
) - All possible floating numbers are round to 4 digits after the period
New Feature
Dynamic
rem
for better user experience on high-resolution screensIf enabled, the page will be scale in ratio when device width exceeds
$body-auto-scale
(default:$fullhd
).You can try a higher value and find out the best in your situation like
$body-auto-scale = $fullhd + 20*16px
.Set
$body-auto-scale
to any falsy value to disable this feature.
Internal
- Use
em/rem
insteadpx
in every elements, components and helpers - Replace
lighten()
function withsass-lighten()
which implements sass-likelighten
- Replace
darken()
function withsass-darken()
which implements sass-likedarken
- Remove
powerNumber()
function (Use Stylusexponent-operator
instead) - Remove
colorLuminance()
function (Use Stylus built-in functionluminosity()
instead)
Contributing
Bug fix or improvement only, or you can create an Issue for any problem :)
Install dependencies
yarn; cd docs && yarn
Test your code
Ensure there's no error reported
yarn dev
Start documentation server and ensure the page looks in expected
cd docs && docker-compose up
Before committing
yarn clean
Inherited copyright and license
© 2018 Jeremy Thomas. Code released under the MIT license.