1
0
mirror of https://github.com/github/choosealicense.com synced 2024-11-05 11:18:50 +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" type: "licenses"
values: values:
layout: license layout: license
featured: false
hidden: true
variant: false
exclude: exclude:
- app.coffee - app.coffee

View File

@ -98,13 +98,6 @@
width: 100%; width: 100%;
padding-left: 0; padding-left: 0;
} }
.license-variations {
height: auto;
padding-top: 0;
}
.license-variations ul {
height: 31px;
}
.site-footer { .site-footer {
text-align: center; text-align: center;
} }

View File

@ -163,15 +163,6 @@ strong {
padding-left: 20px; 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-family-name {
font-size: 28px; font-size: 28px;
margin-top: 5px; margin-top: 5px;
@ -380,14 +371,6 @@ strong {
color: #f7f4ef; color: #f7f4ef;
} }
.variation-tab {
display: none;
}
.variation-tab.active {
display: block;
}
.small { .small {
font-size: 90%; font-size: 90%;
} }

View File

@ -31,7 +31,6 @@ class Choosealicense
constructor: -> constructor: ->
@initTooltips() @initTooltips()
@initClipboard() @initClipboard()
@initLicenseVariationNav()
# Init tooltip action # Init tooltip action
initTooltips: -> initTooltips: ->
@ -72,18 +71,5 @@ class Choosealicense
clipboardComplete: (client, args) -> clipboardComplete: (client, args) ->
@textContent = "Copied!" @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() new Choosealicense()