Skip to content

GarthDB/postcss-different-focus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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';
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published