Bulma Stylus Plus now has RTL support.
By setting the Stylus variable $rtl
to true
, you can create an RTL version of Bulma, thanks to 4 new Stylus mixins:
ltr
rtl
ltrProp($spacing, $property, $right: true)
ltr-property($property, $spacing, $right: true)
ltr-position($spacing, $right: true)
The Bulma Stylus Plus package now also comes with a bulma-rtl.css
and bulma-rtl.min.css
file to be used straight away.
Bulma Stylus Plus now has spacing helpers.
Bulma Stylus Plus provides margin m*
and padding p*
helpers in all directions:
*t
for top*r
for right*b
for bottom*l
for left*x
horizontally for both left and right*y
vertically for both top and bottom
You need to combine a margin/padding prefix with a direciton suffix. For example:
- for a
margin-top
, usemt-*
- for a
padding-bottom
, usepb-*
- for both
margin-left
andmargin-right
, usemx-*
Each of these property-direction
combinations needs to be appended with one of 6 value suffixes
-
bulmaLighten
color mixin. -
mediaQuery()
mixin with options$deviceName
and$orientation
. -
.is-square
modifier class for buttons. -
#3047 Flexbox helpers
-
#3085 Add
is-clickable
helper -
New variables
$form-colors
,$label-colors
,$notification-colors
,$tag-colors
,$button-colors
,$textarea-colors
,$util-clickable-selector
,$util-flex
,$util-flex-direction
,$util-flex-wrap
,$util-justify-content
,$util-align
,$util-align-content
,$util-align-items
,$util-align-self
,$max-desktop-modifier
,$max-widescreen-modifier
,$ghost-modifier
,$square-modifier
,$selection
,$redefined-default-colors
-
#3088 Adds not allowed cursor to missing inputs
-
#3101 Add
$modal-breakpoint
variable for modal breakpoint -
#3107 Add
optgroup
togeneric.styl
-
#2925 Center table cell content vertically with
is-vcentered
-
#2540 Fixes #2539 -> Fix indeterminate progress styling in IE11.
from
anduntil
block mixins now accept$orientation
and$par
variables. For orientation of the device, and pixel ratios accordingly.- #2955 Fix issue when there's only one
is-toggle
tag. - #3057 Make the default text color of
$code
listings more accessible. (The result is not equivalent to Bluma.io with Stylus!)
- Variables:
$input-textarea-colors
,$buttons-colors
,$tags-colors
,$list-selector
. - The
base/helpers.sass
file. It has moved into its own/helpers
folder. If you were importingbase/helpers.sass
orbase/_all.sass
, please importsass/helpers/_all.sass
now. If you were simply importing the whole of Bulma Stylus Plus with@import "~/bulma/bulma.sass"
or similar, you won't have to change anything, and everything will work as before. Allsilent
options forhelpers
are in separate group for now. If you're using some customized "silent" rendering, please, check it. - The
list
component is also deprecated: thecomponents/list.sass
file has been deleted. It was never officialy supported as it was too similar topanel
component. Use that one instead.
- Typos in
.vbutton.is-text
for--active-color
This is a minor release. See 0.8.3-beta release notes for additional information.
- Fix #2885 -> Revert
$input-color: $text-strong
fontFace()
mixin to generate@font-face
rule for font by theirname
,path
,weight
andstyle
,format
,version
.$prefix
string variable. Used always for CSS variables, optional for selectors with boolean variable$prefixed-selectors
.banner
component with predefined banner sizes.- 11 new image ratios could be activated with
$silent:= { plus: { ratios: false }}
. Slows down the generation process. - Units conversion with function
convertUnit()
. Supports next units:- Scale:
em
,rem
,px
,in
,cm
,mm
,pt
,pc
,q
- Angle:
deg
,grad
,rad
,turn
- Time:
s
,ms
- Audio:
hz
,khz
- Resolution:
dpi
,dpcm
,dppx
$body-size
and$body-font-size
are key variables for conversion between relative units, such asem
/rem
. The function detects the ability to convert one unit to another, and break execution with an error if there will be nonconvertible units.
- Scale:
bulmaRgba()
function.- #2740 Fixes #2739 -> Add variables size for layout hero
- Fix #2741 -> Create
bulmaRgba()
function to supportinherit
value. - #2709 Add light colors to the
notification
element - CSS variables.
updateGlobalOptions()
function checks for changes of$silent
and$prefix
variables then rewrite cache and use it for all further calls. Use it each time when you make changes in global options in the middle of your code. All built-in mixins and functions use it whenever called and it makes sense in their processing.
- Components, helpers, and elements now abstracted and could be called mixins with(out) block. You could even disable auto-generated rules for them with
$silent
hash array, but keep them available for reuse. You don't need to comment separate styl files manually anymore, to add/remove features, but you still can. - Components/elements/form/layout/helpers now has nested structure with Root Reference. (Some exceptions are there for selectors which used in multiple components). Therefore, the main selector name affects children, and you always know the structure of further HTML code. If you want to break the parenting, use any of available Stylus references.
- Each default selector name for the component, element or helper can be redefined manually with variable, see initial-variables.styl:89 for examples. BEWARE! Some *components* and *elements* contain not CSS pseudo-class. Therefore, it will give an inadequate result, if you will use a dot-free class name for *modifiers*. I will try to find how to resolve it in a more-less elegant way. Just keep it in mind about all $XXX-modifier variables.
$silent-mode
boolean variable. Iftrue
, any rules will not be generated in the resulted CSS file by default, regardless of their values in$slient
array.- Bulma Stylus Plus is an NPM module for now and could be called within Gulp, Grunt, or via CLI. See README for more info about usage.
- Auto-generated rules for all default and custom colors now can be turned off/on for partial components/elements with
$silent.colorful.[NAME-OF-COMPONENT-ELEMENT]
. - Portrait image ratios are now optional and auto-generated. You could disable it with
$silent:= { plus: { ratios-portrait: true }}
. - Generated size rules for all component and elements (exclude
banner
, because this component is senseless without sizes) are now optional like colors with$silent.sizes.[NAME-OF-COMPONENT]
. - Generated color rules now can be redefined with variables for all components and elements, not only for
message
andpanel
. - All selector names now supports custom prefix with variable
$prefix-bsp
to prevent conflicts with anything else.$prefix
by default if$prefixed-selectors
else''
. $columns-max
variable transferred toinitial-variables.styl
.$message-colors
and$panel-colors
transferred toderived-variables.styl
.$body-size
and$body-font-size
variables has moved fromgeneric
toinitial-variables
. Because now they are essential variables for some functions.- For uniformity and improved readability, colons between a property and a value are now required. The Stylus allows you to not use them, however, in the case, when the property name is generated from one or more variables, colons are necessary. Such a mismatch can be confusing for users.
- Tiles now respects
$column-max
variable. column-ratios
variable name starts with$
character. Please, rename, if you're using it separately. My mistake, perhaps, but initially I planned it like a utilitarian feature only, not reusable.@charset
parameter is now optional and regards$charset
variable. Silent if""
.mixins.styl
generates nothing by itself when imported.- autoprefixer dependency replaced with autoprefixer-stylus
$unselectable
,$arrow
,$block
,$delete
,$loader
,$overlay
moved to newplaceholders.styl
.
$colorContrastFormula
is now alias. Use$color-luminance-formula
instead.bulma-stylus-darken
is now an alias ofbulmaDarken
.
- stylelint is optional dependency for now. Because it fixes source mapping and has no critical value. Oskari Groenroos uses it to add empty lines between rules like in original Bulma.io. But source-map is more significant.
$devices
indent variable is the list of all media query mixins likemobile
,tablet-only
,fullhd
, etc. By default:mobile tablet tablet-only touch desktop desktop-only widescreen widescreen-only fullhd
. It can be shortened or expanded at your discretion. But a mixin for each name must exist before the variable is declared. Used for all repeatable media query rules such as columns. Some mixins ignore XXX-only media queries.lengthList()
function, because actual Stylus built-inlength
function works weirdly with lists that contain one item. This's just a fix for partial cases. It could be deprecated with a next Stylus release.
- The maximum number of columns per row now optional and defined with variable
$columns-max
. 12 by default. - Selector names for ratio sized columns now stored within the hash array and support any number of aliases for each of them. For instance:
.is-three-quarters
now is.is-3of4
also. - Repeatable media rules for
helpers
andcolumns
now generated within loop mixins. Use conditional statements, if you need some exceptions.@extend
directive works as usual.
$scheme-invert-bis
returned to original default value$black-bis
.colorLuminance()
syntax error. All generated colors returned to initial values.- Hovered button color lightness set to original 2.5% instead of 3.5% from last commits. It was a mistake.
$button-solid
boolean variable. Default:false
if true, all default buttons will have look like if they have classis-primary
.- Hardcoded lot of Bulma colors, used for auto-generated classes like
is-primary
oris-success
, now in the variable$default-colors
. You can set it tonull
/false
to disable them just to reduce the size of resulted CSS code when not needed, or when you need only your custom colors. $button-solid-background-color
color variable. Default:$primary
.colorContrastFormula
string variable. Default:'bulma'
. If'yiq'
or'YIQ'
, uses YIQ colorspace to get contrast ratio.- This file.
mergeColorMaps()
now works. The literal translation of the SASS code just didn't work with Stylus. Example of usage for setting custom colors:$custom-colors:= { "lime": (lime), "tomato": (tomato white), "orange": ($orange $orange-invert $orange-light), "lavender": ($lavender $lavender-invert $lavender-light $lavender-dark) }
colorLuminance
now accepts second optional value$formula
. Default:$colorContrastFormula
. See above.- Indentation changed to tabs.
bulma.styl
now imports eachstyl
file separately.findColorInvert
now accepts second optional Boolean value$tint
. If true, inverted color is 80% brighter / darker than original instead of white / "black". Good, if you need some artistic effect of the surrounding light or something.