├── .editorconfig
├── .gitignore
├── LICENSE.txt
├── README.md
├── css
└── style.css
├── index.html
├── package.json
└── style.scss
/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 |
3 | root = true
4 |
5 | [*]
6 | charset = utf-8
7 | end_of_line = lf
8 | indent_size = 2
9 | indent_style = space
10 | insert_final_newline = true
11 | trim_trailing_whitespace = true
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .sass-cache
2 | node_modules
3 | .DS_Store
4 | package-lock.json
5 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | This is free and unencumbered software released into the public domain.
2 |
3 | Anyone is free to copy, modify, publish, use, compile, sell, or
4 | distribute this software, either in source code form or as a compiled
5 | binary, for any purpose, commercial or non-commercial, and by any
6 | means.
7 |
8 | In jurisdictions that recognize copyright laws, the author or authors
9 | of this software dedicate any and all copyright interest in the
10 | software to the public domain. We make this dedication for the benefit
11 | of the public at large and to the detriment of our heirs and
12 | successors. We intend this dedication to be an overt act of
13 | relinquishment in perpetuity of all present and future rights to this
14 | software under copyright law.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
24 | For more information, please refer to
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## CSS patterned buttons
2 |
3 | Based on [catalin.red/css3-patterned-buttons](https://catalin.red/css3-patterned-buttons)
4 |
--------------------------------------------------------------------------------
/css/style.css:
--------------------------------------------------------------------------------
1 | .btn{display:inline-block;position:relative;padding:6px 20px;cursor:pointer;font-size:1rem;font-weight:500;text-decoration:none;white-space:nowrap;border:1px solid;background-image:linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0)),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3' viewBox='0 0 8 8'%3E%3Cg fill='%23fff' fill-opacity='.1'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");transition:background-color .2s ease-out;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,0.3),0 2px 2px -1px rgba(0,0,0,0.5),0 1px 0 rgba(255,255,255,0.3) inset}.btn:active{top:1px;box-shadow:0 1px 1px rgba(0,0,0,0.3) inset;background-image:none}.btn[disabled]{cursor:default;position:static;box-shadow:none}.btn-sm{padding:4px 12px;font-size:.85rem}.btn-lg{padding:12px 30px;font-size:1.1rem;text-transform:uppercase}.btn-light{border-color:#d5d5d5;color:#333;background-color:#eee}.btn-light:hover{background-color:#fbfbfb}.btn-light[disabled]{border-color:#fbfbfb;background:#fbfbfb;color:gray}.btn-green{border-color:#4CAF50;color:#fff;background-color:#4CAF50}.btn-green:hover{background-color:#5cb860}.btn-green[disabled]{border-color:#5cb860;background:#5cb860;color:#b5dfb7}.btn-red{border-color:#F44336;color:#fff;background-color:#F44336}.btn-red:hover{background-color:#f55a4e}.btn-red[disabled]{border-color:#f55a4e;background:#f55a4e;color:#fccbc7}.btn-blue{border-color:#2196F3;color:#fff;background-color:#2196F3}.btn-blue:hover{background-color:#39a1f4}.btn-blue[disabled]{border-color:#39a1f4;background:#39a1f4;color:#b2dbfb}.btn-group{display:inline-block;vertical-align:middle;background:rgba(0,0,0,0.05);border-bottom:1px solid rgba(0,0,0,0.08);padding:4px;border-radius:6px}.btn-group .btn{float:left;border-radius:0}.btn-group .btn:active{box-shadow:0 0 1px rgba(0,0,0,0.2) inset,5px 0 5px -3px rgba(0,0,0,0.2) inset,-5px 0 5px -3px rgba(0,0,0,0.2) inset}.btn-group .btn:first-child{border-radius:3px 0 0 3px}.btn-group .btn:first-child:active{box-shadow:0 0 1px rgba(0,0,0,0.2) inset,-5px 0 5px -3px rgba(0,0,0,0.2) inset}.btn-group .btn:last-child{border-radius:0 3px 3px 0}.btn-group .btn:last-child:active{box-shadow:0 0 1px rgba(0,0,0,0.2) inset,5px 0 5px -3px rgba(0,0,0,0.2) inset}body{background:linear-gradient(#546E7A, rgba(255,60,60,0.2) 70%),linear-gradient(-45deg, #e16a67 25%, rgba(255,211,65,0.8) 75%);background-repeat:no-repeat;background-attachment:fixed;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif}
2 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |