Skip to content

Commit efca625

Browse files
author
Krystle Salazar
committed
Adjust spacing of form inputs
Fixes #56 and #57.
1 parent fa5a5d0 commit efca625

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

legal_db/static/styles.scss

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ $color-lighter-gray: rgb(245, 245, 245);
1010

1111
$hero-body-padding: 3rem 1.5rem !default;
1212

13+
$space-small: 0.5rem;
14+
$space-big: 1.5rem;
15+
$space-xxl: 6rem;
16+
1317
body {
1418
color: $color-dark-slate-gray;
1519
}
@@ -171,6 +175,16 @@ body {
171175

172176
.form {
173177
max-width: 768px;
178+
179+
&.case, &.scholarship {
180+
margin: $space-big $space-xxl;
181+
182+
.input {
183+
margin-top: $space-small;
184+
margin-bottom: .75rem;
185+
186+
}
187+
}
174188
}
175189

176190
.hero {

legal_db/templates/legal_db/case/form.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h2>Case Submission</h2>
77
<p class="hero-p">Please add any cases related to Creative Commons licenses and other legal tools that you think should be included in the database.
&nbsp;&nbsp;&nbsp;<span class="required">*</span> Required.</p>
88
</section>
99
<section class="has-background-grey-lighter padding-vertical-normal">
10-
<form class="form margin-horizontal-xxl margin-vertical-big" action="{% url 'case_submit' %}" method="post">
10+
<form class="form case" action="{% url 'case_submit' %}" method="post">
1111
{% csrf_token %}
1212
{% if case_form.non_field_errors %}
1313
<div class="notification warning">

legal_db/templates/legal_db/scholarship/form.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
{% block body_content %}
55
<section class="hero has-background-white padding-horizontal-xl padding-vertical-big">
66
<h2>Scholarship Submission</h2>
7-
<p class="hero-p">Please add any article related to Creative Commons licenses and other legal tools that you think should be included in the database.<br/><span class="required">*</span> Required.</p>
7+
<p class="hero-p">Please add any article related to Creative Commons licenses and other legal tools that you think should be included in the database. <span class="required">*</span> Required.</p>
88
</section>
99
<section class="has-background-grey-lighter padding-vertical-normal">
10-
<form class="form margin-horizontal-xxl margin-vertical-big" action="{% url 'scholarship_submit' %}" method="post">
10+
<form class="form scholarship margin-horizontal-xxl margin-vertical-big" action="{% url 'scholarship_submit' %}" method="post">
1111
{% csrf_token %}
1212
{% if scho_form.non_field_errors %}
1313
<div class="notification warning">

0 commit comments

Comments
 (0)