🔧 Hotfix
Change border helper (.bd
) order in the file to be ovewrited by border width (.bdw-
).
📦 Now you can import funkcss as a npm module with postcss-import and similar tools.
🔧 New npm command for development:
$ npm run setup
$ npm run watch
$ npm run compile
$ npm run test
Seeing from the beggining, funkcss now is a more abstract library than it was in the past. With this release we're removing the last helper (.fw-
) with a "custom style" (custom style is the style which changes between different projects and devs. Color and typography are a good example).
Why are we removing font weight helper?
- Each project has its own font family with different font weight.
- Some people prefer
font-weight
with literal values (.fw-bold
) instead of numbers (.fw-700
).
.bgpX-*
,.bgpY-*
⇢ Background position y and x.d-n
⇢display: none
.fw-n
⇢font-weight: none
.fxw-wr
⇢flex-wrap: wrap-reverse
.fxw-nw
⇢flex-wrap: nowrap
.fxd-cr
⇢flex-direction: column-reverse
.fxd-r
⇢flex-direction: row
.fxd-rr
⇢flex-direction: row-reverse
- Reorder border helpers
- Move
vertical-align
helpers to layout file .bd-n
⇢.bds-n
.clearfix
.fw-n
.fw-300
.fw-600
.fw-700
.fw-500
.maw-100
⇢max-width: 100%
.tov-e
⇢text-overflow: ellipsis
.circle
⇢.bdrs-50
.fx-grow
⇢.fxg-1
.fx-shrink
⇢.fxs-1
.fx-none
⇢.fx-n
.flx-auto
⇢.fxb-a
Flex auto now is justflex-basis: auto
- Responsive state helpers
.reset
.truncate
.reset-font
.reset-font-size
- Adds default gaps to layout helpers (top, left, bottom, right)
Now you can use
.m-1
which extend tomargin-top: .5rem;
- Update stylelint rules
- Removes rem fallback from cssnext
- Removes autoprefixer from cssnane (duplicated, we already have from cssnext)
- Travis CI
- funkcss-immutable
- Border width prefix -
.bd
⇢.bdw
- Flex width prefix -
.flx
⇢.fx
- Order width prefix -
.order
⇢.ord
- Responsive state helpers more a11y, see
- Align helpers. Use flexbox instead
- Remove
.list-inline
. You can use d-ib in each list item if you want the same effect
- Border radius prefix -
.radius
⇢.bdrs
- Moving from cssnext to postcss-cssnext
Now funk groups related helpers:
backgrounds.css
,resize.css
⇢objects.css
position.css
⇢layout.css
type.css
,white-space.css
,word-break.css
,word-wrap.css
⇢typography.css
type-scale.css
letter-spacing
from.tt-u
Follow Emmet shotcurts.
Border
- Border prefix -
.brd
⇢.bd
Flex
.fw-w
⇢.fxw-w
.fd-c
⇢.fxd-c
Layout
.d-t
⇢.d-tb
.d-tc
⇢.d-tbc
- Overflow prefix -
.ovf
⇢.ov
Lists
.ls-n
⇢.lis-n
- List style position prefix -
.lsp
⇢.lisp
- List style type prefix -
.ls
⇢.list
Resize
.rz-v
⇢.rsz-v
.rz-h
⇢.rsz-h
White space
- White space prefix -
.ws
⇢.whs
Word break
- Word break prefix -
.wb
⇢.wob
Word wrap
- Word wrap prefix -
.ww
⇢.wow