Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4e16b31
Showing
7 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changes to pokey.css | ||
|
||
## 1.0.0 (April 28, 2018) | ||
|
||
* Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# pokey.css | ||
|
||
<a href="https://github.com/svinkle/pokey.css"><img | ||
src="https://emojipedia-us.s3.amazonaws.com/thumbs/160/emoji-one/5/horse-face_1f434.png" alt="pokey.css" | ||
width="160" height="160" align="right"></a> | ||
|
||
> 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 | ||
<link rel="stylesheet" href="https://unpkg.com/pokey.css/pokey.css"> | ||
``` | ||
|
||
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |