Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
Merge pull request #25 from himedlooff/core
Browse files Browse the repository at this point in the history
Converts to using cf-core and BEM
  • Loading branch information
Scotchester committed Aug 7, 2014
2 parents 63fc26f + feb106d commit 8dc9be3
Show file tree
Hide file tree
Showing 26 changed files with 9,686 additions and 3,756 deletions.
35 changes: 34 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
Review the Capital Framework contributing guide at
# Guidance on how to contribute

> All contributions to this project will be released under the CC0 public domain
> dedication. By submitting a pull request or filing a bug, issue, or
> feature request, you are agreeing to comply with this waiver of copyright interest.
> Details can be found in our [TERMS](TERMS.md) and [LICENCE](LICENSE).

There are two primary ways to help:
- Using the issue tracker, and
- Changing the code-base.


## Using the issue tracker

Use the issue tracker to suggest feature requests, report bugs, and ask questions.
This is also a great way to connect with the developers of the project as well
as others who are interested in this solution.

Use the issue tracker to find ways to contribute. Find a bug or a feature, mention in
the issue that you will take on that effort, then follow the _Changing the code-base_
guidance below.


## Changing the code-base

Generally speaking, you should fork this repository, make changes in your
own fork, and then submit a pull-request. All new code should have associated unit
tests that validate implemented features and the presence or lack of defects.
Additionally, the code should follow any stylistic and architectural guidelines
prescribed by the project. In the absence of such guidelines, mimic the styles
and patterns in the existing code-base.

For Capital Framework-specific contributing guidelines please visit
<https://cfpb.github.io/capital-framework/contributing/>.
121 changes: 0 additions & 121 deletions COPYING.txt

This file was deleted.

116 changes: 116 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
CC0 1.0 Universal

Statement of Purpose

The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator and
subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").

Certain owners wish to permanently relinquish those rights to a Work for the
purpose of contributing to a commons of creative, cultural and scientific
works ("Commons") that the public can reliably and without fear of later
claims of infringement build upon, modify, incorporate in other works, reuse
and redistribute as freely as possible in any form whatsoever and for any
purposes, including without limitation commercial purposes. These owners may
contribute to the Commons to promote the ideal of a free culture and the
further production of creative, cultural and scientific works, or to gain
reputation or greater distribution for their Work in part through the use and
efforts of others.

For these and/or other purposes and motivations, and without any expectation
of additional consideration or compensation, the person associating CC0 with a
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
and publicly distribute the Work under its terms, with knowledge of his or her
Copyright and Related Rights in the Work and the meaning and intended legal
effect of CC0 on those rights.

1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not limited
to, the following:

i. the right to reproduce, adapt, distribute, perform, display, communicate,
and translate a Work;

ii. moral rights retained by the original author(s) and/or performer(s);

iii. publicity and privacy rights pertaining to a person's image or likeness
depicted in a Work;

iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;

v. rights protecting the extraction, dissemination, use and reuse of data in
a Work;

vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation thereof,
including any amended or successor version of such directive); and

vii. other similar, equivalent or corresponding rights throughout the world
based on applicable law or treaty, and any national implementations thereof.

2. Waiver. To the greatest extent permitted by, but not in contravention of,
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
and Related Rights and associated claims and causes of action, whether now
known or unknown (including existing as well as future claims and causes of
action), in the Work (i) in all territories worldwide, (ii) for the maximum
duration provided by applicable law or treaty (including future time
extensions), (iii) in any current or future medium and for any number of
copies, and (iv) for any purpose whatsoever, including without limitation
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
the Waiver for the benefit of each member of the public at large and to the
detriment of Affirmer's heirs and successors, fully intending that such Waiver
shall not be subject to revocation, rescission, cancellation, termination, or
any other legal or equitable action to disrupt the quiet enjoyment of the Work
by the public as contemplated by Affirmer's express Statement of Purpose.

3. Public License Fallback. Should any part of the Waiver for any reason be
judged legally invalid or ineffective under applicable law, then the Waiver
shall be preserved to the maximum extent permitted taking into account
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
is so judged Affirmer hereby grants to each affected person a royalty-free,
non transferable, non sublicensable, non exclusive, irrevocable and
unconditional license to exercise Affirmer's Copyright and Related Rights in
the Work (i) in all territories worldwide, (ii) for the maximum duration
provided by applicable law or treaty (including future time extensions), (iii)
in any current or future medium and for any number of copies, and (iv) for any
purpose whatsoever, including without limitation commercial, advertising or
promotional purposes (the "License"). The License shall be deemed effective as
of the date CC0 was applied by Affirmer to the Work. Should any part of the
License for any reason be judged legally invalid or ineffective under
applicable law, such partial invalidity or ineffectiveness shall not
invalidate the remainder of the License, and in such case Affirmer hereby
affirms that he or she will not (i) exercise any of his or her remaining
Copyright and Related Rights in the Work or (ii) assert any associated claims
and causes of action with respect to the Work, in either case contrary to
Affirmer's express Statement of Purpose.

4. Limitations and Disclaimers.

a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.

b. Affirmer offers the Work as-is and makes no representations or warranties
of any kind concerning the Work, express, implied, statutory or otherwise,
including without limitation warranties of title, merchantability, fitness
for a particular purpose, non infringement, or the absence of latent or
other defects, accuracy, or the present or absence of errors, whether or not
discoverable, all to the greatest extent permissible under applicable law.

