Basic question styling and video width/height constraints
This commit is contained in:
parent
d2c557d193
commit
6647208d3a
2 changed files with 33 additions and 6 deletions
|
@ -58,6 +58,27 @@ header {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.questions-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.question-card {
|
||||||
|
color: black;
|
||||||
|
background-color: white;
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.question-kind-video {
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
video {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 50vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.login-intro {
|
.login-intro {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|
|
@ -10,9 +10,15 @@
|
||||||
|
|
||||||
<p><%= @section.description %></p>
|
<p><%= @section.description %></p>
|
||||||
|
|
||||||
<% @questions.each do |question| %>
|
<div class="questions-container">
|
||||||
<section>
|
<% @questions.each do |question| %>
|
||||||
<%= render partial: "questions/#{question.question_kind}_show", locals: { question: } %>
|
<section class="question-card">
|
||||||
<%= render partial: "questions/#{question.answer_kind}_form", locals: { question: } %>
|
<div class="question-kind-<%= question.question_kind %>">
|
||||||
</section>
|
<%= render partial: "questions/#{question.question_kind}_show", locals: { question: } %>
|
||||||
<% end %>
|
</div>
|
||||||
|
<div class="answer-kind-<%= question.answer_kind %>">
|
||||||
|
<%= render partial: "questions/#{question.answer_kind}_form", locals: { question: } %>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue