Skip to content

Commit

Permalink
radio button label, add cursor not-allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
lingua committed Apr 9, 2014
1 parent d6eead1 commit 33607e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions data/css/contrast-finder-addon.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,18 @@ a {
.error-message {
color: #be7104;
font-size: 18px;
// margin-top: 10px;
// margin-bottom: 10px;
display: none;
}

.valid-message {
color: #3C763D;
font-size: 18px;
//margin-top: 10px;
//margin-bottom: 10px;
display: none;
}

.invalid-message {
color: #d9534f;
font-size: 18px;
//margin-top: 10px;
//margin-bottom: 10px;
display: none;
}

Expand All @@ -109,6 +103,7 @@ a {

.my-fieldset span {
opacity: 0.5;
cursor: not-allowed;
}

.my-fieldset fieldset {
Expand Down
4 changes: 4 additions & 0 deletions data/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ function initializeColorSamplesElements() {
document.getElementById("legend-component").style.opacity = "0.5";
document.getElementById("fieldset-component").disabled = true;
document.getElementById("foreground-component-text").style.opacity = "0.5";
document.getElementById("foreground-component-text").style.cursor = "not-allowed";
document.getElementById("background-component-text").style.opacity = "0.5";
document.getElementById("background-component-text").style.cursor = "not-allowed";
document.getElementById("color-sample-foreground").style.backgroundColor = "#F0F0F0";
document.getElementById("color-sample-foreground").style.backgroundImage = "repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,255,255,0.5) 3px, rgba(255,255,255,.5) 29px)";
document.getElementById("color-sample-background").style.backgroundColor = "#F0F0F0";
Expand Down Expand Up @@ -92,7 +94,9 @@ function onLiveInvalidRatio(tabResult) {
function onClickInvalidRatio(tabResult) {
document.getElementById("legend-component").style.opacity = "1";
document.getElementById("foreground-component-text").style.opacity = "1";
document.getElementById("foreground-component-text").style.cursor = "inherit";
document.getElementById("background-component-text").style.opacity = "1";
document.getElementById("background-component-text").style.cursor = "inherit";
document.getElementById("fieldset-component").disabled = false;
document.getElementById("invalid-ratio").style.display = "block";
submit.className = "btn btn-primary btn-lg";
Expand Down

0 comments on commit 33607e1

Please sign in to comment.