Commit 879241be by Xavier Antoviaque

Merge pull request #95 from open-craft/inline-html-fix

Fix styling of inline HTML on choices.
parents 9acd923b 0fb6e468
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
width: 40px; width: 40px;
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
float: left; float: none;
} }
.mentoring .questionnaire .choice { .mentoring .questionnaire .choice {
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
background: none repeat scroll 0 0 #66A5B5; background: none repeat scroll 0 0 #66A5B5;
font-family: arial; font-family: arial;
font-size: 14px; font-size: 14px;
height: 130%;
overflow-y: auto; overflow-y: auto;
opacity: 0.9; opacity: 0.9;
padding: 10px; padding: 10px;
...@@ -74,19 +73,22 @@ ...@@ -74,19 +73,22 @@
} }
.mentoring .choice-label { .mentoring .choice-label {
display: inline-block;
margin-top: 8px; margin-top: 8px;
margin-bottom: 5px; margin-bottom: 5px;
padding-left: 70px;
text-indent: -22px;
line-height: 1.3; line-height: 1.3;
} }
.mentoring .choices-list .choice-text > .xblock-light-child * {
vertical-align: middle;
}
.mentoring .choices-list .choice-text > .xblock-light-child, .mentoring .choices-list .choice-text > .xblock-light-child,
.mentoring .choices-list .choice-text > .xblock-light-child > .html_child{ .mentoring .choices-list .choice-text > .xblock-light-child > .html_child {
/* /*
HTML Light Child content is wrapped in two divs: div.xblock-light-child and just div HTML Light Child content is wrapped in two divs: div.xblock-light-child and just div
On the other hand, choice are usually rendered inline. On the other hand, choice are usually rendered inline.
Hence, we render first two divs inline, than all the actual content of HTML is rendered as is Hence, we render first two divs inline, than all the actual content of HTML is rendered as is
*/ */
display: inline; display: inline-block;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment