mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
rm support for variant display, forgotten in #386
This commit is contained in:
parent
32219ad267
commit
5052d34b11
@ -17,9 +17,6 @@ defaults:
|
||||
type: "licenses"
|
||||
values:
|
||||
layout: license
|
||||
featured: false
|
||||
hidden: true
|
||||
variant: false
|
||||
|
||||
exclude:
|
||||
- app.coffee
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -163,15 +163,6 @@ 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 {
|
||||
font-size: 28px;
|
||||
margin-top: 5px;
|
||||
@ -380,14 +371,6 @@ strong {
|
||||
color: #f7f4ef;
|
||||
}
|
||||
|
||||
.variation-tab {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.variation-tab.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.small {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
@ -31,7 +31,6 @@ class Choosealicense
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user