forked from openkylin/platform_build
fix a few bugs in the studio download button behavior:
- make button text always white (avoid blue on blue during hover) - revise logic to add the platform name to download button to avoid weird duplicity bug on small screens - remove the animation script when clicking download before agree because it reloaded the page (unkown cause) depends on: https://googleplex-android-review.git.corp.google.com/#/c/752757/ Change-Id: I1b2b4ff9c0b0cbbd34f1c77a2b736fe3425a16e4
This commit is contained in:
parent
956e469327
commit
ed7e864a73
|
@ -6362,7 +6362,7 @@ div.jd-descr > .resource-widget[data-section=distribute\/tools] .section-card-me
|
||||||
.dac-button.dac-raised.dac-primary, .landing-secondary, .button {
|
.dac-button.dac-raised.dac-primary, .landing-secondary, .button {
|
||||||
background-color: #039bef; }
|
background-color: #039bef; }
|
||||||
.dac-button.dac-raised.dac-primary:hover, .landing-secondary:hover, .button:hover {
|
.dac-button.dac-raised.dac-primary:hover, .landing-secondary:hover, .button:hover {
|
||||||
background-color: #0288d1; }
|
background-color: #0288d1; color:#fff; }
|
||||||
.dac-button.dac-raised.dac-primary:active, .landing-secondary:active, .button:active {
|
.dac-button.dac-raised.dac-primary:active, .landing-secondary:active, .button:active {
|
||||||
background-color: #0277bd; }
|
background-color: #0277bd; }
|
||||||
|
|
||||||
|
|
|
@ -404,6 +404,7 @@ var:sdk.linux_download
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
if (location.hash == "#Requirements") {
|
if (location.hash == "#Requirements") {
|
||||||
$('.reqs').show();
|
$('.reqs').show();
|
||||||
} else if (location.hash == "#ExistingIDE") {
|
} else if (location.hash == "#ExistingIDE") {
|
||||||
|
@ -434,7 +435,7 @@ var:sdk.linux_download
|
||||||
$('#not-supported').hide();
|
$('#not-supported').hide();
|
||||||
|
|
||||||
/* set up primary Android Studio download button */
|
/* set up primary Android Studio download button */
|
||||||
$('.download-bundle-button').append(" <br/><span class='small'>for " + os + "</span>");
|
$('.download-bundle-button > .small').html(" for " + os);
|
||||||
$('.download-bundle-button').click(function() {return onDownload(this,true,true);}).attr('href', bundlename);
|
$('.download-bundle-button').click(function() {return onDownload(this,true,true);}).attr('href', bundlename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -501,9 +502,6 @@ var:sdk.linux_download
|
||||||
ga('send', 'event', 'SDK', 'IDE and Tools', $("#downloadForRealz").html());
|
ga('send', 'event', 'SDK', 'IDE and Tools', $("#downloadForRealz").html());
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
$("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
|
|
||||||
function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
|
|
||||||
);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue