diff --git a/appendix.md b/appendix.md index ca10cd8..bcd148b 100644 --- a/appendix.md +++ b/appendix.md @@ -88,7 +88,17 @@ If you're here to choose a license, **[start from the home page](/)** to see a f {% assign rs = site.data.rules[t] | sort: "label" %} {% for r in rs %} {% if r.tag == req %} -
{{ r.description }}
+ {% if r.tag contains "--" %} + {% assign lite = " lite" %} + {% else %} + {% assign lite = "" %} + {% endif %} +
+ + + + {{ r.description }} +
{% endif %} {% endfor %} {% endfor %} diff --git a/assets/css/application.scss b/assets/css/application.scss index c080893..4e36e5e 100644 --- a/assets/css/application.scss +++ b/assets/css/application.scss @@ -464,7 +464,7 @@ strong { /* Hint.css Overide */ -.orverride-hint-inline { +.override-hint-inline { display: block; } diff --git a/assets/js/app.coffee b/assets/js/app.coffee index 9d472a2..732fd27 100644 --- a/assets/js/app.coffee +++ b/assets/js/app.coffee @@ -40,14 +40,15 @@ class Choosealicense # Dynamically add annotations as title attribute to rule list items for ruletype, rules of window.annotations for rule in rules - licenseLiElement = $(".license-#{ruletype} .#{rule["tag"]}") + # Only select license elements in table, not legend + licenseLiElement = $("td.license-#{ruletype} .#{rule["tag"]}") tooltipAttr = @tooltipAttributesMapperByRuleType[ruletype] licenseLiElement.attr "aria-label", "#{tooltipAttr.heading}: #{rule.description}" licenseLiElement.addClass("hint--bottom hint--large hint--no-animate #{tooltipAttr.color} - orverride-hint-inline") + override-hint-inline") # Initializes Clipboard.js initClipboard: ->