View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
04245 | Bug reports | Theme editor | public | 2010-03-25 20:16 | 2010-05-05 10:28 |
Reporter | Assigned To | tpartner | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.87+ | ||||
Summary | 04245: CSS class "questionhelp" used for two different elements | ||||
Description | The class "questionhelp" is used for two different parts of a question, namely for the {QUESTION_HELP} -with underscore- content, the built-in hint/instructions how to answer the question type; and also for the custom {QUESTIONHELP} -no underscore- content inserted by users as part of creating a question, normally shown at bottom with ?-icon. This makes it difficult to style the two different components properly, particularly the {QUESTION_HELP} content. Some templates have hardcoded styling and in the "default" template the {QUESTION_HELP} content looks identical to the actual question text. | ||||
Additional Information | A quick and dirty fix would be to add more complex CSS selectors (child/descendant) in template.css to select {QUESTION_HELP}, eg. see attached patch against v1.87, build 8498 for the default template. A good fix should provide a unique class for {QUESTION_HELP}, but even better also distinguish the two parts more clearly in both placeholder and class - perhaps Q_INSTRUCTIONS. | ||||
Tags | No tags attached. | ||||
Attached Files | template_css.diff (779 bytes)
--- Y:/Inetpub/wwwroot/software/limesurveymods/sr/templates/default/template.css Wed Feb 24 03:26:10 2010 +++ Y:/Inetpub/wwwroot/software/limesurveymods/sr/templates/NuUKZNdefault/template.css Thu Mar 25 20:41:10 2010 @@ -180,7 +180,14 @@ padding:0.5em 1.5em; } +td.questiontext > .questionhelp { +/* Selector may vary by template - to format the {QUESTION_HELP} -with underscore- content, the built-in hint/instructions how to answer the question type */ + color: grey; + font-weight: normal; +} + td.questionhelp { +/* Format the custom {QUESTIONHELP} -no underscore- content inserted by users as part of creating a question, normally shown at bottom with ?-icon */ font-size:10px; background-color:#eef6ff; padding-left:1em; | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 8498 | ||||
I will donate to the project if issue is resolved | |||||
Browser | |||||
Database type & version | any | ||||
Server OS (if known) | any | ||||
Webserver software & version (if known) | any | ||||
PHP Version | any | ||||
Ermm, the child selector which I used in the diff might be overkill. span.questionhelp might work just as well as a selector ... |
|
Fixed in revision 8603 I changed the class for the {QUESTIONHELP} element to "survey-question-help" in all templates. This differentiates it from the {QUESTION_HELP} element. ITEd, although I agree it may be confusing, I didn't muck around with the {QUESTIONHELP} keyword as I thought that may be too disruptive to existing custom templates. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-03-25 20:16 |
|
New Issue | |
2010-03-25 20:16 |
|
File Added: template_css.diff | |
2010-03-25 22:40 |
|
Note Added: 11512 | |
2010-03-26 07:22 |
|
Status | new => assigned |
2010-03-26 07:22 |
|
Assigned To | => tpartner |
2010-04-16 21:38 | tpartner | Note Added: 11622 | |
2010-04-16 21:38 | tpartner | Status | assigned => resolved |
2010-04-16 21:38 | tpartner | Resolution | open => fixed |
2010-05-05 10:28 | c_schmitz | Status | resolved => closed |
2015-12-11 14:40 | c_schmitz | Category | Templates => Theme editor |