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;
|
||||
}
|
||||
|
||||
.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 {
|
||||
background-color: white;
|
||||
padding: 1rem;
|
||||
|
|
|
@ -10,9 +10,15 @@
|
|||
|
||||
<p><%= @section.description %></p>
|
||||
|
||||
<% @questions.each do |question| %>
|
||||
<section>
|
||||
<div class="questions-container">
|
||||
<% @questions.each do |question| %>
|
||||
<section class="question-card">
|
||||
<div class="question-kind-<%= question.question_kind %>">
|
||||
<%= render partial: "questions/#{question.question_kind}_show", locals: { question: } %>
|
||||
</div>
|
||||
<div class="answer-kind-<%= question.answer_kind %>">
|
||||
<%= render partial: "questions/#{question.answer_kind}_form", locals: { question: } %>
|
||||
</div>
|
||||
</section>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue