1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-21 20:30:10 +01:00

rm support for variant display, forgotten in #386

This commit is contained in:
Mike Linksvayer 2016-04-16 10:07:30 -07:00
parent 32219ad267
commit 5052d34b11
4 changed files with 0 additions and 41 deletions

View File

@ -17,9 +17,6 @@ defaults:
type: "licenses"
values:
layout: license
featured: false
hidden: true
variant: false
exclude:
- app.coffee

View File

@ -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;
}

View File

@ -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%;
}

View File

@ -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()