From 4cf17d9edbb043069ed065da0c91f489dcc2fa2e Mon Sep 17 00:00:00 2001 From: Jason Long Date: Tue, 22 Jan 2013 12:15:02 -0500 Subject: [PATCH] added license rules and projects to sidebar --- about/index.html | 2 +- css/application.css | 52 ++++++++++++++++------- javascripts/app.js | 8 ++-- licenses/apache/index.html | 40 +++++++++++++++++- licenses/artistic/index.html | 41 +++++++++++++++++- licenses/bsd-3-clause/index.html | 48 ++++++++++++++++++--- licenses/bsd/index.html | 48 ++++++++++++++++++--- licenses/eclipse/index.html | 49 +++++++++++++++++++--- licenses/gpl-v2/index.html | 49 +++++++++++++++++++--- licenses/gpl-v3/index.html | 49 +++++++++++++++++++--- licenses/index.html | 72 ++++++++++++++++---------------- licenses/lgpl-v2.1/index.html | 47 ++++++++++++++++++--- licenses/lgpl-v3/index.html | 47 ++++++++++++++++++--- licenses/mit/index.html | 44 ++++++++++++++++--- licenses/mozilla/index.html | 50 +++++++++++++++++++--- 15 files changed, 534 insertions(+), 112 deletions(-) diff --git a/about/index.html b/about/index.html index 914ade3..4342593 100644 --- a/about/index.html +++ b/about/index.html @@ -50,7 +50,7 @@ This site is licensed under the Creative Commons Attribution 3.0 Unported License.

