diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5dc5be3..0491bdc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,7 +28,6 @@ If your proposed license meets the above criteria, here's a few other things to * Each license has both [required and optional metadata](https://github.com/github/choosealicense.com#license-metadata) that should be included. * The text of the license should be wrapped to a 78 character width. * The body of the file should be the text of the license in plain text. -* Almost without exception, new licenses should be added as hidden (`hidden: true` in the YAML front matter), such that they are directly linkable and detectable, but not otherwise listed. ## Making Changes diff --git a/_config.yml b/_config.yml index a6d14c1..19edbe1 100644 --- a/_config.yml +++ b/_config.yml @@ -17,9 +17,6 @@ defaults: type: "licenses" values: layout: license - featured: false - hidden: true - variant: false exclude: - app.coffee diff --git a/_includes/css/responsive.css b/_includes/css/responsive.css index 0d0120f..b104d27 100644 --- a/_includes/css/responsive.css +++ b/_includes/css/responsive.css @@ -86,10 +86,10 @@ .home h2 span:last-child { right: 35px; } - .license-family { + .license-overview { margin-bottom: 20px; } - .license-family-heading { + .license-overview-heading { float: none; width: 100%; } @@ -98,13 +98,6 @@ width: 100%; padding-left: 0; } - .license-variations { - height: auto; - padding-top: 0; - } - .license-variations ul { - height: 31px; - } .site-footer { text-align: center; } diff --git a/_includes/license-overview.html b/_includes/license-overview.html index 56ca70b..320c414 100644 --- a/_includes/license-overview.html +++ b/_includes/license-overview.html @@ -1,9 +1,9 @@ {% assign id = "/licenses/" | append: include.license-id %} {% assign licenses = site.licenses | where:"id", id %} {% for license in licenses %} -
-
-

+
+
+

{% if license.nickname %} {{ license.nickname }} @@ -13,7 +13,7 @@

-

{{ license.description }}

+

{{ license.description }}

diff --git a/assets/css/application.scss b/assets/css/application.scss index 416c610..c65a15d 100644 --- a/assets/css/application.scss +++ b/assets/css/application.scss @@ -144,12 +144,12 @@ strong { .circular { background-position: 0 -129px; width: 72px; height: 69px; } -.license-family { +.license-overview { clear: both; margin-bottom: 50px; } -.license-family-heading { +.license-overview-heading { float: left; width: 35%; } @@ -163,21 +163,12 @@ strong { padding-left: 20px; } -.license-variations { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 31px; - padding-top: 23px; - margin-left: -10px; -} - -.license-family-name { +.license-overview-name { font-size: 28px; margin-top: 5px; } -.license-family-description { +.license-overview-description { color: #555; } @@ -364,30 +355,6 @@ strong { margin-left: 2em; } -.nav-pills > li { - float: left; - display: block; - margin-right: 10px; -} - -.nav-pills > li > a { - padding: 5px 10px; - border-radius: 3px; -} - -.nav-pills > li.active > a { - background-color: #149ad4; - color: #f7f4ef; -} - -.variation-tab { - display: none; -} - -.variation-tab.active { - display: block; -} - .small { font-size: 90%; } @@ -419,7 +386,7 @@ strong { color: #298625; } -.qtip-permitted .qtip-titlebar { +.qtip-permissions .qtip-titlebar { background-color: #3dc637; color: #fff; } diff --git a/assets/js/app.coffee b/assets/js/app.coffee index 55d4ab0..1f578cb 100644 --- a/assets/js/app.coffee +++ b/assets/js/app.coffee @@ -23,15 +23,14 @@ class Choosealicense # Annotation rule types as defined in `_config.yml` ruletypes: - required: "Required" - permitted: "Permitted" - forbidden: "Forbidden" + permissions: "Permission" + conditions: "Condition" + limitations: "Limitation" # fire on document.ready constructor: -> @initTooltips() @initClipboard() - @initLicenseVariationNav() # Init tooltip action initTooltips: -> @@ -72,18 +71,5 @@ class Choosealicense clipboardComplete: (client, args) -> @textContent = "Copied!" - # Initializes pill navigation for license variations - initLicenseVariationNav: -> - $(".js-nav-pills a").click (e) -> - selectedTab = $(this).data("selected-tab") - nav = $(this).closest(".js-nav-pills") - nav.find("li").removeClass("active") - nav.closest(".js-license-variations").siblings(".js-variation-tab").removeClass("active") - - $(this).parent("li").addClass("active") - $("." + selectedTab).addClass("active") - - e.preventDefault() - $ -> new Choosealicense()