c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without limitation
any person's Copyright and Related Rights in the Work. Further, Affirmer
disclaims responsibility for obtaining any necessary consents, permissions
or other rights required for any use of the Work.

d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to this
CC0 or use of the Work.

For more information, please see
<http://creativecommons.org/publicdomain/zero/1.0/>
40 changes: 31 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,53 @@

# cf-buttons

[![Bower dependency status](https://www.versioneye.com/user/projects/5345b61fe97a46bd58000150/badge.png)](https://www.versioneye.com/user/projects/5345b61fe97a46bd58000150)
[![npm dependency status](https://gemnasium.com/cfpb/cf-typography.svg)](https://gemnasium.com/cfpb/cf-typography)
[![npm dependency status](https://gemnasium.com/cfpb/cf-buttons.svg)](https://gemnasium.com/cfpb/cf-buttons)

Button styles including default, secondary, destructive, disabled, super, and
compound buttons, button links, buttons with icons, and button groups.
This component can be used by itself, but it was made for Capital Framework,
a new front end framework developed at the
[Consumer Financial Protection Bureau](https://cfpb.github.io/).

- [View the docs](https://cfpb.github.io/cf-buttons/docs/)
- [See the raw demo](https://cfpb.github.io/cf-buttons/demo/)

The current version number can be found in [bower.json](bower.json#L3)
and follows [Semantic Versioning 2.0](http://semver.org/).
Release notes are recorded on the
[Releases page](https://github.com/cfpb/cf-buttons/releases/).

If you would like to take advantage of more components or if you're new to
Capital Framework, we encourage you to [start here](https://cfpb.github.io/capital-framework/).

- [View the docs](https://cfpb.github.io/cf-buttons/docs/)
- [See the raw demo](https://cfpb.github.io/cf-buttons/demo/)
![](screenshot.png)

(Docs and demo built with the excellent [Topdoc](https://github.com/topcoat/topdoc/).)

## How to use this component

## Contributing
Detailed instructions can be found in the Capital Framework
[documentation site](https://cfpb.github.io/capital-framework/components/).


## Getting involved

We welcome your feedback and contributions.

- [Find out about contributing](https://cfpb.github.io/capital-framework/contributing/)
- [File a bug](https://github.com/cfpb/cf-buttons/issues/new?body=%23%23%20URL%0D%0D%0D%23%23%20Actual%20Behavior%0D%0D%0D%23%23%20Expected%20Behavior%0D%0D%0D%23%23%20Steps%20to%20Reproduce%0D%0D%0D%23%23%20Screenshot&labels=bug)
- [Find out about contributing](CONTRIBUTING.md)
- File a bug using this [handy template](https://github.com/cfpb/cf-buttons/issues/new?body=%23%23%20URL%0D%0D%0D%23%23%20Actual%20Behavior%0D%0D%0D%23%23%20Expected%20Behavior%0D%0D%0D%23%23%20Steps%20to%20Reproduce%0D%0D%0D%23%23%20Screenshot&labels=bug)


----

## Open source licensing info
1. [TERMS](TERMS.md)
2. [LICENSE](LICENSE)
3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/)


----

## Getting Started
## Credits and references

[Read the docs](https://cfpb.github.io/capital-framework/components/)
Docs and demo built with the excellent [Topdoc](https://github.com/topcoat/topdoc/).
8 changes: 4 additions & 4 deletions TERMS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
As a work of the United States Government, this package (excluding the
exceptions below) is in the public domain within the United States.
As a work of the United States Government, this package (excluding any
exceptions listed below) is in the public domain within the United States.
Additionally, we waive copyright and related rights in the work worldwide
through the CC0 1.0 Universal public domain dedication.

Software source code previously released under an open source license and then
modified by CFPB staff is considered a "joint work" (see 17 USC § 101); it is
partially copyrighted, partially public domain, and as a whole is protected by
modified by CFPB staff or its contractors is considered a "joint work" (see 17 USC § 101);
it is partially copyrighted, partially public domain, and as a whole is protected by
the copyrights of the non-government authors and must be released according to
the terms of the original open-source license.

Expand Down
9 changes: 3 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cf-buttons",
"version": "0.8.0",
"version": "1.0.0",
"description": "Button styles including default, secondary, destructive, disabled, super, and compound buttons, button links, buttons with icons, and button groups for Capital Framework.",
"keywords": [
"capital-framework",
Expand All @@ -22,11 +22,8 @@
"license": "https://github.com/cfpb/cf-buttons/blob/gh-pages/TERMS.md",
"main": "src/cf-buttons.less",
"dependencies": {
"cf-colors": "git://github.com/cfpb/cf-colors.git",
"cf-icons": "git://github.com/cfpb/cf-icons.git",
"cf-typography": "git://github.com/cfpb/cf-typography.git",
"normalize-css": "~3.0.0",
"normalize-legacy-addon": "git://github.com/cfpb/normalize-legacy-addon.git#0.1.0"
"cf-core": "git://github.com/cfpb/cf-core.git",
"cf-icons": "git://github.com/cfpb/cf-icons.git"
},
"exportsOverride": {
"cf-*": {
Expand Down
Loading

0 comments on commit 8dc9be3

Please sign in to comment.