0.1.0 • Published 7 years ago

postcss-different-focus v0.1.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
7 years ago

PostCSS Different Focus

Build Status codecov Dependency Status Inline docs npm version

A PostCSS plugin to create a syntax for different types of input focus.

Usage

A simple plugin that allows the developer to define keyboard and mouse focii in postcss and it is converted to classes to differentiate in the output.

Example:

.dood:keyboardfocus {
  content: 'nope';
}
.dood:mousefocus {
  content: 'yerp';
}

Output:

.dood.is-keyboardfocused, .dood:focus {
  content: 'nope';
}
.dood.is-mousefocused, .dood:focus {
  content: 'yerp';
}