From 4e16b3112f31a3e2e90bf0957c8f9e0575c9323d Mon Sep 17 00:00:00 2001 From: Scott Vinkle Date: Sat, 28 Apr 2018 23:16:48 -0400 Subject: [PATCH] first commit --- .editorconfig | 13 ++++++++++ .gitignore | 18 ++++++++++++++ CHANGELOG.md | 5 ++++ LICENSE.md | 21 ++++++++++++++++ README.md | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 17 +++++++++++++ pokey.css | 23 +++++++++++++++++ 7 files changed, 166 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 CHANGELOG.md create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 package.json create mode 100644 pokey.css diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6e87a00 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# Editor configuration, see http://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +max_line_length = off +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..12752e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# See https://help.github.com/ignore-files/ for more about ignoring files. + +# dependencies +/node_modules + +# testing +/coverage + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..24c3000 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changes to pokey.css + +## 1.0.0 (April 28, 2018) + +* Initial release. diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..2404a92 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +# MIT License + +Copyright (c) 2018 Scott Vinkle + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..864b408 --- /dev/null +++ b/README.md @@ -0,0 +1,69 @@ +# pokey.css + +pokey.css + +> Make things visually clickable 👆 + +[![npm][npm-image]][npm-url] [![license][license-image]][license-url] +[![changelog][changelog-image]][changelog-url] + +**NPM** + +```sh +npm install --save pokey.css +``` + +**CDN** + +See https://unpkg.com/pokey.css/pokey.css + +**Download** + +See https://svinkle.github.io/pokey.css/latest/pokey.css + +## Usage + +**Sass Import** + +```css +@import '../node_modules/pokey.css/pokey.css'; +``` + +**HTML (via unpkg)** + +```html + +``` + +## What does it do? + +* Adds extra visual affordance to _some_ "clickable" HTML elements via `cursor: pointer` CSS property +* Adds an added bonus: `cursor: not-allowed` CSS property on `disabled` elements + +## Why? + +**Why not?** Why not add that visual affordance for users to get through an app even faster. Provide the "hand" cursor pointer on things that are clickable in order to get the point across, "Yes, you can click this." + +This also come in handy with today’s flat design. People are making transparent buttons with colored borders, essentially link styles with minor affordance of a `border`. Let's help inform our users and give them a sense of confidence. + +> “What is this thing? I don’t have time to figure it out, but I _do_ see the little hand here, gonna click!” :fire: + +Who stands to benefit? Everyone. + +## Browser support + +* Chrome +* Edge +* Firefox +* Internet Explorer 10+ +* Safari 8+ +* Opera + +[changelog-image]: https://img.shields.io/badge/changelog-md-blue.svg?style=flat-square +[changelog-url]: CHANGELOG.md +[license-image]: https://img.shields.io/npm/l/pokey.css.svg?style=flat-square +[license-url]: LICENSE.md +[npm-image]: https://img.shields.io/npm/v/pokey.css.svg?style=flat-square +[npm-url]: https://npmjs.com/package/pokey.css diff --git a/package.json b/package.json new file mode 100644 index 0000000..ce009bd --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "pokey.css", + "version": "1.0.0", + "description": "Help make things visually clickable", + "main": "pokey.css", + "style": "pokey.css", + "files": [ + "LICENSE.md", + "pokey.css" + ], + "devDependencies": {}, + "scripts": {}, + "repository": "svinkle/pokey.css", + "license": "MIT", + "bugs": "https://github.com/svinkle/pokey.css/issues", + "homepage": "https://svinkle.github.io/pokey.css" +} diff --git a/pokey.css b/pokey.css new file mode 100644 index 0000000..5d21d50 --- /dev/null +++ b/pokey.css @@ -0,0 +1,23 @@ +[tabindex="0"], +a[href], +area[href], +button, +input[type="checkbox"], +input[type="color"], +input[type="file"], +input[type="image"], +input[type="radio"], +input[type="range"], +input[type="submit"], +label[for], +select, +summary { + cursor: pointer; +} + +button[disabled], +input[disabled], +select[disabled], +textarea[disabled] { + cursor: not-allowed; +}