- + diff --git a/css/application.css b/css/application.css index fdc150a..ee56179 100644 --- a/css/application.css +++ b/css/application.css @@ -131,6 +131,16 @@ h2 { margin-bottom: 10px; } +h3 { + color: #443a33; + font-family: 'Chivo', 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 15px; + font-weight: 900; + line-height: 1.1; + margin-top: 20px; + margin-bottom: 10px; +} + h5 { color: #443a33; font-family: 'Chivo', 'Helvetica Neue', Helvetica, Arial, serif; @@ -233,36 +243,36 @@ strong { padding-right: 80px; } -.license-grid { +.license-rules { font-size: 13px; line-height: 1.3; margin-bottom: 40px; } -.license-grid th { +.license-rules th { border-bottom: solid 1px #d9d7d2; padding: 5px 10px; } -.license-grid .name { +.license-rules .name { border-right: solid 1px #d9d7d2; width: 150px; } -.license-grid .name a { +.license-rules .name a { font-family: 'Chivo', 'Helvetica Neue', Helvetica, Arial, serif; font-size: 28px; font-weight: 900; } -.license-grid .summary { +.license-rules .summary { color: #7e7974; } -.license-grid td { +.license-rules td { border-bottom: solid 1px #e9e6e2; padding: 4px 10px; } -.license-grid .label { +.license-rules .label { border-right: solid 1px #d9d7d2; font-weight: bold; } -.license-grid li { +.license-rules li { background-position: 0 1px; background-repeat: no-repeat; background-size: 12px 12px; @@ -276,22 +286,28 @@ strong { margin-right: 15px; padding-left: 16px; } -.license-grid li:hover { +.license-rules li:hover { color: #443a33; } -.license-grid .required li { +.license-required li { background-image: url(../images/blue-dot@2x.png); } -.license-grid .permitted li { +.license-permitted li { background-image: url(../images/green-dot@2x.png); } -.license-grid .forbidden li { +.license-forbidden li { background-image: url(../images/red-dot@2x.png); } -.license-grid tr:nth-child(2n) td { +.license-rules tr:nth-child(2n) td { background-color: rgba(0, 0, 0, 0.02); } +.license-rules-sidebar li { + float: none; + display: block; + padding-bottom: 3px; +} + .license-body { font-size: 15px; float: left; @@ -306,6 +322,7 @@ strong { .sidebar { float: right; width: 220px; + font-size: 12px; } .sidebar a.button { @@ -327,9 +344,8 @@ strong { } .sidebar .source { - font-size: 12px; - text-align: center; - margin-top: 10px; + /*text-align: right;*/ + margin-top: 4px; } .sidebar .source a { padding-left: 20px; @@ -342,6 +358,10 @@ strong { font-size: 0.7em; } +.projects-with-license li { + padding-bottom: 3px; +} + .site-footer { border-top: 1px solid #e9e6e1; margin-top: 30px; diff --git a/javascripts/app.js b/javascripts/app.js index 2cb9f08..f6a56fb 100644 --- a/javascripts/app.js +++ b/javascripts/app.js @@ -34,11 +34,11 @@ $(document).ready(function() { for (var category in annotations) { var categoryAnnotations = annotations[category]; for (var annotation in categoryAnnotations) { - $('table.license ul.' + category + ' li.' + annotation).attr('title', categoryAnnotations[annotation]); + $('.license-rules ul.license-' + category + ' li.' + annotation).attr('title', categoryAnnotations[annotation]); } } - $('.license .required li').qtip({ + $('.license-required li').qtip({ content: { text: false, title: { @@ -51,7 +51,7 @@ $(document).ready(function() { } }); - $('.license .permitted li').qtip({ + $('.license-permitted li').qtip({ content: { text: false, title: { @@ -64,7 +64,7 @@ $(document).ready(function() { } }); - $('.license .forbidden li').qtip({ + $('.license-forbidden li').qtip({ content: { text: false, title: { diff --git a/licenses/apache/index.html b/licenses/apache/index.html index 9b990a1..4b0bac5 100644 --- a/licenses/apache/index.html +++ b/licenses/apache/index.html @@ -7,7 +7,10 @@ + + + @@ -233,6 +236,41 @@ third-party archives.
Source
+ +
+

Required

+ + +

Permitted

+ + +

Forbidden

+ +
+ +
+

Who's using this license?

+ +
diff --git a/licenses/artistic/index.html b/licenses/artistic/index.html index 2218618..f289b15 100644 --- a/licenses/artistic/index.html +++ b/licenses/artistic/index.html @@ -7,7 +7,10 @@ + + + @@ -201,6 +204,42 @@ DAMAGE.
Source
+ +
+

Required

+ + +

Permitted

+ + +

Forbidden

+ + +
+ +
+

Who's using this license?

+ +
@@ -214,7 +253,7 @@ DAMAGE. This site is licensed under the Creative Commons Attribution 3.0 Unported License.

- + diff --git a/licenses/bsd-3-clause/index.html b/licenses/bsd-3-clause/index.html index 2a187f5..7080035 100644 --- a/licenses/bsd-3-clause/index.html +++ b/licenses/bsd-3-clause/index.html @@ -6,11 +6,14 @@ - - - - - + + + + + + + + @@ -48,6 +51,39 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
Source
+ +
+

Required

+ + +

Permitted

+ + +

Forbidden

+ +
+ +
+

Who's using this license?

+ +
@@ -61,7 +97,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND This site is licensed under the Creative Commons Attribution 3.0 Unported License.

- + diff --git a/licenses/bsd/index.html b/licenses/bsd/index.html index 3452514..ac9524c 100644 --- a/licenses/bsd/index.html +++ b/licenses/bsd/index.html @@ -6,11 +6,14 @@ - - - - - + + + + + + + + @@ -64,6 +67,39 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Source
+ +
+

Required

+ + +

Permitted

+ + +

Forbidden

+ +
+ +
+

Who's using this license?

+ +
@@ -77,7 +113,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This site is licensed under the Creative Commons Attribution 3.0 Unported License.

- + diff --git a/licenses/eclipse/index.html b/licenses/eclipse/index.html index d728662..318c9d7 100644 --- a/licenses/eclipse/index.html +++ b/licenses/eclipse/index.html @@ -6,11 +6,14 @@ - - - - - + + + + + + + + @@ -237,6 +240,40 @@ any resulting litigation.
Source
+ +
+

Required

+ + +

Permitted

+ + +

Forbidden

+ +
+ +
+

Who's using this license?

+ +
diff --git a/licenses/gpl-v2/index.html b/licenses/gpl-v2/index.html index 03544d5..c88670e 100644 --- a/licenses/gpl-v2/index.html +++ b/licenses/gpl-v2/index.html @@ -6,11 +6,14 @@ - - - - - + + + + + + + + @@ -383,6 +386,40 @@ Public License instead of this License.
Source
+ +
+

Required

+ + +

Permitted

+ + +

Forbidden

+ +
+ +
+

Who's using this license?

+ +
diff --git a/licenses/gpl-v3/index.html b/licenses/gpl-v3/index.html index 41c0241..4961fb4 100644 --- a/licenses/gpl-v3/index.html +++ b/licenses/gpl-v3/index.html @@ -6,11 +6,14 @@ - - - - - + + + + + + + + @@ -718,6 +721,40 @@ Public License instead of this License. But first, please read
Source
+ +
+

Required

+ + +

Permitted

+ + +

Forbidden

+ +
+ +
+

Who's using this license?

+ +
diff --git a/licenses/index.html b/licenses/index.html index a69c3e8..758cd0d 100644 --- a/licenses/index.html +++ b/licenses/index.html @@ -24,7 +24,7 @@

Featured

- +
@@ -44,7 +44,7 @@
MIT @@ -36,7 +36,7 @@
Required -
    +
Permitted -
    +
    • Commercial use
    • Modification
    • Distribution
    • @@ -55,13 +55,13 @@
Forbidden -
    +
    • Liability
- +
Apache @@ -74,7 +74,7 @@
Required -
    +
    • License inclusion
    • State Changes
    • @@ -84,7 +84,7 @@
Permitted -
    +
    • Commercial use
    • Modification
    • Distribution
    • @@ -96,14 +96,14 @@
Forbidden -
    +
    • Liability
    • Use Trademark
- +
GPL v2/v3 @@ -117,7 +117,7 @@
Required -
    +
    • State changes
    • Disclose Source
    • @@ -127,7 +127,7 @@
Permitted -
    +
    • Commercial use
    • Modification
    • Distribution
    • @@ -138,7 +138,7 @@
Forbidden -
    +
    • Liability
    • Sublicensing
    @@ -151,7 +151,7 @@ Some communities tend to have specific licenses preferred by the community. For example, PERL developers often choose the artistic license.

    - +
    Artistic @@ -164,7 +164,7 @@
    Required -
      +
      • State changes
      • Disclose source
      • @@ -174,7 +174,7 @@
    Permitted -
      +
      • Commercial use
      • Modification
      • Distribution
      • @@ -186,7 +186,7 @@
    Forbidden -
      +
      • Liability
      • Use Trademark
      @@ -194,7 +194,7 @@
    - +
    @@ -215,7 +215,7 @@
    BSD @@ -207,7 +207,7 @@
    Required -
      +
    Permitted -
      +
      • Commercial use
      • Modification
      • Distribution
      • @@ -227,14 +227,14 @@
    Forbidden -
      +
      • Liability
      • Use Trademark (3-clause)
    - +
    Eclipse @@ -247,7 +247,7 @@
    Required -
      +
      • Disclose source
      • License inclusion
      @@ -256,7 +256,7 @@
    Permitted -
      +
      • Commercial use
      • Modification
      • Distribution
      • @@ -268,14 +268,14 @@
    Forbidden -
      +
      • Liability
      • Use Trademark
    - +
    Mozilla @@ -288,7 +288,7 @@
    Required -
      +
      • Disclose source
      • License inclusion
      • @@ -298,7 +298,7 @@
    Permitted -
      +
      • Commercial use
      • Modification
      • Distribution
      • @@ -310,14 +310,14 @@
    Forbidden -
      +
      • Liability
      • Use Trademark
    - +
    LGPL v2.1 @@ -331,7 +331,7 @@
    Required -
      +
      • Nonstatic linkage
      @@ -340,7 +340,7 @@
    Permitted -
      +
      • Commercial use
      • Modification
      • Distribution
      • @@ -351,13 +351,13 @@
    Forbidden -
      +
      • Liability
    - +
    diff --git a/licenses/lgpl-v2.1/index.html b/licenses/lgpl-v2.1/index.html index e433303..1e1cb44 100644 --- a/licenses/lgpl-v2.1/index.html +++ b/licenses/lgpl-v2.1/index.html @@ -6,11 +6,14 @@ - - - - - + + + + + + + + @@ -546,6 +549,38 @@ That's all there is to it! + +
    +

    Required

    +
      + +
    • Nonstatic linkage
    • +
    + +

    Permitted

    +
      +
    • Commercial use
    • +
    • Modification
    • +
    • Distribution
    • +
    • Sublicensing
    • +
    + +

    Forbidden

    +
      +
    • Liability
    • +
    +
    + +
    +

    Who's using this license?

    + +
    diff --git a/licenses/lgpl-v3/index.html b/licenses/lgpl-v3/index.html index 8738867..297e3b0 100644 --- a/licenses/lgpl-v3/index.html +++ b/licenses/lgpl-v3/index.html @@ -6,11 +6,14 @@ - - - - - + + + + + + + + @@ -207,6 +210,38 @@ Library. + +
    +

    Required

    +
      + +
    • Nonstatic linkage
    • +
    + +

    Permitted

    +
      +
    • Commercial use
    • +
    • Modification
    • +
    • Distribution
    • +
    • Sublicensing
    • +
    + +

    Forbidden

    +
      +
    • Liability
    • +
    +
    + +
    +

    Who's using this license?

    + +
    diff --git a/licenses/mit/index.html b/licenses/mit/index.html index a7ed0f6..b239bae 100644 --- a/licenses/mit/index.html +++ b/licenses/mit/index.html @@ -7,10 +7,13 @@ - - - - + + + + + + + @@ -57,6 +60,37 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +
    +

    Required

    +
      + +
    + +

    Permitted

    +
      +
    • Commercial use
    • +
    • Modification
    • +
    • Distribution
    • +
    • Sublicensing
    • +
    + +

    Forbidden

    +
      +
    • Liability
    • +
    +
    + +
    +

    Who's using this license?

    + +
    @@ -70,7 +104,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This site is licensed under the Creative Commons Attribution 3.0 Unported License.

    - + diff --git a/licenses/mozilla/index.html b/licenses/mozilla/index.html index f498f8a..0076172 100644 --- a/licenses/mozilla/index.html +++ b/licenses/mozilla/index.html @@ -6,11 +6,14 @@ - - - - - + + + + + + + + @@ -392,6 +395,41 @@ Exhibit B - “Incompatible With Secondary Licenses” Notice + +
    +

    Required

    +
      +
    • Disclose source
    • + +
    • License inclusion
    • +
    + +

    Permitted

    +
      +
    • Commercial use
    • +
    • Modification
    • +
    • Distribution
    • +
    • Sublicensing
    • +
    • Warranty
    • +
    + +

    Forbidden

    +
      +
    • Liability
    • +
    • Use Trademark
    • +
    +
    + +
    +

    Who's using this license?

    + +
    @@ -405,7 +443,7 @@ Exhibit B - “Incompatible With Secondary Licenses” Notice This site is licensed under the Creative Commons Attribution 3.0 Unported License.

    - +
    LGPL v3 @@ -372,7 +372,7 @@
    Required -
      +
      • Nonstatic linkage
      @@ -381,7 +381,7 @@
    Permitted -
      +
      • Commercial use
      • Modification
      • Distribution
      • @@ -392,7 +392,7 @@
    Forbidden -
      +
      • Liability