Skip to content
Snippets Groups Projects
Commit 7085589b authored by Anthony's avatar Anthony
Browse files

Radio group in one line

parent 954d2ef6
No related branches found
No related tags found
No related merge requests found
Pipeline #2020 passed
......@@ -48,7 +48,9 @@ select.sd-dropdown.inline-dropdown, input.sd-input.inline-input {
}
}
// ***********************************
// Hide disabled checkboxes in some quizz
// ***********************************
[data-name="pg665"] {
.sd-checkbox--readonly {
span.sd-checkbox__decorator {
......@@ -56,3 +58,16 @@ select.sd-dropdown.inline-dropdown, input.sd-input.inline-input {
}
}
}
// ***********************************
// Align one line radio buttons
// ***********************************
.one-line {
display: flex;
align-items: center;
.sd-question__header {
margin-top: 0;
}
}
......@@ -64,7 +64,7 @@ $(function () {
survey.onAfterRenderQuestion.add((survey, options) => {
if (options.question.customFormat && options.question.customFormat === "one_line") {
console.log("Custom format");
$(options.htmlElement).addClass("one-line");
}
});
......
......@@ -16,7 +16,8 @@
"enableHtml": true,
"correctAnswer": 3,
"colCount": 5,
"customFormat": "one_line"
"customFormat": "one_line",
"titleLocation": "left"
},
{
"type": "radiogroup",
......@@ -31,7 +32,8 @@
],
"enableHtml": true,
"correctAnswer": 2,
"colCount": 5
"colCount": 5,
"titleLocation": "left"
},
{
"type": "radiogroup",
......@@ -46,7 +48,8 @@
],
"enableHtml": true,
"correctAnswer": 3,
"colCount": 5
"colCount": 5,
"titleLocation": "left"
},
{
"type": "radiogroup",
......@@ -61,7 +64,8 @@
],
"enableHtml": true,
"correctAnswer": 3,
"colCount": 5
"colCount": 5,
"titleLocation": "left"
}
]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment