Commit e2f7f343 by Chris Rodriguez Committed by Andy Armstrong

Fixing padding issues

parent 8928f85f
...@@ -559,7 +559,11 @@ ...@@ -559,7 +559,11 @@
} }
.form-actions { .form-actions {
@include padding($baseline 0 $baseline 0); padding: $baseline 0;
&.new-cohort-form {
padding: $baseline;
}
} }
} }
...@@ -1097,6 +1101,14 @@ ...@@ -1097,6 +1101,14 @@
.tab-content { .tab-content {
@include padding($baseline $baseline 0 $baseline); @include padding($baseline $baseline 0 $baseline);
border: 1px solid $gray-l5; border: 1px solid $gray-l5;
&.new-cohort-form {
padding: 0 $baseline;
.form-label {
margin-top: $baseline;
}
}
} }
} }
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<form action="" method="post" name="" id="cohort-management-settings-form" class="cohort-management-settings-form"> <form action="" method="post" name="" id="cohort-management-settings-form" class="cohort-management-settings-form">
<% if (isNewCohort) { %> <% if (isNewCohort) { %>
<h3 class="form-title"><%- gettext('Add a New Cohort Group') %></h3> <h3 class="form-title"><%- gettext('Add a New Cohort Group') %></h3>
<div class="tab-content is-visible new-cohort-form">
<% } %> <% } %>
<div class="form-fields"> <div class="form-fields">
<% <%
// Don't allow renaming of existing cohorts yet as it doesn't interact well with // Don't allow renaming of existing cohorts yet as it doesn't interact well with
...@@ -113,8 +113,11 @@ ...@@ -113,8 +113,11 @@
</div> </div>
</div> </div>
</div> </div>
<% if (isNewCohort) { %>
</div>
<% } %>
<div class="form-actions"> <div class="form-actions <% if (isNewCohort) { %>new-cohort-form<% } %>">
<button class="form-submit button action-primary action-save"> <button class="form-submit button action-primary action-save">
<i class="icon fa fa-plus" aria-hidden="true"></i> <i class="icon fa fa-plus" aria-hidden="true"></i>
<%- gettext('Save') %> <%- gettext('Save') %>
......
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