Skip to content

Commit 662b89b

Browse files
Survey: Fix survey questions horizontal/vertical alignment - refs #6450
1 parent d1b6fe6 commit 662b89b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

assets/css/scss/_survey.scss

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,48 @@
105105
}
106106
}
107107

108+
form#question-survey {
109+
display: block !important;
110+
margin: 0;
111+
padding: 0;
112+
box-sizing: border-box;
113+
}
114+
115+
form#question-survey .survey_question {
116+
display: block !important;
117+
width: 100% !important;
118+
box-sizing: border-box;
119+
margin-bottom: 1rem !important;
120+
clear: both;
121+
}
122+
123+
/* Question label / question text */
124+
form#question-survey .survey_question .question-text,
125+
form#question-survey .survey_question > label,
126+
form#question-survey .survey_question .control-label {
127+
display: block;
128+
margin-bottom: .4rem;
129+
font-weight: 600;
130+
color: #111827;
131+
}
132+
133+
/* Options container: horizontal alignment + enf of line if necessary */
134+
form#question-survey .survey_question .options {
135+
display: flex !important;
136+
flex-wrap: wrap;
137+
gap: .5rem;
138+
align-items: center;
139+
margin-top: .25rem;
140+
}
141+
142+
/* Radios inline vs vertical */
143+
form#question-survey .survey_question .radio-inline {
144+
display: inline-flex;
145+
align-items: center;
146+
gap: .35rem;
147+
margin-right: .6rem;
148+
}
149+
108150
.survey_question .field {
109151
@apply flex flex-col gap-3 w-full;
110152
}

0 commit comments

Comments
 (0)