Skip to content

Commit

Permalink
Fixed issue #10004: Using hide_tip advanced settings does not hide th…
Browse files Browse the repository at this point in the history
…e tips

Dev: remove the span. and div.
Dev: removed the diplay block to div : it's default
Dev: see http://codeguide.co/#css-selectors
  • Loading branch information
Shnoulle committed Nov 2, 2015
1 parent 3405470 commit 1b5ac8f
Show file tree
Hide file tree
Showing 9 changed files with 225 additions and 261 deletions.
54 changes: 25 additions & 29 deletions templates/basic/template.css
Expand Up @@ -1159,61 +1159,57 @@ div.questionTitle {

/* Tips / Validation Messages */
/* If the question is invalid, but has not been submitted, give it a pleasant warning color */
div.em_num_answers.good {
.em_num_answers.good {
color: green;
}

div.em_num_answers.error {
.em_num_answers.error {
color: #FF00FF;
display: block;
}

div.em_value_range.good {
.em_value_range.good {
color: green;
}
div.em_value_range.error {
.em_value_range.error {
color: #FF00FF;
display: block;
}

div.em_sum_range.good {
.em_sum_range.good {
color: green;
}
div.em_sum_range.error {
.em_sum_range.error {
color: #FF00FF;
display: block;
}

div.em_regex_validation {
.em_regex_validation {
display: none;
}
div.em_regex_validation.good {
.em_regex_validation.good {
color: green;
}
div.em_regex_validation.error {
.em_regex_validation.error {
color: #FF00FF;
}

div.em_q_fn_validation.good {
.em_q_fn_validation.good {
color: green;
}
div.em_q_fn_validation.error {
.em_q_fn_validation.error {
color: #FF00FF;
}

div.em_sq_fn_validation.good {
.em_sq_fn_validation.good {
color: green;
}
div.em_sq_fn_validation.error {
.em_sq_fn_validation.error {
color: #FF00FF;
}

div.em_other_comment_mandatory.good {
.em_other_comment_mandatory.good {
display: none;
}
div.em_other_comment_mandatory.error {
.em_other_comment_mandatory.error {
color: #FF00FF;
display: block;
}

input.em_sq_validation.good, textarea.em_sq_validation.good {
Expand All @@ -1224,43 +1220,43 @@ input.em_sq_validation.error, textarea.em_sq_validation.error {
background-color: pink;
}

span.dynamic_sum {
.dynamic_sum {
font-weight: bold;
background-color: #d3d3d3;
}
span.dynamic_sum.good {
.dynamic_sum.good {
color: green;
}
span.dynamic_sum.error {
.dynamic_sum.error {
color: red;
}

span.dynamic_remaining {
.dynamic_remaining {
font-weight: bold;
background-color: #d3d3d3;
}
span.dyanamic_remaining.good {
.dynamic_remaining.good {
color: green;
}
span.dynamic_remaining.error {
.dynamic_remaining.error {
color: red;
}

/* If it is still invalid after submit, flag it in red */
.input-error div.error {
.input-error .error {
color: red;
display: block;
}

span.hide-tip div.good {
.hide-tip * {
display: none;
}

span.hide-tip div.error {
.hide-tip .error {
color: #FF00FF;
}

.input-error span.hide-tip div.error {
.input-error .hide-tip .error {
color: red;
display: block;
}
54 changes: 25 additions & 29 deletions templates/bluengrey/template.css
Expand Up @@ -1478,61 +1478,57 @@ table.assessments th{

/* Tips / Validation Messages */
/* If the question is invalid, but has not been submitted, give it a pleasant warning color */
div.em_num_answers.good {
.em_num_answers.good {
color: green;
}

div.em_num_answers.error {
.em_num_answers.error {
color: #FF00FF;
display: block;
}

div.em_value_range.good {
.em_value_range.good {
color: green;
}
div.em_value_range.error {
.em_value_range.error {
color: #FF00FF;
display: block;
}

div.em_sum_range.good {
.em_sum_range.good {
color: green;
}
div.em_sum_range.error {
.em_sum_range.error {
color: #FF00FF;
display: block;
}

div.em_regex_validation {
.em_regex_validation {
display: none;
}
div.em_regex_validation.good {
.em_regex_validation.good {
color: green;
}
div.em_regex_validation.error {
.em_regex_validation.error {
color: #FF00FF;
}

div.em_q_fn_validation.good {
.em_q_fn_validation.good {
color: green;
}
div.em_q_fn_validation.error {
.em_q_fn_validation.error {
color: #FF00FF;
}

div.em_sq_fn_validation.good {
.em_sq_fn_validation.good {
color: green;
}
div.em_sq_fn_validation.error {
.em_sq_fn_validation.error {
color: #FF00FF;
}

div.em_other_comment_mandatory.good {
.em_other_comment_mandatory.good {
display: none;
}
div.em_other_comment_mandatory.error {
.em_other_comment_mandatory.error {
color: #FF00FF;
display: block;
}

input.em_sq_validation.good, textarea.em_sq_validation.good {
Expand All @@ -1543,43 +1539,43 @@ input.em_sq_validation.error, textarea.em_sq_validation.error {
background-color: pink;
}

span.dynamic_sum {
.dynamic_sum {
font-weight: bold;
background-color: #d3d3d3;
}
span.dynamic_sum.good {
.dynamic_sum.good {
color: green;
}
span.dynamic_sum.error {
.dynamic_sum.error {
color: red;
}

span.dynamic_remaining {
.dynamic_remaining {
font-weight: bold;
background-color: #d3d3d3;
}
span.dyanamic_remaining.good {
.dynamic_remaining.good {
color: green;
}
span.dynamic_remaining.error {
.dynamic_remaining.error {
color: red;
}

/* If it is still invalid after submit, flag it in red */
.input-error div.error {
.input-error .error {
color: red;
display: block;
}

span.hide-tip div.good {
.hide-tip * {
display: none;
}

span.hide-tip div.error {
.hide-tip .error {
color: #FF00FF;
}

.input-error span.hide-tip div.error {
.input-error .hide-tip .error {
color: red;
display: block;
}
54 changes: 25 additions & 29 deletions templates/clear_logo/template.css
Expand Up @@ -1215,61 +1215,57 @@ span.qnumcode {

/* Tips / Validation Messages */
/* If the question is invalid, but has not been submitted, give it a pleasant warning color */
div.em_num_answers.good {
.em_num_answers.good {
color: green;
}

div.em_num_answers.error {
.em_num_answers.error {
color: #FF00FF;
display: block;
}

div.em_value_range.good {
.em_value_range.good {
color: green;
}
div.em_value_range.error {
.em_value_range.error {
color: #FF00FF;
display: block;
}

div.em_sum_range.good {
.em_sum_range.good {
color: green;
}
div.em_sum_range.error {
.em_sum_range.error {
color: #FF00FF;
display: block;
}

div.em_regex_validation {
.em_regex_validation {
display: none;
}
div.em_regex_validation.good {
.em_regex_validation.good {
color: green;
}
div.em_regex_validation.error {
.em_regex_validation.error {
color: #FF00FF;
}

div.em_q_fn_validation.good {
.em_q_fn_validation.good {
color: green;
}
div.em_q_fn_validation.error {
.em_q_fn_validation.error {
color: #FF00FF;
}

div.em_sq_fn_validation.good {
.em_sq_fn_validation.good {
color: green;
}
div.em_sq_fn_validation.error {
.em_sq_fn_validation.error {
color: #FF00FF;
}

div.em_other_comment_mandatory.good {
.em_other_comment_mandatory.good {
display: none;
}
div.em_other_comment_mandatory.error {
.em_other_comment_mandatory.error {
color: #FF00FF;
display: block;
}

input.em_sq_validation.good, textarea.em_sq_validation.good {
Expand All @@ -1280,43 +1276,43 @@ input.em_sq_validation.error, textarea.em_sq_validation.error {
background-color: pink;
}

span.dynamic_sum {
.dynamic_sum {
font-weight: bold;
background-color: #d3d3d3;
}
span.dynamic_sum.good {
.dynamic_sum.good {
color: green;
}
span.dynamic_sum.error {
.dynamic_sum.error {
color: red;
}

span.dynamic_remaining {
.dynamic_remaining {
font-weight: bold;
background-color: #d3d3d3;
}
span.dyanamic_remaining.good {
.dynamic_remaining.good {
color: green;
}
span.dynamic_remaining.error {
.dynamic_remaining.error {
color: red;
}

/* If it is still invalid after submit, flag it in red */
.input-error div.error {
.input-error .error {
color: red;
display: block;
}

span.hide-tip div.good {
.hide-tip * {
display: none;
}

span.hide-tip div.error {
.hide-tip .error {
color: #FF00FF;
}

.input-error span.hide-tip div.error {
.input-error .hide-tip .error {
color: red;
display: block;
}

0 comments on commit 1b5ac8f

Please sign in to comment.